Code Monkey home page Code Monkey logo

raspberry-pi-action-camera's Introduction

Raspberry Pi Action Camera

Python program for Raspberry Pi to take pictures, images and stream to hdmi output by using GPIO pins and Raspberry Pi camera module.

Features

● Take picture by just pressing on the picture/video button.

● Record video by holding the picture/video button.

● Stream camera preview to hdmi output by pressing hdmi button.

● Automatically converts recorded videos from .h264 to .mp4.

● Creates thumbnail pictures of the recorded media (video & picture).

● Pictures, videos and thumbnails are recorded into the following directory "./Raspberry-Pi-Action-Camera/media/"

● Pictures and videos are recorded with a name based on the date format and amount of pictures/videos in target folder.

● LED's are used to indicate the current process of the program, see below.;

○ Green Led (cont.) -> Program is ready to take commands.

○ Blue Led (cont.) -> HDMI mode is active, see hdmi output.

○ Red Led (cont.) -> Taking picture.

○ Red Led (blink) -> Recording video.

Installation

● Enable camera support with the following commands:

○ sudo raspi-config 
○ Select Option "5 Interfacing Options", then "P1 Camera", then Yes.
○ Exit and reboot your Pi.

● Update your RPi with the following commands:

○ sudo apt-get update

○ sudo apt-get dist-upgrade

○ sudo apt-get install git

● Clone the code from github with the following commands:

○ git clone https://github.com/sbkomurcu/Raspberry-Pi-Action-Camera.git

○ cd Raspberry-Pi-Action-Camera

● Connect buttons and leds onto GPIO pins on the RPi based on the following pins ( see below for connection scheme);

○ Green Led -> GPIO 13

○ Blue Led -> GPIO 19

○ Red Led -> GPIO 26

○ Picture/Video Button -> GPIO 5

○ Hdmi Button -> GPIO 6

● Run python program with the following command;

○ sudo python3 main.py

alt text

raspberry-pi-action-camera's People

Contributors

sbkomurcu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

siriusfuenmayor

raspberry-pi-action-camera's Issues

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.