MakerBay / Coral_Reef_Mapping_Drone

A sailing robot to map coral reefs
https://makerbay.github.io/Coral_Reef_Mapping_Drone/
10 stars 4 forks source link

RPI capture image periodically #51

Open mike6649 opened 4 years ago

mike6649 commented 4 years ago

8cd88e1 Added python script

mike6649 commented 4 years ago

Tested with positive result

mike6649 commented 4 years ago

TODO:

  1. Add commandline arguments to the python script here: -i (interval) Optional argument. Specify the time interval to capture images in seconds. If this argument is not provided, then it defaults to 0.5 seconds. -d (directory) Optional argument. Specify a directory where images are stored. If the directory does not exist, it is created. If this argument is not provided, then it defaults to /home/pi/reef-mapping/<YYYYMMDD_HHMMSS>/, like /home/pi/reef-mapping/20200624_135023/.

Useful resource: https://docs.python.org/3/howto/argparse.html

mike6649 commented 4 years ago

https://www.ubuy.hk/en/search/index/view/product/B07C4P6S43/s/yootop-20-pcs-flexible-flat-ribbon-cable-40-pin-0-5mm-pitch-ffc-fpc-for-lcd-tv-car-audio-dvd-player-laptop-200mm-in-length/store/store