Skip to content
Permalink
Browse files

fix performance issue

  • Loading branch information...
iperov committed Mar 15, 2019
1 parent 4ffae1a commit a8c987fa0f3af0b4cd2e7d471b5ff9153c4d30ea
Showing with 1 addition and 1 deletion.
  1. +1 −1 interact/interact.py
@@ -111,7 +111,7 @@ def process_messages(self, sleep_time=0):
has_capture_keys = True

if has_windows or has_capture_keys:
wait_key_time = int(sleep_time / 1000) if sleep_time != 0 else 1
wait_key_time = max(1, int(sleep_time*1000) )
key = cv2.waitKey(wait_key_time) & 0xFF
else:
if sleep_time != 0:

0 comments on commit a8c987f

Please sign in to comment.
You can’t perform that action at this time.