Robuster colorpicker and detection demo

This commit is contained in:
2018-06-24 17:13:44 +02:00
parent 548e0d6fb5
commit 9c972c0a1c
3 changed files with 16 additions and 3 deletions

View File

@@ -218,7 +218,11 @@ if __name__ == '__main__':
rdr.close()
while True:
if not args.still:
frame = rdr.get_frame()
try:
frame = rdr.get_frame()
except RuntimeError as e:
print(e)
continue
key = cp.show_frame(frame, width=args.width, manual=args.manual)
if key == ord('q') or key == 27:
break