camera for raspberry pi
DESCRIPTION
This application notes guide you to install the camera on raspberry pi in simple manner and also this guide having all the command parameters for picture and video.TRANSCRIPT
![Page 1: Camera for Raspberry Pi](https://reader036.vdocument.in/reader036/viewer/2022081202/55cf9cd0550346d033ab2567/html5/thumbnails/1.jpg)
#9/3,Shree Lakshmi complex,2nd
Floor,Opp,To Vivekananda Park,Girinagar,Bangalore-560085.www.tenettech.com
2012
Author: Praveen Kumar R
Camera For Raspberry Pi
![Page 2: Camera for Raspberry Pi](https://reader036.vdocument.in/reader036/viewer/2022081202/55cf9cd0550346d033ab2567/html5/thumbnails/2.jpg)
#9/3,Shree Lakshmi complex,2nd
Floor,Opp,To Vivekananda Park,Girinagar,Bangalore-560085.www.tenettech.com
Introduction:
The Camera is an one best add-on hardware module for Raspberry
Pi.Many Pi users are mainly focusing on Computer Vision(CV) projects and we can
use it for live streaming,webcam security system, and mobile applications too.For a
students it is an amazing oppurtunity to learn raspberry pi and an add-on hardware
like this camera module and still more.In this step by step guide we will explain how to
install the raspberry pi camera module ,along with how to take pictures and video.
Camera Specification
Pixel 5MP
1080P30,720p60
Technical Reference
Installation steps:
Step 1:
In your command prompt type $ sudo raspi-config
If the camera option is not listed in the configuration window,then you will need to run
the following command prompt.
$ sudo apt-get update
$ sudo apt-get upgrade
Step 2: (Camera Connection)
Connect your camera module to the Raspberry Pi CSI(Camera Serial Interface).
![Page 3: Camera for Raspberry Pi](https://reader036.vdocument.in/reader036/viewer/2022081202/55cf9cd0550346d033ab2567/html5/thumbnails/3.jpg)
#9/3,Shree Lakshmi complex,2nd
Floor,Opp,To Vivekananda Park,Girinagar,Bangalore-560085.www.tenettech.com
Step 3:
Run the sudo raspi-config again.You should now see the camera menu.
Enter into the camera option and Enable the camera support.
Step 4:
Click Finish and Restart
Step 5: (Taking Picture)
Now open the terminal .
To capture an image type the follwing command prompt.
$ raspistill -o image.jpg
Note:
O refers output
image is ur file name.
jpg is the image format.
List of commands for available for taking picture.
?, --help : This help information
-w, --width : Set image width <size>
-h, --height : Set image height <size>
-q, --quality : Set jpeg quality <0 to 100>
-r, --raw : Add raw bayer data to jpeg metadata
-o, --output : Output filename <filename> (to write to stdout, use '-o -'). If not
specified, no file is saved
![Page 4: Camera for Raspberry Pi](https://reader036.vdocument.in/reader036/viewer/2022081202/55cf9cd0550346d033ab2567/html5/thumbnails/4.jpg)
#9/3,Shree Lakshmi complex,2nd
Floor,Opp,To Vivekananda Park,Girinagar,Bangalore-560085.www.tenettech.com
-v, --verbose : Output verbose information during run
-t, --timeout : Time (in ms) before takes picture and shuts down (if not specified, set to
5s)
-th, --thumb : Set thumbnail parameters (x:y:quality)
-d, --demo : Run a demo mode (cycle through range of camera options, no capture)
-e, --encoding : Encoding to use for output file (jpg, bmp, gif, png)
-x, --exif : EXIF tag to apply to captures (format as 'key=value')
-tl, --timelapse : Timelapse mode. Takes a picture every <t>ms
Preview parameter commands
-p, --preview : Preview window settings <'x,y,w,h'>
-f, --fullscreen : Fullscreen preview mode
-n, --nopreview : Do not display a preview window
Image parameter commands
-sh, --sharpness : Set image sharpness (-100 to 100)
-co, --contrast : Set image contrast (-100 to 100)
-br, --brightness : Set image brightness (0 to 100)
-sa, --saturation : Set image saturation (-100 to 100)
-ISO, --ISO : Set capture ISO
-vs, --vstab : Turn on video stablisation
-ev, --ev : Set EV compensation
-ex, --exposure : Set exposure mode (see Note)
-awb, --awb : Set AWB mode (see Note)
-ifx, --imxfx : Set image effect (see Note)
-cfx, --colfx : Set colour effect (U:V)
-mm, --metering : Set metering mode (see Note)
-rot, --rotation : Set image rotation (0-359)
-hf, --hflip : Set horizontal flip
-vf, --vflip : Set vertical flip
Note:
Exposure mode options :
off,auto,night,nightpreview,backlight,spotlight,sports,snow,beach,verylong,fixedfps,an
tishake,fireworks
AWB mode options :
off,auto,sun,cloud,shade,tungsten,fluorescent,incandescent,flash,horizon
![Page 5: Camera for Raspberry Pi](https://reader036.vdocument.in/reader036/viewer/2022081202/55cf9cd0550346d033ab2567/html5/thumbnails/5.jpg)
#9/3,Shree Lakshmi complex,2nd
Floor,Opp,To Vivekananda Park,Girinagar,Bangalore-560085.www.tenettech.com
Image Effect mode options :
none,negative,solarise,sketch,denoise,emboss,oilpaint,hatch,gpen,pastel,watercolour,f
ilm,blur,saturation,colourswap,washedout,posterise,colourpoint,colourbalance,cartoo
n
Metering Mode options :
average,spot,backlit,matrix
Step 6: (Record Video)
To capture a Video, type the follwing command.
$ raspivid -o video.h264 -t 20000
20000 Recording 20sec video
List of commands available for recording video.
Image parameter commands
-?, --help : This help information
-w, --width : Set image width <size>. Default 1920
-h, --height : Set image height <size>. Default 1080
-b, --bitrate : Set bitrate. Use bits per second (e.g. 10MBits/s would be -b 10000000)
-o, --output : Output filename <filename> (to write to stdout, use '-o -')
-v, --verbose : Output verbose information during run
-t, --timeout : Time (in ms) before takes picture and shuts down. If not specified, set to
5s
-d, --demo : Run a demo mode (cycle through range of camera options, no capture)
-fps, --framerate : Specify the frames per second to record
-e, --penc : Display preview image *after* encoding (shows compression artifacts)
Preview parameter commands
-p, --preview : Preview window settings <'x,y,w,h'>
-f, --fullscreen : Fullscreen preview mode
-n, --nopreview : Do not display a preview window
![Page 6: Camera for Raspberry Pi](https://reader036.vdocument.in/reader036/viewer/2022081202/55cf9cd0550346d033ab2567/html5/thumbnails/6.jpg)
#9/3,Shree Lakshmi complex,2nd
Floor,Opp,To Vivekananda Park,Girinagar,Bangalore-560085.www.tenettech.com
Image parameter commands
-sh, --sharpness : Set image sharpness (-100 to 100)
-co, --contrast : Set image contrast (-100 to 100)
-br, --brightness : Set image brightness (0 to 100)
-sa, --saturation : Set image saturation (-100 to 100)
-ISO, --ISO : Set capture ISO
-vs, --vstab : Turn on video stablisation
-ev, --ev : Set EV compensation
-ex, --exposure : Set exposure mode (see Note)
-awb, --awb : Set AWB mode (see Note)
-ifx, --imxfx : Set image effect (see Note)
-cfx, --colfx : Set colour effect (U:V)
-mm, --metering : Set metering mode (see Note)
-rot, --rotation : Set image rotation (0-359)
-hf, --hflip : Set horizontal flip
-vf, --vflip : Set vertical flip
Note:
Exposure mode options :
off,auto,night,nightpreview,backlight,spotlight,sports,snow,beach,verylong,fixedfps,an
tishake,fireworks
AWB mode options :
off,auto,sun,cloud,shade,tungsten,fluorescent,incandescent,flash,horizon
Image Effect mode options :
none,negative,solarise,sketch,denoise,emboss,oilpaint,hatch,gpen,pastel,watercolour,f
ilm,blur,saturation,colourswap,washedout,posterise,colourpoint,colourbalance,cartoo
n
Metering Mode options :
average,spot,backlit,matrix
![Page 7: Camera for Raspberry Pi](https://reader036.vdocument.in/reader036/viewer/2022081202/55cf9cd0550346d033ab2567/html5/thumbnails/7.jpg)
#9/3,Shree Lakshmi complex,2nd
Floor,Opp,To Vivekananda Park,Girinagar,Bangalore-560085.www.tenettech.com
For Placing an Order:
http://www.tenettech.com/product/2184/tenet-technetronicsraspberry-pi http://www.tenettech.com/product/3104/raspberry-pi-camera-module
For getting latest updates: