SlideShare ist ein Scribd-Unternehmen logo
1 von 28
Pi Camera
Bhavesh Agrawal
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 Rback-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

Weitere ähnliche Inhalte

Ähnlich wie 05-Pi-Camera.pptx

Free video editing software
Free video editing softwareFree video editing software
Free video editing softwareSmartPixel
 
FS Presentation CCTV solution smartshop.pptx
FS Presentation CCTV solution smartshop.pptxFS Presentation CCTV solution smartshop.pptx
FS Presentation CCTV solution smartshop.pptxPawachMetharattanara
 
Gigapixel Photography: RCAHMW
Gigapixel Photography: RCAHMWGigapixel Photography: RCAHMW
Gigapixel Photography: RCAHMWRCAHMW
 
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 PIKrishna Kumar
 
Producing Effective Screencasts
Producing Effective ScreencastsProducing Effective Screencasts
Producing Effective ScreencastsRichard Harrington
 
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 PTZOpticsPaul Richards
 
Canon hd legria hf s21
Canon hd legria hf s21Canon hd legria hf s21
Canon hd legria hf s21tom70
 
NCET Tech Bite - Photoshop - July 2015
NCET Tech Bite - Photoshop - July 2015NCET Tech Bite - Photoshop - July 2015
NCET Tech Bite - Photoshop - July 2015Archersan
 
Chapter 6 : VIDEO
Chapter 6 : VIDEOChapter 6 : VIDEO
Chapter 6 : VIDEOazira96
 
In-Depth: 
4K Mirrorless Cameras: Sony A7 Series, Panasonic GH4, and More
In-Depth: 
4K Mirrorless Cameras: Sony A7 Series, Panasonic GH4, and MoreIn-Depth: 
4K Mirrorless Cameras: Sony A7 Series, Panasonic GH4, and More
In-Depth: 
4K Mirrorless Cameras: Sony A7 Series, Panasonic GH4, and MoreRichard Harrington
 

Ähnlich wie 05-Pi-Camera.pptx (20)

Equipment and software
Equipment and softwareEquipment and software
Equipment and software
 
Free video editing software
Free video editing softwareFree video editing software
Free video editing software
 
HD CCTV BACOM SOLUTION.pptx
HD CCTV BACOM SOLUTION.pptxHD CCTV BACOM SOLUTION.pptx
HD CCTV BACOM SOLUTION.pptx
 
FS Presentation CCTV solution smartshop.pptx
FS Presentation CCTV solution smartshop.pptxFS Presentation CCTV solution smartshop.pptx
FS Presentation CCTV solution smartshop.pptx
 
Gigapixel Photography: RCAHMW
Gigapixel Photography: RCAHMWGigapixel Photography: RCAHMW
Gigapixel Photography: RCAHMW
 
Equipment
Equipment Equipment
Equipment
 
Surveon IP Camera Spec-in Guide
Surveon IP Camera Spec-in Guide Surveon IP Camera Spec-in Guide
Surveon IP Camera Spec-in Guide
 
Production skills
Production skillsProduction skills
Production skills
 
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
 
Ip Cam
Ip CamIp Cam
Ip Cam
 
hcm381-481_oi.pdf
hcm381-481_oi.pdfhcm381-481_oi.pdf
hcm381-481_oi.pdf
 
Producing Effective Screencasts
Producing Effective ScreencastsProducing Effective Screencasts
Producing Effective Screencasts
 
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
 
Canon hd legria hf s21
Canon hd legria hf s21Canon hd legria hf s21
Canon hd legria hf s21
 
NCET Tech Bite - Photoshop - July 2015
NCET Tech Bite - Photoshop - July 2015NCET Tech Bite - Photoshop - July 2015
NCET Tech Bite - Photoshop - July 2015
 
Chapter 6 : VIDEO
Chapter 6 : VIDEOChapter 6 : VIDEO
Chapter 6 : VIDEO
 
Chapter 6
Chapter 6Chapter 6
Chapter 6
 
In-Depth: 
4K Mirrorless Cameras: Sony A7 Series, Panasonic GH4, and More
In-Depth: 
4K Mirrorless Cameras: Sony A7 Series, Panasonic GH4, and MoreIn-Depth: 
4K Mirrorless Cameras: Sony A7 Series, Panasonic GH4, and More
In-Depth: 
4K Mirrorless Cameras: Sony A7 Series, Panasonic GH4, and More
 
Video Streaming
Video StreamingVideo Streaming
Video Streaming
 

Mehr von bhaveshagrawal35

Mehr von 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
 

Kürzlich hochgeladen

Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduitsrknatarajan
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 

Kürzlich hochgeladen (20)

Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 

05-Pi-Camera.pptx

  • 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 Rback-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