Coder Social home page Coder Social logo

raspistillapi's Introduction

Remote RASPISTILL-API


Take remotes pictures with your RaspberryCam

1. Setup

You need to buy:

You need to install:

  • Apache Server with PHP:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install avahi-daemon apache2 php5
  • Enable camera kernel module:
sudo raspi-config

Navigate to “camera” and select “enable”.

enable_cam

Camera device need 777 priviladge ( WARNING: this is dangerous )

sudo chmod 777 /dev/vchiq
  • Copy the PHP code in his own special folder

Go to apache folder and link to the raspistillAPI/ folder to copy the PHP code that is going to take and deliver the photo

cd /var/www
sudo ln -s /[your_dir_path]/raspistillAPI raspistillAPI

The folder where is store the images needs all (777) privileges ( WARNING: this is dangerous )

sudo chown www-data /[your_dir_path]/raspistillAPI/
sudo chgrp www-data /[your_dir_path]/raspistillAPI/

After this copy the index.php in that folder.

2. Use

Go to a navigator and type:

http://raspberrypi.local/raspistillAPI/?width=640&height=480

You should see a photo. If that's the case try compiling the OF project and be ready to ask for images on demand using raspistill API

width	: Set image width <size>

height	: Set image height <size>

quality	: Set jpeg quality <0 to 100>

sharpness	: Set image sharpness (-100 to 100)

contrast	: Set image contrast (-100 to 100)

brightness	: Set image brightness (0 to 100)

saturation	: Set image saturation (-100 to 100)

ISO	: Set capture ISO

ev	: Set EV compensation

exposure	: Set exposure mode: off, auto, night, nightpreview, backlight, spotlight, sports, snow,beach,	verylong,	fixedfps,	antishake,	fireworks

awb	: Set AWB mode: off, auto, sun, cloud, shade, tungsten, fluorescent, incandescent, flash, horizon

imxfx	: Set image effect: none, negative, solarise, sketch, denoise, emboss, oilpaint, hatch, gpen, pastel, watercolour, film, blur, saturation, colourswap, washedout, posterise, colourpoint, colourbalance, cartoon

colfx	: Set colour effect (U:V)

metering	: Set metering mode: average, spot, backlit, matrix

rotation	: Set image rotation (0-359)

hflip	: Set horizontal flip

vflip	: Set vertical flip

raspistillapi's People

Contributors

patriciogonzalezvivo avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  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.