Simple python web server to use a computer to take photos with ADB over USB
Create a virtual environment and install requirements.
python3 -m venv venv
. ./venv/bin/activate
python -m pip install -r requirements.txtAlso ensure the adb commandline tool is intalled for your phone.
- Plug in phone with USB.
- Turn on camera.
- Position camera for the photo.
- Run the script
./run.sh - Open the web page, localhost:5050
- Click anywhere to take a photo with your camera and the result should populate locally.
It's pretty rough and there are surely a lot of bugs. Use at your own risk.