Beautiful GUI to control your camera remotely.
Before your get started, check if your camera is supported by gphoto2: http://www.gphoto.org/proj/libgphoto2/support.php
- Install gphoto2
Linux:
macOS:
sudo apt install gphoto2 sudo apt install libgphoto2-6
brew install gphoto2
- Clone this repository:
git clone https://github.com/valentinfrlch/camera-control
- Install Python dependencies (tested with python 3.11)
cd camera-control pip install -r requirements.txt - Connect your camera via USB
- Run webserver
python webserver.py
- You should see the following in your terminal:
The web interface should automatically open in your web browser. To control your camera from your phone, make sure your phone and computer are on the same network, then open the second url displayed in the terminal (in this case
* Serving Flask app 'webserver' * Debug mode: on WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. * Running on all addresses (0.0.0.0) * Running on http://127.0.0.1:8000 * Running on http://10.0.1.220:8000
http://10.0.1.220:8000) in your phone's browser.
If you have trouble connecting your camera, close any applications that may be using it. On macOS, open Activity Monitor, search for ptpcamera, and quit any related processes—these will prevent gphoto2 from accessing the camera.