Navigation Menu

Skip to content
This repository has been archived by the owner on Nov 9, 2023. It is now read-only.

Commit

Permalink
fix performance issue
Browse files Browse the repository at this point in the history
  • Loading branch information
iperov committed Mar 15, 2019
1 parent 4ffae1a commit a8c987f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion interact/interact.py
Expand Up @@ -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:
Expand Down

0 comments on commit a8c987f

Please sign in to comment.