This code captures selected frames from video streams from multiple leptons sensor based boards near simultaneously. The frames are captured in Y16 format from Leptons that are preconfigured in radiometric mode. At startup, the code discovers all lepton boards connected to USB ports.
This code has been tested with Ubuntu 16.10 and Arch Linux.
The libuvc library is sourced from https://github.com/ktossell/libuvc Follow build instructions there and place the built libuvc.so file under "libs" subfolder accompanying the script.
PyPng is required for writing output to .png format https://pythonhosted.org/pypng/
Numpy is used for converting grabbed data to structured arrays and subsequently write to csv files.
Command: python3 frame_grabber.py --dbg_interval 60 --dbg_capture_count 10 Would capture once every 60 seconds for 10 capture events.
The program upon execution does the following for each of the connected lepton sensors:
- Captures images based on the inteval values specified by the following globals: SLEEP_INTERVAL and CAPTURE_COUNT
- Write out a CSV file with octal values
- Write out a PNG file
TODO: Append some sample images here.