2017年12月3日星期日

Raspberry Pi tutorial– Using the Raspberry Pi Camera

Specifications:

Lens: ¼ - 5MPAperture: 2.9Focal length: 3.29Field of view angle: 72.4 degrees 

Hardware Setup:1. CSI connector; 90 degrees vertical connector which is next to the HDMI port. When connecting, make sure one side of the contact faces the HDMI interface. 
2. Do not forget to tear off the protective film off of the camera lens!3. Also, since the Raspberry Pi is a bare silicon board, take care to not get any electro-static damage!Raspberry Pi Set up – Enabling the Camera1. Open the Command Prompt line
2.
3.
4.
5.
6.
Software Setup:
1. RPi firmware and raspi-config have been updated for the camera, please execute apt-get update; Its available online.
2. Select the camera in raspi-config, start the camera driver in the RPi firmware, and then reboot the board.
Command to Activate the camera:
raspistill -t 20000 -o –

raspistill -t 2000 -o image.jpg < / font>
raspistill-t 2000 -o image.jpg -w 640-h 480
raspistill -t 2000 -o image.jpg -q 5
raspistill -t 2000 -o image.jpg - p 100,100,300,200
raspistill -t 2000 -o image.jpg –n
raspistill -t 2000 -o image.png - e png
raspistill -t 2000 -o image.jpg -x IFD0.Artist = Dreamcolor -x GPS.GPSAltitude = 1235/10
raspistill -t 2000 -o image.jpg -ifx emboss
raspistill -t 2000 -o image.jpg -cfx 128: 128
raspistill -t 2000
raspistill -t 600000 -tl 10000 -o image_num_ % d_today.jpg
raspistill -t 2000 –o
raspistill -t 2000 -o -> my_file.jpg
Camera Tech Specs:
Sensor size: 3.67 x 2.74 mm (1/4 "format 
Pixel Count: 2592 x 1944 
Pixel Size: 1.4 x 1.4 um 
Lens: f = 3.6 mm, f / 2.9 
Angle of View: 54 x 41 degrees 
Field of View: 2.0 x 1.33 m at 2 m 
Full-frame SLR lens equivalent: 35 mm 
Fixed Focus: 1 m to infinity 
Video: 1080p at 30 fps with codec H.264 (AVC) 
Up to 90 fps Video at VGA 
Board size: 25 x 24 mm (not including flex cable)
Because the focal length of the lens is roughly the same as the width of the sensor, it is easy to remember the field of view: at x meters away, you can see about x meters horizontally, assuming 4x3 stills mode. Horizontal field of view in 1080p video mode is 75% of that (75% H x 55% V sensor crop for 1: 1 pixels at 1920x1080). 

The Raspberry Pi Camera Board features a 5MP (2592×1944 pixels) OmniVision 5647 sensor in a fixed focus module. The module attaches to Raspberry Pi, by way of a 15 Pin Ribbon Cable, to the dedicated 15-pin MIPI Camera Serial Interface (CSI), which was designed especially for interfacing to cameras. The CSI bus is capable of extremely high data rates, and it exclusively carries pixel data to the BCM2835 processor. It is fully Compatible with Both the Model A. Model B Raspberry Pi and B+. 

# Take photo and send it to the standard output device for 20s

#two seconds (in milliseconds) delay to take a picture and save it as image in jpg

#Take a custom size photo.
#Reduce the image quality and reduce the file size
#Force the preview window to appear at a position of 100, 100, with a width of 300 and a height of 200 pixels.
#Disable the preview window
#Save the image as a PNG file (lossless compression format, but slower than JPEG). Note that when selecting image encoding, the file extension will be ignored.
#Add some EXIF ​​information to the JPEG file. The command will set the author name tag to Dreamcolor, and the GPS altitude is 123.5 meters.
#Set embossed style image effects
#Set the U and V channels of the YUV image to the specified value (128: 128 is the black and white image)
#Display only two seconds to preview the image without saving the image.
#Get the picture at 10 minutes (10 minutes = 600000 milliseconds), get a copy every 10 seconds, and name it image_number_1_today.jpg, image_number_2_today.jpg and so on…
#Get a photo and send it to a standard output device
#Get a photo and save it as a file

Sensor type: OmniVision OV5647 Color CMOS QSXGA (5-megapixel) 

没有评论:

发表评论