Giter Site home page Giter Site logo

photobooth's Introduction

Photobooth

This is a photobooth application, written in Elixir. The intent is to have a set and forget photobooth running an event, taking high quality pictures from a DSLR camera, and combining them into a photostrip which could be printed out. A more in depth explanation can be found on my blog.

##How to get this to work

###Install Erlang and Elixir Erlang from

sudo apt-get install erlang-mini

Elixir from the source.

###Install Cups and a driver for your printer

###Install GraphicsMagik

sudo apt-get install graphicsmagik

###Install GPhoto2 and other libs Download this script, which will download and build everything for you https://github.com/gonzalo/gphoto2-updater

Then, you have to remove a few monitor files to get the program to run without issue

sudo rm /usr/share/dbus-1/services/org.gtk.Private.GPhoto2VolumeMonitor.service

sudo rm /usr/share/gvfs/mounts/gphoto2.mount

sudo rm /usr/share/gvfs/remote-volume-monitors/gphoto2.monitor

sudo rm /usr/lib/gvfs/gvfs-gphoto2-volume-monitor

###GPIO pins

To avoid permission access issues when making calls from the program to the GPIO pins, install the wiring pi project: https://projects.drogon.net/raspberry-pi/wiringpi/download-and-install/

OS commands are sent to setup the pins for import and export as needed, since the Elixir library that talks the pins tended to run into access exceptions.

###Hardware

The code expects there to be one button and four leds. You may need to adjust the pins, depending on your setup. The shutter control button is connected to pin 17, and the leds are connected to pins 21 to 24.

###Running the program

mix deps.get mix escript.build ./photobooth

photobooth's People

Contributors

zacharybussey avatar

Stargazers

 avatar  avatar

Watchers

James Cloos avatar  avatar

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.