You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to ignore stalled shots in buffer, I plan to use the newly added flush parameter #851
I noticed I can set a time in the future as well. Can I use it to "delay" between snapshots as follows?
start=time.monotonic_ns()
forcountinrange(1, 1000):
# Simulate time.sleep(0.02) between shotsrequest=self.picam2.capture_request(flush=start+count*20_000_000)
request.release()
Instead of a more conventional time.sleep(0.02)? (sleep is horrible with accuracy for small delays).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I need to ignore stalled shots in buffer, I plan to use the newly added flush parameter #851
I noticed I can set a time in the future as well. Can I use it to "delay" between snapshots as follows?
Instead of a more conventional
time.sleep(0.02)
? (sleep is horrible with accuracy for small delays).Thanks!
Beta Was this translation helpful? Give feedback.
All reactions