Skip to content

Commit 1c44ba6

Browse files
committed
Grab
1 parent b0712e2 commit 1c44ba6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

edgetpu_server/detection_thread.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ def _set_state(self, detection_entity):
115115
def run(self):
116116
"""Loop through video stream frames and detect objects."""
117117
_LOGGER.warn('Running detection thread')
118+
if self.video_stream.isOpened():
119+
self.video_stream.grab()
118120
while self.video_stream.isOpened():
119121
start = datetime.now().timestamp()
120122
frame = self._retrieve_frame()

0 commit comments

Comments
 (0)