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

@@ -96,7 +96,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
frame = imresize(frame, width=args.width)
field = field_finder.find(frame)