Code Monkey home page Code Monkey logo

package-photo-booth's Introduction

A Raspberry Pi powered Photo Booth

Import

This package uses the Raspberry Camera Module to capture four pictures with a visible countdown. Once captured, all four images are shown for a configurable duration and can be optionally be uploaded to an external web service for post-processing. This server can then return an additional transparent PNG file that will overlay the four photos.

The capture sequence is triggered by GPIO. So you can wire it to a button or other hardware.

A playlist of videos and images is constantly looped while the device is idle.

Hardware setup

The photo sequence is triggered by GPIO. Have a look at the GPIO demo package for an example of how to connect a button to GPIO pin 18:

https://info-beamer.com/pkg/8421

Integration into your backend

If you specify an upload url, the device will upload all four images in a single POST request to the url. In your server code you can then store or otherwise do post-processing on the images. Your service should return a transparent PNG file as a response. This image is then added on top of the four photos. This allows you to augment the output - for example by overlaying a QR code where the user can download their photos.

This package includes an example server in server.py that shows how this works. You might want to use a secret url (instead of /upload) and HTTPS for handling upload requests.

package-photo-booth's People

Contributors

dividuum avatar

Watchers

 avatar  avatar

Forkers

john-njmj

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.