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

Commit

Permalink
updated read.py
Browse files Browse the repository at this point in the history
  • Loading branch information
bwsw committed Dec 3, 2019
1 parent 918a33b commit 4f535e7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions read.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from time import sleep, time
from shm.reader import SharedMemoryFrameReader


if __name__ == '__main__':

shm_r = SharedMemoryFrameReader('frame')
Expand All @@ -18,7 +17,7 @@
f = shm_r.get()
cv2.imshow('frame', f)
if cv2.waitKey(1) & 0xFF == ord('q'):
break
break
end = time()
next_sleep = max_sleep - (end - begin)
next_sleep = 0 if next_sleep <= 0 else next_sleep
Expand Down

0 comments on commit 4f535e7

Please sign in to comment.