photo_app.mp4
Simple web interface for USB-connected cameras using gphoto2.
Canon EOS 600D is tested in this repository, but other gphoto2-compatible cameras may also work.
- Live view in the browser
- Trigger photo capture from the browser
- Save captured images to the
captures/folder
- Python 3.8+
gphoto2- A USB-connected camera supported by
gphoto2
Install gphoto2 on macOS:
brew install gphoto2cd CanonEos
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txtbash start_web.shOpen:
http://localhost:5000
- Live Preview Toggle: enable/disable live view
- Shutter Button: take a picture
Captured files are stored in:
captures/
- Canon EOS 600D is tested.
- Other cameras can work if
gphoto2 --auto-detectfinds them and live view/capture commands are supported by the device.
Quick check:
gphoto2 --auto-detectpython server.py --port 5000 --save-dir captures--save-dircontrols where captured files are written.
Check out https://web-gphoto2.rreverser.com/ to connect a browser directly to a camera.