146f73

yidashcam timelapse interval

Jan 8th, 2021 (edited)
513
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.37 KB | None | 0 0
  1. import yidashcam
  2. import time
  3.  
  4. with yidashcam.YIDashcam() as yi:
  5.     yi.set_config(yidashcam.config.Option.photo_resolution, yidashcam.config.PhotoResolution.r1920x1080)
  6.     try:
  7.       yi.stop_record()
  8.     except:
  9.         print("exception")
  10.    
  11.     for x in range(0, 15000):
  12.         yi.take_photo()
  13.         print("%d. photo done" % (x))
  14.         time.sleep(2.4)
Add Comment
Please, Sign In to add comment