SlideShare a Scribd company logo
Pi Camera
Tushar B. Kute,
http://tusharkute.com
Raspberry Pi Camera Module
• The Raspberry Pi Camera Module v2 replaced the
original Camera Module in April 2016.
• The v2 Camera Module has a Sony IMX219 8-
megapixel sensor (compared to the 5-megapixel
OmniVision OV5647 sensor of the original camera).
• The Camera Module can be used to take high-
definition video, as well as stills photographs. It’s easy
to use for beginners, but has plenty to offer advanced
users if you’re looking to expand your knowledge.
• You can also use the libraries we bundle with the
camera to create effects.
Raspberry Pi Camera Module
• You can read all the gory details about IMX219
and the Exmor R back-illuminated sensor
architecture on Sony’s website, but suffice to
say this is more than just a resolution upgrade:
it’s a leap forward in image quality, colour
fidelity, and low-light performance.
• It supports 1080p30, 720p60 and VGA90 video
modes, as well as still capture. It attaches via a
15cm ribbon cable to the CSI port on the
Raspberry Pi.
Raspberry Pi Camera Module
• The camera works with all models of
Raspberry Pi 1, 2, and 3.
• It can be accessed through the MMAL and
V4L APIs, and there are numerous third-
party libraries built for it, including the
Picamera Python library.
• The camera module is very popular in
home security applications, and in wildlife
camera traps.
Pi Camera
Connecting the Pi Camera
Open Raspberry Pi Configuration
Enable the Camera interface
Camera preview
Rotating the Camera
You can rotate the image by 90, 180, or 270
degrees, or you can set it to 0 to reset.
Change transperancy
Storing the image
Taking five pictures in a row
Recording a Video
Converting and Playing Video
• The video format need to get converted
to MP4. So install gpac.
sudo apt-get install gpac
• Now convert the video to MP4:
MP4Box -fps 30 -add video.h264 video.mp4
Effects
• The resolution of the capture is configurable.
• By default it’s set to the resolution of your monitor,
but the maximum resolution is 2592 x 1944 for still
photos and 1920 x 1080 for video recording.
• Try the following example to set the resolution to
max.
• Note that you’ll also need to set the frame rate to
15 to enable this maximum resolution:
• The minimum resolution allowed is 64 x 64. Try
taking one at that resolution.
Effects: Frame rate and Resolution
Effects: Text Annotation
Effects: Brightness
Annotation Text Sizes
• You can set the annotation text size with
the following code:
camera.annotate_text_size = 50
• Valid sizes are 6 to 160. The default is 32.
Annotation Colors
• You can also alter the annotation colours.
First of all, ensure that Color is imported
by amending your import line at the top:
from picamera import PiCamera, Color
• Then amend the rest of your code as
follows:
Image Effects
• You can use camera.image_effect to apply a
particular image effect.
• The options are: none, negative, solarize, sketch,
denoise, emboss, oilpaint, hatch, gpen, pastel,
watercolor, film, blur, saturation, colorswap,
washedout, posterise, colorpoint, colorbalance,
cartoon, deinterlace1, and deinterlace2.
• The default is none.
Image Effects
Looping various Effects
AWB mode
• You can use camera.awb_mode to set the auto white
balance to a preset mode to apply a particular effect.
• The options are: off, auto, sunlight, cloudy, shade,
tungsten, fluorescent, incandescent, flash, and horizon.
The default is auto.
Exposure mode
• You can use camera.exposure_mode to set the exposure
to a preset mode to apply a particular effect.
• The options are: off, auto, night, nightpreview,
backlight, spotlight, sports, snow, beach, verylong,
fixedfps, antishake, and fireworks. The default is auto.
Live streaming
tushar@tusharkute.com
Thank you
This presentation is created using LibreOffice Impress 5.3.2.2, can be used freely as per GNU General Public License
Blogs
http://digitallocha.blogspot.in
http://kyamputar.blogspot.in
Web Resources
http://mitu.co.in
http://tusharkute.com
/mITuSkillologies @mitu_group

More Related Content

Similar to 05-Pi-Camera.pdf

02 cctv camera specification
02 cctv camera specification02 cctv camera specification
02 cctv camera specification
Nader Elmansi
 
Evaluation question 7
Evaluation question 7Evaluation question 7
Evaluation question 7
Charlie Lewin
 
Free video editing software
Free video editing softwareFree video editing software
Free video editing software
SmartPixel
 
Gigapixel Photography: RCAHMW
Gigapixel Photography: RCAHMWGigapixel Photography: RCAHMW
Gigapixel Photography: RCAHMWRCAHMW
 
FS Presentation CCTV solution smartshop.pptx
FS Presentation CCTV solution smartshop.pptxFS Presentation CCTV solution smartshop.pptx
FS Presentation CCTV solution smartshop.pptx
PawachMetharattanara
 
HD CCTV BACOM SOLUTION.pptx
HD CCTV BACOM SOLUTION.pptxHD CCTV BACOM SOLUTION.pptx
HD CCTV BACOM SOLUTION.pptx
PawachMetharattanara
 
Smart Wireless Surveillance Monitoring using RASPBERRY PI
Smart Wireless Surveillance Monitoring using RASPBERRY PISmart Wireless Surveillance Monitoring using RASPBERRY PI
Smart Wireless Surveillance Monitoring using RASPBERRY PI
Krishna Kumar
 
Surveon IP Camera Spec-in Guide
Surveon IP Camera Spec-in Guide Surveon IP Camera Spec-in Guide
Surveon IP Camera Spec-in Guide
Surveon Technology Inc.
 
Ip Cam
Ip CamIp Cam
Ip Cam
Robert Bosch
 
Equipment
EquipmentEquipment
Equipment
ilanrubens
 
How to get the perfect camera exposure with PTZOptics
How to get the perfect camera exposure with PTZOpticsHow to get the perfect camera exposure with PTZOptics
How to get the perfect camera exposure with PTZOptics
Paul Richards
 
Canon hd legria hf s21
Canon hd legria hf s21Canon hd legria hf s21
Canon hd legria hf s21tom70
 
20 easy Raspberry Pi projects
20 easy Raspberry Pi projects20 easy Raspberry Pi projects
20 easy Raspberry Pi projects
IT Books
 
OpenEye Optix Network Cameras
OpenEye Optix Network CamerasOpenEye Optix Network Cameras
OpenEye Optix Network Cameras
openeyevideo
 
Producing Effective Screencasts
Producing Effective ScreencastsProducing Effective Screencasts
Producing Effective Screencasts
Richard Harrington
 

Similar to 05-Pi-Camera.pdf (20)

02 cctv camera specification
02 cctv camera specification02 cctv camera specification
02 cctv camera specification
 
Evaluation question 7
Evaluation question 7Evaluation question 7
Evaluation question 7
 
Free video editing software
Free video editing softwareFree video editing software
Free video editing software
 
Gigapixel Photography: RCAHMW
Gigapixel Photography: RCAHMWGigapixel Photography: RCAHMW
Gigapixel Photography: RCAHMW
 
FS Presentation CCTV solution smartshop.pptx
FS Presentation CCTV solution smartshop.pptxFS Presentation CCTV solution smartshop.pptx
FS Presentation CCTV solution smartshop.pptx
 
HD CCTV BACOM SOLUTION.pptx
HD CCTV BACOM SOLUTION.pptxHD CCTV BACOM SOLUTION.pptx
HD CCTV BACOM SOLUTION.pptx
 
Equipment
Equipment Equipment
Equipment
 
Smart Wireless Surveillance Monitoring using RASPBERRY PI
Smart Wireless Surveillance Monitoring using RASPBERRY PISmart Wireless Surveillance Monitoring using RASPBERRY PI
Smart Wireless Surveillance Monitoring using RASPBERRY PI
 
Surveon IP Camera Spec-in Guide
Surveon IP Camera Spec-in Guide Surveon IP Camera Spec-in Guide
Surveon IP Camera Spec-in Guide
 
Ip Cam
Ip CamIp Cam
Ip Cam
 
Equipment
EquipmentEquipment
Equipment
 
How to get the perfect camera exposure with PTZOptics
How to get the perfect camera exposure with PTZOpticsHow to get the perfect camera exposure with PTZOptics
How to get the perfect camera exposure with PTZOptics
 
hcm381-481_oi.pdf
hcm381-481_oi.pdfhcm381-481_oi.pdf
hcm381-481_oi.pdf
 
Canon hd legria hf s21
Canon hd legria hf s21Canon hd legria hf s21
Canon hd legria hf s21
 
Ps user april-may.2008
Ps user april-may.2008Ps user april-may.2008
Ps user april-may.2008
 
Video portfolio
Video portfolioVideo portfolio
Video portfolio
 
20 easy Raspberry Pi projects
20 easy Raspberry Pi projects20 easy Raspberry Pi projects
20 easy Raspberry Pi projects
 
OpenEye Optix Network Cameras
OpenEye Optix Network CamerasOpenEye Optix Network Cameras
OpenEye Optix Network Cameras
 
Camera
CameraCamera
Camera
 
Producing Effective Screencasts
Producing Effective ScreencastsProducing Effective Screencasts
Producing Effective Screencasts
 

More from bhaveshagrawal35

quadcopterintroshare160125-181211064657.pptx
quadcopterintroshare160125-181211064657.pptxquadcopterintroshare160125-181211064657.pptx
quadcopterintroshare160125-181211064657.pptx
bhaveshagrawal35
 
Media_604616_smxx.pptx
Media_604616_smxx.pptxMedia_604616_smxx.pptx
Media_604616_smxx.pptx
bhaveshagrawal35
 
projectppt-141127001908-conversion-gate02.pptx
projectppt-141127001908-conversion-gate02.pptxprojectppt-141127001908-conversion-gate02.pptx
projectppt-141127001908-conversion-gate02.pptx
bhaveshagrawal35
 
MergeResult_2023_04_02_05_26_56.pptx
MergeResult_2023_04_02_05_26_56.pptxMergeResult_2023_04_02_05_26_56.pptx
MergeResult_2023_04_02_05_26_56.pptx
bhaveshagrawal35
 
ece480_dt5_final_presentation.ppt
ece480_dt5_final_presentation.pptece480_dt5_final_presentation.ppt
ece480_dt5_final_presentation.ppt
bhaveshagrawal35
 
bionics_4.ppt
bionics_4.pptbionics_4.ppt
bionics_4.ppt
bhaveshagrawal35
 
lecture2-mcu_and_io.pptx
lecture2-mcu_and_io.pptxlecture2-mcu_and_io.pptx
lecture2-mcu_and_io.pptx
bhaveshagrawal35
 
BHAVESH AGRAWAL.pptx
BHAVESH AGRAWAL.pptxBHAVESH AGRAWAL.pptx
BHAVESH AGRAWAL.pptx
bhaveshagrawal35
 
222116610_2 Assiment.pptx
222116610_2 Assiment.pptx222116610_2 Assiment.pptx
222116610_2 Assiment.pptx
bhaveshagrawal35
 
micro manit.pptx
micro manit.pptxmicro manit.pptx
micro manit.pptx
bhaveshagrawal35
 
Unit 3.pptx
Unit 3.pptxUnit 3.pptx
Unit 3.pptx
bhaveshagrawal35
 
Actuators.pptx
Actuators.pptxActuators.pptx
Actuators.pptx
bhaveshagrawal35
 
facedetectionandrecosignationwithpi-200430225418.pptx
facedetectionandrecosignationwithpi-200430225418.pptxfacedetectionandrecosignationwithpi-200430225418.pptx
facedetectionandrecosignationwithpi-200430225418.pptx
bhaveshagrawal35
 
Lecture-1-Smart-Sensor.ppt
Lecture-1-Smart-Sensor.pptLecture-1-Smart-Sensor.ppt
Lecture-1-Smart-Sensor.ppt
bhaveshagrawal35
 
mdml.pptx
mdml.pptxmdml.pptx
mdml.pptx
bhaveshagrawal35
 
mdml.pptx
mdml.pptxmdml.pptx
mdml.pptx
bhaveshagrawal35
 
rs.pptx
rs.pptxrs.pptx
pptr.pptx
pptr.pptxpptr.pptx
pptr.pptx
bhaveshagrawal35
 

More from bhaveshagrawal35 (18)

quadcopterintroshare160125-181211064657.pptx
quadcopterintroshare160125-181211064657.pptxquadcopterintroshare160125-181211064657.pptx
quadcopterintroshare160125-181211064657.pptx
 
Media_604616_smxx.pptx
Media_604616_smxx.pptxMedia_604616_smxx.pptx
Media_604616_smxx.pptx
 
projectppt-141127001908-conversion-gate02.pptx
projectppt-141127001908-conversion-gate02.pptxprojectppt-141127001908-conversion-gate02.pptx
projectppt-141127001908-conversion-gate02.pptx
 
MergeResult_2023_04_02_05_26_56.pptx
MergeResult_2023_04_02_05_26_56.pptxMergeResult_2023_04_02_05_26_56.pptx
MergeResult_2023_04_02_05_26_56.pptx
 
ece480_dt5_final_presentation.ppt
ece480_dt5_final_presentation.pptece480_dt5_final_presentation.ppt
ece480_dt5_final_presentation.ppt
 
bionics_4.ppt
bionics_4.pptbionics_4.ppt
bionics_4.ppt
 
lecture2-mcu_and_io.pptx
lecture2-mcu_and_io.pptxlecture2-mcu_and_io.pptx
lecture2-mcu_and_io.pptx
 
BHAVESH AGRAWAL.pptx
BHAVESH AGRAWAL.pptxBHAVESH AGRAWAL.pptx
BHAVESH AGRAWAL.pptx
 
222116610_2 Assiment.pptx
222116610_2 Assiment.pptx222116610_2 Assiment.pptx
222116610_2 Assiment.pptx
 
micro manit.pptx
micro manit.pptxmicro manit.pptx
micro manit.pptx
 
Unit 3.pptx
Unit 3.pptxUnit 3.pptx
Unit 3.pptx
 
Actuators.pptx
Actuators.pptxActuators.pptx
Actuators.pptx
 
facedetectionandrecosignationwithpi-200430225418.pptx
facedetectionandrecosignationwithpi-200430225418.pptxfacedetectionandrecosignationwithpi-200430225418.pptx
facedetectionandrecosignationwithpi-200430225418.pptx
 
Lecture-1-Smart-Sensor.ppt
Lecture-1-Smart-Sensor.pptLecture-1-Smart-Sensor.ppt
Lecture-1-Smart-Sensor.ppt
 
mdml.pptx
mdml.pptxmdml.pptx
mdml.pptx
 
mdml.pptx
mdml.pptxmdml.pptx
mdml.pptx
 
rs.pptx
rs.pptxrs.pptx
rs.pptx
 
pptr.pptx
pptr.pptxpptr.pptx
pptr.pptx
 

Recently uploaded

在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
obonagu
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
fxintegritypublishin
 
Water billing management system project report.pdf
Water billing management system project report.pdfWater billing management system project report.pdf
Water billing management system project report.pdf
Kamal Acharya
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Sreedhar Chowdam
 
Modelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdfModelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdf
camseq
 
digital fundamental by Thomas L.floydl.pdf
digital fundamental by Thomas L.floydl.pdfdigital fundamental by Thomas L.floydl.pdf
digital fundamental by Thomas L.floydl.pdf
drwaing
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Dr.Costas Sachpazis
 
Online aptitude test management system project report.pdf
Online aptitude test management system project report.pdfOnline aptitude test management system project report.pdf
Online aptitude test management system project report.pdf
Kamal Acharya
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation & Control
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
SamSarthak3
 
Swimming pool mechanical components design.pptx
Swimming pool  mechanical components design.pptxSwimming pool  mechanical components design.pptx
Swimming pool mechanical components design.pptx
yokeleetan1
 
Understanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine LearningUnderstanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine Learning
SUTEJAS
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
MdTanvirMahtab2
 
一比一原版(Otago毕业证)奥塔哥大学毕业证成绩单如何办理
一比一原版(Otago毕业证)奥塔哥大学毕业证成绩单如何办理一比一原版(Otago毕业证)奥塔哥大学毕业证成绩单如何办理
一比一原版(Otago毕业证)奥塔哥大学毕业证成绩单如何办理
dxobcob
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
Kerry Sado
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
AJAYKUMARPUND1
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
manasideore6
 
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressionsKuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
Victor Morales
 
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
zwunae
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
Kamal Acharya
 

Recently uploaded (20)

在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
 
Water billing management system project report.pdf
Water billing management system project report.pdfWater billing management system project report.pdf
Water billing management system project report.pdf
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
 
Modelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdfModelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdf
 
digital fundamental by Thomas L.floydl.pdf
digital fundamental by Thomas L.floydl.pdfdigital fundamental by Thomas L.floydl.pdf
digital fundamental by Thomas L.floydl.pdf
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
 
Online aptitude test management system project report.pdf
Online aptitude test management system project report.pdfOnline aptitude test management system project report.pdf
Online aptitude test management system project report.pdf
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
 
Swimming pool mechanical components design.pptx
Swimming pool  mechanical components design.pptxSwimming pool  mechanical components design.pptx
Swimming pool mechanical components design.pptx
 
Understanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine LearningUnderstanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine Learning
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
 
一比一原版(Otago毕业证)奥塔哥大学毕业证成绩单如何办理
一比一原版(Otago毕业证)奥塔哥大学毕业证成绩单如何办理一比一原版(Otago毕业证)奥塔哥大学毕业证成绩单如何办理
一比一原版(Otago毕业证)奥塔哥大学毕业证成绩单如何办理
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
 
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressionsKuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
 
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 

05-Pi-Camera.pdf

  • 1. Pi Camera Tushar B. Kute, http://tusharkute.com
  • 2. Raspberry Pi Camera Module • The Raspberry Pi Camera Module v2 replaced the original Camera Module in April 2016. • The v2 Camera Module has a Sony IMX219 8- megapixel sensor (compared to the 5-megapixel OmniVision OV5647 sensor of the original camera). • The Camera Module can be used to take high- definition video, as well as stills photographs. It’s easy to use for beginners, but has plenty to offer advanced users if you’re looking to expand your knowledge. • You can also use the libraries we bundle with the camera to create effects.
  • 3. Raspberry Pi Camera Module • You can read all the gory details about IMX219 and the Exmor R back-illuminated sensor architecture on Sony’s website, but suffice to say this is more than just a resolution upgrade: it’s a leap forward in image quality, colour fidelity, and low-light performance. • It supports 1080p30, 720p60 and VGA90 video modes, as well as still capture. It attaches via a 15cm ribbon cable to the CSI port on the Raspberry Pi.
  • 4. Raspberry Pi Camera Module • The camera works with all models of Raspberry Pi 1, 2, and 3. • It can be accessed through the MMAL and V4L APIs, and there are numerous third- party libraries built for it, including the Picamera Python library. • The camera module is very popular in home security applications, and in wildlife camera traps.
  • 7. Open Raspberry Pi Configuration
  • 8. Enable the Camera interface
  • 10. Rotating the Camera You can rotate the image by 90, 180, or 270 degrees, or you can set it to 0 to reset.
  • 15. Converting and Playing Video • The video format need to get converted to MP4. So install gpac. sudo apt-get install gpac • Now convert the video to MP4: MP4Box -fps 30 -add video.h264 video.mp4
  • 16. Effects • The resolution of the capture is configurable. • By default it’s set to the resolution of your monitor, but the maximum resolution is 2592 x 1944 for still photos and 1920 x 1080 for video recording. • Try the following example to set the resolution to max. • Note that you’ll also need to set the frame rate to 15 to enable this maximum resolution: • The minimum resolution allowed is 64 x 64. Try taking one at that resolution.
  • 17. Effects: Frame rate and Resolution
  • 20. Annotation Text Sizes • You can set the annotation text size with the following code: camera.annotate_text_size = 50 • Valid sizes are 6 to 160. The default is 32.
  • 21. Annotation Colors • You can also alter the annotation colours. First of all, ensure that Color is imported by amending your import line at the top: from picamera import PiCamera, Color • Then amend the rest of your code as follows:
  • 22. Image Effects • You can use camera.image_effect to apply a particular image effect. • The options are: none, negative, solarize, sketch, denoise, emboss, oilpaint, hatch, gpen, pastel, watercolor, film, blur, saturation, colorswap, washedout, posterise, colorpoint, colorbalance, cartoon, deinterlace1, and deinterlace2. • The default is none.
  • 25. AWB mode • You can use camera.awb_mode to set the auto white balance to a preset mode to apply a particular effect. • The options are: off, auto, sunlight, cloudy, shade, tungsten, fluorescent, incandescent, flash, and horizon. The default is auto.
  • 26. Exposure mode • You can use camera.exposure_mode to set the exposure to a preset mode to apply a particular effect. • The options are: off, auto, night, nightpreview, backlight, spotlight, sports, snow, beach, verylong, fixedfps, antishake, and fireworks. The default is auto.
  • 28. tushar@tusharkute.com Thank you This presentation is created using LibreOffice Impress 5.3.2.2, can be used freely as per GNU General Public License Blogs http://digitallocha.blogspot.in http://kyamputar.blogspot.in Web Resources http://mitu.co.in http://tusharkute.com /mITuSkillologies @mitu_group