👨🏻🔧 Work in progress!
The first goal is to track the household's water usage.
- Periodically take a picture of an analog water meter
- Use OCR to read value
- Save data
Currently it only can take pictures remotely (on a phone) and save it locally (on the device where the script runs).
- Install IP Webcam on an Android phone
- Fine tune settings in the app if you want (I changed the photo resolution to the biggest available and set the flash mode to "auto flash")
- Start server
- Download this Python script (implemented in 3.7)
- Create a directory with
output
name - Set the IP Webcam address:
a. either in the code by updating
DEFAULT_CAMERA_IP_ADDR
value b. or usingCAM_IP_ADDR
env variable (eg.CAM_IP_ADDR=192.168.1.12
) - Run the app
python take_picture.py
MIT