Only clicking of images is currently supported
This application is created for caputuring photos with a webcam or a digital camera remotely, using a web-browser. For e.g I've connected my Canon DSLR to a raspberry-pi and wanted to click images without disturbing the camera. The server is started on the raspberry pi and now photos can be clicked through a remote machine/phone using a browser.
- Opencv dependencies (for Raspberry-PI)
apt update
apt install libavcodec-dev \
libavformat-dev \
libswcale-dev \
libswscale-dev \
libqtgui4 \
libqt4-test \
libblas-dev \
liblapack-dev \
libatlas-base-dev
apt install libgphoto2-dev
pip3 install -r requirements.txt
Please change the line in PhotoBooth/static/js/navbar_camera.js to set the correct ip of your machine, if you plan to put the server on a remote machine. The app currently supports. The value indicated in brackets is the command line argument paramenter to be passed. The dummy parameter can be used for testing. It generates a random image.
- Digital cameras/SLR ( --digi)
- WebCam (--webcam)
- USBCam (--usbcam)
- Dummy (--dummy)
python app.py --webcam
Images are stored in Images/image and Images/rescaled directories. The image directory contains the full-size image and the rescaled has the resized images. The rescaled images are sent to front end, to for speed, since with DSLR, these images can be as big as 5184x3456 in size.
Open the url http://localhost:5000/index.html (Or the corresponding IP if running it on a different machine)