Sie sind auf Seite 1von 11

RASPBERRY PI CAMERA INTERFACE

Sheehan Fernandes Adil Patel


ABOUT THE CAMERA

• Known as the Pi Camera


• Version 2 is the latest version, released in April 2016
• Uses an 8 megapixel Sony sensor
• Capable of 1080p video
• Costs $25
COMPARISON OF VERSION 1 VS VERSION 2
Version 1 Version 2
Price $25 $25
Image resolution 5 MP 8 MP
Video modes 1080p at 30 FPS; 720p at 60 FPS 1080p at 30 FPS; 720p at 60 FPS
Sensor OmniVision OV5647 Sony IMX219
Connecting and configuring the camera to the Pi
Step 1 Step 2 Step 3
CREATING A LIVE PREVIEW
The following code is entered in Python

If the preview is upside down it can be rotated by the following


CAPTURING STILL PICTURES

The delay is important as the sensor has to adjust to the ambient light levels. Delay time of 2 seconds is minimum

Using a loop we can capture multiple images at a time example : –


RECORDING A VIDEO

The video can be played by opening the terminal window entering the following code: –

This starts the


omxplayer
application
ADDITIONAL FEATURES
Resolution and frame rate Annotate text

Camera Brightness Camera Contrast


APPLICATION OF THE CAMERA MODULE:
A SIMPLE SELFIE STICK
Connecting a button CODE – the program waits for the button
to be pressed and then captures an image
once pressed
ANOTHER APPLICATION:
IMAGE PROCESSING
• Using pictures taken, image processing
applications can be performed on the Raspberry Pi
• The OpenCV framework allows for image
processing on Python and C++
• As an example, home surveillance:
• Cameras installed detect for the presence of people
using motion detection
• Can alert the owner of the house through a mobile
phone application or other means
REFERENCES

• https://www.raspberrypi.org/documentation/hardware/camera/
• http://www.pyimagesearch.com/2015/06/01/home-surveillance-and-motion-detection-with-the-
raspberry-pi-python-and-opencv/

Das könnte Ihnen auch gefallen