Skip to content

devenpatel2/PhotoBooth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a WIP.

Only clicking of images is currently supported

Introduction

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.

Requirements

  1. 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 
  1. libgphoto2
apt install libgphoto2-dev

Install python packages

pip3 install -r requirements.txt

Setup

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)

About

Application for interacting with camera remotely

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published