Extract timestamps from camera trap images using OCR. Currently only supports Reconyx-style images where the timestamp is in the header.
2014-11-29 06:00:00
- Install tesseract (OCR library)
sudo apt install tesseract-ocr
- Install Python requirements
pip install -r requirements.txt
Process a single image and return the timestamp:
python extract.py --img sample/example.jpg
>>> 2014-11-29 06:00:00
Process a directory of images and write results to a CSV file:
python extract.py --dir [path/to/image/directory/] --out [path/to/output.csv]