Skip to content
This repository has been archived by the owner on Dec 8, 2024. It is now read-only.

Commit

Permalink
fix tries counter
Browse files Browse the repository at this point in the history
  • Loading branch information
leadnaut committed Sep 13, 2024
1 parent 2f52d92 commit 0c91f1d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client/models/pose_detection/frame_capturer.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,6 @@ def get_frame(self) -> tuple[np.ndarray, int]:
if tries > 5: raise FileNotFoundError('No snapshot found')
time.sleep(0.05)
else:
tries = 0
finfo = os.stat('/tmp/snapshot.jpg')
return (array, finfo.st_mtime)

0 comments on commit 0c91f1d

Please sign in to comment.