Skip to content

Commit

Permalink
Start to detection by the first frame
Browse files Browse the repository at this point in the history
  • Loading branch information
yihong1120 committed May 13, 2024
1 parent c51bdad commit d13f97f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stream_capture.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def capture_frames(self) -> Generator[Tuple[cv2.Mat, float], None, None]:
Exception: If an error occurs while reading frames.
'''
self.initialise_stream()
last_process_time = datetime.datetime.now()
last_process_time = datetime.datetime.now() - datetime.timedelta(seconds=15)
while True:
ret, frame = self.cap.read()
if not ret:
Expand Down

0 comments on commit d13f97f

Please sign in to comment.