SlideShare a Scribd company logo
1 of 29
Introduction to Camera

By: Sergio Aguirre <sergio.a.aguirre@gmail.com>
Basics

   Camera: Device that records and stores
    images.
       Still Images:




       Videos or movies:
Basics

   But essentially, what defines a camera device?
       Recording medium
       Lens
       Light
                             Lens   Recording Medium



                     Light
Basics

   Now, what about a typical digital camera?
       Image sensor (CCD or CMOS)
       Lens
       Flash
       ISP: Image Signal Processor
       Image and video Encoders (To save space)
       Storage Media (SD Cards, USB drives, Etc.)
Image sensors
Image sensor technology

   CCD: Charge Coupled
    device.
       Moves electrical
        charges to an area
        where it can be
        manipulated.
   CMOS: Complementary
    metal-oxide
    semiconductor.
       Array of pixel sensors,
        each one containing a
        photodetector and an
        active amplifier.
Image sensor pixel arrays

   Foveon:
       100% Red
       100% Green
       100% Blue
   Bayer:
       25% Red
       50% Green
       25% Blue
Image sensor formats
               (Most typical)
   RAW 10-bits.
       10-bit digital value obtained thru an ADC (Analog to
        Digital Converter) of the analog voltage coming
        from each pixel's associated photodetector charge-
        to-voltage converter.
   YUV 4:2:2 8-bits.
       Represent pairs of horizontally contiguous pixels. 8-
        bits per component (Y: Luminance, UV:
        Chrominance). Order is usually YUYV, or UYVY.
        Croma components (UV) are subsampled at half
        the sample rate than luma (Y).
Image sensor formats
               (Most typical)
   YUV 4:2:0 8-bits.
       Similar to 4:2:2, but the difference being that the UV
        components are also vertically subsampled by 2.
        This format contains interleaved data, which
        means, odd lines contain only Y elements, and
        even lines contain packed UYVY elements, similarly
        to 4:2:2 subsampling.
   NV12 (YUV 4:2:0 8-bits, planar)
       Exact same subsampling as above format, but the
        difference being that one array contains only Y
        components, and a second array contains packed
        UV components, 2x2 subsampled.
Image sensor core

   Typical block diagram of an image sensor core
    components:


                        Column
                      Sample/hold




                                                                     Digital gain
         Row select




                                                       Black level
                                                       calibration
                        Image                 10-bit
                         array
                                    AMP
                                              ADC                                   ...



                                     Gain
                                    control
Image sensor core functions

   Analog gain: Amplifies constant voltage per-
    pixel for entire array. Done before ADC.
   Black level: Level of pixel voltage at the darkest
    (black) part of the incoming image.
   Digital gain: Adds a constant number to the
    digitally converted pixel value, after going
    through the ADC.
   Skipping: Certain pixels rows/columns are
    avoided (skipped) on sampling.
   Binning: Averaging groups of neighborhood
    pixel charges.
Image sensor interfaces

   Overall, there's at least 2 communication links:
       Control: Typically I2C, but not necessarly the case.
        This is used by a master IC to initialize/program the
        sensor for desired operation and data output
        configuration.
       Data: This can be Parallel or Serial.

              Sensor
                        Data
                                 Master IC

                       Control
Image sensor interfaces - Control

   I2C: Inter-Integrated Circuit
       Multi-master serial single-ended computer bus,
        used to attach low-speed peripherals to a host IC.
       Uses 2 open-drain lines, w/pull-up resistors:
                   SCL (Serial CLock).
                   SDA (Serial DAta).
Image sensor interfaces - I2C

   I2C: Inter-Integrated Circuit
       START and STOP conditions to claim/release bus control.




       First byte: 7-bit device address space, 1 bit used to indicate Read
        (HI) or Write (LOW).
       ACK bit pulled low by slave after each byte sent, used to
        handshake transmission between master and slave ICs. If ACK bit
        is high, master should stop transmission.
Image sensor interfaces - Parallel

   Parallel interface (a.k.a. Digital Video Port)
       Data signals: 1 digital output pin per bit.
       Sync signals:
                         PCLK: Pixel Clock.
                         HSYNC: Horizontal Sync.
                         VSYNC: Vertical Sync.
                             Horizontal Blanking




                                                            D[9:0]


        Image data                                 Sensor
                                                            PCLK
                                                                     Master IC

                                                            HSYNC
                                                            VSYNC

         Vertical Blanking
Image sensor interfaces - CSI2

   MIPI CSI2 (Camera Serial Interface 2).
       Data signals: Up to 4 differential lanes (+/- signals).
       Clock signals: 1 differential lane (+/- signals).
                   Speeds up to 1 Gbit/s per lane (500 MHz)


                                 CLK (+/-)


                                 DAT0 (+/-)

                        Sensor   DAT1 (+/-)   Master IC
                                 DAT2 (+/-)

                                 DAT3 (+/-)
Image sensor interfaces - CSI2

   CSI2 Receiver components:
Image sensor interfaces - CSI2

   D-PHY layer:
Image sensor interfaces - CSI2

   CSI2 Protocol Layer:
Image sensor interfaces - CSI2

   Data Lane Merger
Lens
Lens

   Could be either a simple convex lens, or a
    compound lens made up of a number of lens
    elements, used to correct optical aberrations,
    and keep good image sharpness on a specific
    object distance from the camera.



   There are fixed-focus lens, and lens whose
    position can be adjusted by a VCM (voice coil
    motor).
Lens

   For moving lens, position can be either
    controlled as part of the image sensor registers,
    or as a separate I2C device in the bus.
   This is usually done as a result of the Auto
    Focus algorithm, after analyzing the captured
    images. It can also be due to manual control, if
    desired.
Flash
Flash

   Used in photography to compensate natural
    ambient light, and illuminate a dark scene.
   Syncronized with start of capture image
    command, with adjusted flashing duration, and
    intensity.
   Usually triggered with GPIOs and configured
    with I2C commands.
Thanks!
Extra slides
Image sensor interfaces - Data

   MIPI CSI (Camera Serial Interface).
       Data signals: 1 differential lane (+/- signals).
       Clock signals: 1 differential lane (+/- signals).
                   Speeds between 1->208 Mbps



                               CLK (+/-)


                      Sensor   DAT (+/-)   Master IC
Image sensor interfaces - Data

       SMIA CCP2 (Compact Camera Port 2).
              Data signals: 1 differential lane (+/- signals).
              Clock signals: 1 differential lane (+/- signals).




Class         Data transfer capacity     Signaling method            CLK, or
              (sustain data rate)                                    STROBE
                                                                     (+/-)
Class 0       <208 Mbit/s                Data/Clock

Class 1       208 Mbit/s to 416 Mbit/s   Data/Strobe        Sensor   DAT (+/-)   Master IC
Class 2       416 Mbit/s to 650 Mbit/s   Data/Strobe

More Related Content

What's hot

Aruna Ravi - M.S Thesis
Aruna Ravi - M.S ThesisAruna Ravi - M.S Thesis
Aruna Ravi - M.S ThesisArunaRavi
 
RTC Interfacing and Programming
RTC Interfacing and ProgrammingRTC Interfacing and Programming
RTC Interfacing and ProgrammingDevashish Raval
 
Digital Signal Processor evolution over the last 30 years
Digital Signal Processor evolution over the last 30 yearsDigital Signal Processor evolution over the last 30 years
Digital Signal Processor evolution over the last 30 yearsFrancois Charlot
 
An Ultra-Low Power Asynchronous-Logic
An Ultra-Low Power Asynchronous-LogicAn Ultra-Low Power Asynchronous-Logic
An Ultra-Low Power Asynchronous-LogicHossam Hassan
 
04 Mcu Day Stellaris 8 12b Editado
04   Mcu Day   Stellaris 8 12b   Editado04   Mcu Day   Stellaris 8 12b   Editado
04 Mcu Day Stellaris 8 12b EditadoTexas Instruments
 
Ee6403 --unit v -digital signal processors
Ee6403 --unit v -digital signal processorsEe6403 --unit v -digital signal processors
Ee6403 --unit v -digital signal processorsJeya Bright
 
Design & development of embedded application
Design & development of embedded applicationDesign & development of embedded application
Design & development of embedded applicationeSAT Publishing House
 
Flex Stack Rapid Prototyping System
Flex Stack Rapid Prototyping SystemFlex Stack Rapid Prototyping System
Flex Stack Rapid Prototyping Systemfrankp617
 
03 Mcu Day 2009 (C2000) 8 13 Editado
03   Mcu Day 2009 (C2000) 8 13   Editado03   Mcu Day 2009 (C2000) 8 13   Editado
03 Mcu Day 2009 (C2000) 8 13 EditadoTexas Instruments
 
Stellaris® 9000 Family of ARM® Cortex™-M3
Stellaris® 9000 Family of ARM® Cortex™-M3 Stellaris® 9000 Family of ARM® Cortex™-M3
Stellaris® 9000 Family of ARM® Cortex™-M3 Premier Farnell
 
Solution on Handheld Signal Generator
Solution on Handheld Signal Generator Solution on Handheld Signal Generator
Solution on Handheld Signal Generator Premier Farnell
 
Jay's 2018 CMR/I Presentation
Jay's 2018 CMR/I PresentationJay's 2018 CMR/I Presentation
Jay's 2018 CMR/I Presentationjaybeckham
 
Implementation of gps signal acquisition and tracking in fpga
Implementation of gps signal acquisition and tracking in fpgaImplementation of gps signal acquisition and tracking in fpga
Implementation of gps signal acquisition and tracking in fpgaeSAT Publishing House
 
1 introduction to dsp processor 20140919
1 introduction to dsp processor 201409191 introduction to dsp processor 20140919
1 introduction to dsp processor 20140919Hans Kuo
 
Iaetsd vlsi based implementation of a digital
Iaetsd vlsi based implementation of a digitalIaetsd vlsi based implementation of a digital
Iaetsd vlsi based implementation of a digitalIaetsd Iaetsd
 

What's hot (20)

Aruna Ravi - M.S Thesis
Aruna Ravi - M.S ThesisAruna Ravi - M.S Thesis
Aruna Ravi - M.S Thesis
 
RTC Interfacing and Programming
RTC Interfacing and ProgrammingRTC Interfacing and Programming
RTC Interfacing and Programming
 
Digital Signal Processor evolution over the last 30 years
Digital Signal Processor evolution over the last 30 yearsDigital Signal Processor evolution over the last 30 years
Digital Signal Processor evolution over the last 30 years
 
An Ultra-Low Power Asynchronous-Logic
An Ultra-Low Power Asynchronous-LogicAn Ultra-Low Power Asynchronous-Logic
An Ultra-Low Power Asynchronous-Logic
 
04 Mcu Day Stellaris 8 12b Editado
04   Mcu Day   Stellaris 8 12b   Editado04   Mcu Day   Stellaris 8 12b   Editado
04 Mcu Day Stellaris 8 12b Editado
 
Ee6403 --unit v -digital signal processors
Ee6403 --unit v -digital signal processorsEe6403 --unit v -digital signal processors
Ee6403 --unit v -digital signal processors
 
International Journal of Engineering Inventions (IJEI)
International Journal of Engineering Inventions (IJEI)International Journal of Engineering Inventions (IJEI)
International Journal of Engineering Inventions (IJEI)
 
Design & development of embedded application
Design & development of embedded applicationDesign & development of embedded application
Design & development of embedded application
 
Flex Stack Rapid Prototyping System
Flex Stack Rapid Prototyping SystemFlex Stack Rapid Prototyping System
Flex Stack Rapid Prototyping System
 
03 Mcu Day 2009 (C2000) 8 13 Editado
03   Mcu Day 2009 (C2000) 8 13   Editado03   Mcu Day 2009 (C2000) 8 13   Editado
03 Mcu Day 2009 (C2000) 8 13 Editado
 
Dsp ajal
Dsp  ajalDsp  ajal
Dsp ajal
 
Stellaris® 9000 Family of ARM® Cortex™-M3
Stellaris® 9000 Family of ARM® Cortex™-M3 Stellaris® 9000 Family of ARM® Cortex™-M3
Stellaris® 9000 Family of ARM® Cortex™-M3
 
UCTTintro
UCTTintroUCTTintro
UCTTintro
 
Solution on Handheld Signal Generator
Solution on Handheld Signal Generator Solution on Handheld Signal Generator
Solution on Handheld Signal Generator
 
Jay's 2018 CMR/I Presentation
Jay's 2018 CMR/I PresentationJay's 2018 CMR/I Presentation
Jay's 2018 CMR/I Presentation
 
Architecture of tms320 f2812
Architecture of tms320 f2812Architecture of tms320 f2812
Architecture of tms320 f2812
 
H0534248
H0534248H0534248
H0534248
 
Implementation of gps signal acquisition and tracking in fpga
Implementation of gps signal acquisition and tracking in fpgaImplementation of gps signal acquisition and tracking in fpga
Implementation of gps signal acquisition and tracking in fpga
 
1 introduction to dsp processor 20140919
1 introduction to dsp processor 201409191 introduction to dsp processor 20140919
1 introduction to dsp processor 20140919
 
Iaetsd vlsi based implementation of a digital
Iaetsd vlsi based implementation of a digitalIaetsd vlsi based implementation of a digital
Iaetsd vlsi based implementation of a digital
 

Similar to Camera training by Sergio Aguirre

Cameratrainingsergiopublic 120904235733-phpapp02(2)
Cameratrainingsergiopublic 120904235733-phpapp02(2)Cameratrainingsergiopublic 120904235733-phpapp02(2)
Cameratrainingsergiopublic 120904235733-phpapp02(2)KASIM DUDEKULA
 
OV7670 Camera interfacing-with-arduino-microcontroller
OV7670 Camera interfacing-with-arduino-microcontrollerOV7670 Camera interfacing-with-arduino-microcontroller
OV7670 Camera interfacing-with-arduino-microcontrollerSomnath Sharma
 
Accelerometer and LED Sensor Array Based Remote Control Car
Accelerometer and LED Sensor Array Based Remote Control CarAccelerometer and LED Sensor Array Based Remote Control Car
Accelerometer and LED Sensor Array Based Remote Control CarAbhijeet kapse
 
Audio Acquisition, Storage and Playback
Audio Acquisition, Storage and PlaybackAudio Acquisition, Storage and Playback
Audio Acquisition, Storage and PlaybackJerome Stanislaus
 
Wireless Microcontroller (IEEE802.15.4 and ZigBee): JN5139
Wireless Microcontroller  (IEEE802.15.4 and ZigBee): JN5139Wireless Microcontroller  (IEEE802.15.4 and ZigBee): JN5139
Wireless Microcontroller (IEEE802.15.4 and ZigBee): JN5139Premier Farnell
 
Iaetsd designing of cmos image sensor test-chip and its characterization
Iaetsd designing of cmos image sensor test-chip and its characterizationIaetsd designing of cmos image sensor test-chip and its characterization
Iaetsd designing of cmos image sensor test-chip and its characterizationIaetsd Iaetsd
 
Zigbee based metal detecting robot to assist bomb detection and rescue team
Zigbee based metal detecting robot to assist bomb detection and rescue teamZigbee based metal detecting robot to assist bomb detection and rescue team
Zigbee based metal detecting robot to assist bomb detection and rescue teamshiva kumar cheruku
 
Zigbee based metal detecting robot to assist bomb detection and rescue team
Zigbee based metal detecting robot to assist bomb detection and rescue teamZigbee based metal detecting robot to assist bomb detection and rescue team
Zigbee based metal detecting robot to assist bomb detection and rescue teamshiva kumar cheruku
 
Embedded &amp; pcb design
Embedded &amp; pcb designEmbedded &amp; pcb design
Embedded &amp; pcb designTanveer Behl
 
Biometric smart card polling system12
Biometric smart card polling system12Biometric smart card polling system12
Biometric smart card polling system12premkarthik06
 
Webinar: Wearables - Apresentando um diagrama de blocos e componentes chaves
Webinar: Wearables - Apresentando um diagrama de blocos e componentes chavesWebinar: Wearables - Apresentando um diagrama de blocos e componentes chaves
Webinar: Wearables - Apresentando um diagrama de blocos e componentes chavesEmbarcados
 
eCOG1X 16-bit Microcontrollers
eCOG1X 16-bit MicrocontrollerseCOG1X 16-bit Microcontrollers
eCOG1X 16-bit MicrocontrollersPremier Farnell
 

Similar to Camera training by Sergio Aguirre (20)

Cameratrainingsergiopublic 120904235733-phpapp02(2)
Cameratrainingsergiopublic 120904235733-phpapp02(2)Cameratrainingsergiopublic 120904235733-phpapp02(2)
Cameratrainingsergiopublic 120904235733-phpapp02(2)
 
OV7670 Camera interfacing-with-arduino-microcontroller
OV7670 Camera interfacing-with-arduino-microcontrollerOV7670 Camera interfacing-with-arduino-microcontroller
OV7670 Camera interfacing-with-arduino-microcontroller
 
Accelerometer and LED Sensor Array Based Remote Control Car
Accelerometer and LED Sensor Array Based Remote Control CarAccelerometer and LED Sensor Array Based Remote Control Car
Accelerometer and LED Sensor Array Based Remote Control Car
 
3 STM32's ADC.ppt
3 STM32's ADC.ppt3 STM32's ADC.ppt
3 STM32's ADC.ppt
 
Audio Acquisition, Storage and Playback
Audio Acquisition, Storage and PlaybackAudio Acquisition, Storage and Playback
Audio Acquisition, Storage and Playback
 
Wireless Microcontroller (IEEE802.15.4 and ZigBee): JN5139
Wireless Microcontroller  (IEEE802.15.4 and ZigBee): JN5139Wireless Microcontroller  (IEEE802.15.4 and ZigBee): JN5139
Wireless Microcontroller (IEEE802.15.4 and ZigBee): JN5139
 
Embedded System[586]
Embedded System[586]Embedded System[586]
Embedded System[586]
 
Iaetsd designing of cmos image sensor test-chip and its characterization
Iaetsd designing of cmos image sensor test-chip and its characterizationIaetsd designing of cmos image sensor test-chip and its characterization
Iaetsd designing of cmos image sensor test-chip and its characterization
 
Zigbee based metal detecting robot to assist bomb detection and rescue team
Zigbee based metal detecting robot to assist bomb detection and rescue teamZigbee based metal detecting robot to assist bomb detection and rescue team
Zigbee based metal detecting robot to assist bomb detection and rescue team
 
Zigbee based metal detecting robot to assist bomb detection and rescue team
Zigbee based metal detecting robot to assist bomb detection and rescue teamZigbee based metal detecting robot to assist bomb detection and rescue team
Zigbee based metal detecting robot to assist bomb detection and rescue team
 
Punch sensor, Arduino
Punch sensor, Arduino Punch sensor, Arduino
Punch sensor, Arduino
 
Embedded &amp; pcb design
Embedded &amp; pcb designEmbedded &amp; pcb design
Embedded &amp; pcb design
 
Biometric smart card polling system12
Biometric smart card polling system12Biometric smart card polling system12
Biometric smart card polling system12
 
Webinar: Wearables - Apresentando um diagrama de blocos e componentes chaves
Webinar: Wearables - Apresentando um diagrama de blocos e componentes chavesWebinar: Wearables - Apresentando um diagrama de blocos e componentes chaves
Webinar: Wearables - Apresentando um diagrama de blocos e componentes chaves
 
Ch7 031102
Ch7 031102Ch7 031102
Ch7 031102
 
Circuits eda
Circuits edaCircuits eda
Circuits eda
 
Bidirect visitor counter
Bidirect visitor counterBidirect visitor counter
Bidirect visitor counter
 
eCOG1X 16-bit Microcontrollers
eCOG1X 16-bit MicrocontrollerseCOG1X 16-bit Microcontrollers
eCOG1X 16-bit Microcontrollers
 
Analog to digital converters, adc
Analog to digital converters, adcAnalog to digital converters, adc
Analog to digital converters, adc
 
A 1.2V 10-bit 165MSPS Video ADC
A 1.2V 10-bit 165MSPS Video ADCA 1.2V 10-bit 165MSPS Video ADC
A 1.2V 10-bit 165MSPS Video ADC
 

Recently uploaded

Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Mark Goldstein
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Hiroshi SHIBATA
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...Wes McKinney
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesThousandEyes
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationKnoldus Inc.
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfpanagenda
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesThousandEyes
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI AgeCprime
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality AssuranceInflectra
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterMydbops
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch TuesdayIvanti
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentPim van der Noll
 

Recently uploaded (20)

Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog Presentation
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI Age
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL Router
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch Tuesday
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
 

Camera training by Sergio Aguirre

  • 1. Introduction to Camera By: Sergio Aguirre <sergio.a.aguirre@gmail.com>
  • 2. Basics  Camera: Device that records and stores images.  Still Images:  Videos or movies:
  • 3. Basics  But essentially, what defines a camera device?  Recording medium  Lens  Light Lens Recording Medium Light
  • 4. Basics  Now, what about a typical digital camera?  Image sensor (CCD or CMOS)  Lens  Flash  ISP: Image Signal Processor  Image and video Encoders (To save space)  Storage Media (SD Cards, USB drives, Etc.)
  • 6. Image sensor technology  CCD: Charge Coupled device.  Moves electrical charges to an area where it can be manipulated.  CMOS: Complementary metal-oxide semiconductor.  Array of pixel sensors, each one containing a photodetector and an active amplifier.
  • 7. Image sensor pixel arrays  Foveon:  100% Red  100% Green  100% Blue  Bayer:  25% Red  50% Green  25% Blue
  • 8. Image sensor formats (Most typical)  RAW 10-bits.  10-bit digital value obtained thru an ADC (Analog to Digital Converter) of the analog voltage coming from each pixel's associated photodetector charge- to-voltage converter.  YUV 4:2:2 8-bits.  Represent pairs of horizontally contiguous pixels. 8- bits per component (Y: Luminance, UV: Chrominance). Order is usually YUYV, or UYVY. Croma components (UV) are subsampled at half the sample rate than luma (Y).
  • 9. Image sensor formats (Most typical)  YUV 4:2:0 8-bits.  Similar to 4:2:2, but the difference being that the UV components are also vertically subsampled by 2. This format contains interleaved data, which means, odd lines contain only Y elements, and even lines contain packed UYVY elements, similarly to 4:2:2 subsampling.  NV12 (YUV 4:2:0 8-bits, planar)  Exact same subsampling as above format, but the difference being that one array contains only Y components, and a second array contains packed UV components, 2x2 subsampled.
  • 10. Image sensor core  Typical block diagram of an image sensor core components: Column Sample/hold Digital gain Row select Black level calibration Image 10-bit array AMP ADC ... Gain control
  • 11. Image sensor core functions  Analog gain: Amplifies constant voltage per- pixel for entire array. Done before ADC.  Black level: Level of pixel voltage at the darkest (black) part of the incoming image.  Digital gain: Adds a constant number to the digitally converted pixel value, after going through the ADC.  Skipping: Certain pixels rows/columns are avoided (skipped) on sampling.  Binning: Averaging groups of neighborhood pixel charges.
  • 12. Image sensor interfaces  Overall, there's at least 2 communication links:  Control: Typically I2C, but not necessarly the case. This is used by a master IC to initialize/program the sensor for desired operation and data output configuration.  Data: This can be Parallel or Serial. Sensor Data Master IC Control
  • 13. Image sensor interfaces - Control  I2C: Inter-Integrated Circuit  Multi-master serial single-ended computer bus, used to attach low-speed peripherals to a host IC.  Uses 2 open-drain lines, w/pull-up resistors:  SCL (Serial CLock).  SDA (Serial DAta).
  • 14. Image sensor interfaces - I2C  I2C: Inter-Integrated Circuit  START and STOP conditions to claim/release bus control.  First byte: 7-bit device address space, 1 bit used to indicate Read (HI) or Write (LOW).  ACK bit pulled low by slave after each byte sent, used to handshake transmission between master and slave ICs. If ACK bit is high, master should stop transmission.
  • 15. Image sensor interfaces - Parallel  Parallel interface (a.k.a. Digital Video Port)  Data signals: 1 digital output pin per bit.  Sync signals:  PCLK: Pixel Clock.  HSYNC: Horizontal Sync.  VSYNC: Vertical Sync. Horizontal Blanking D[9:0] Image data Sensor PCLK Master IC HSYNC VSYNC Vertical Blanking
  • 16. Image sensor interfaces - CSI2  MIPI CSI2 (Camera Serial Interface 2).  Data signals: Up to 4 differential lanes (+/- signals).  Clock signals: 1 differential lane (+/- signals).  Speeds up to 1 Gbit/s per lane (500 MHz) CLK (+/-) DAT0 (+/-) Sensor DAT1 (+/-) Master IC DAT2 (+/-) DAT3 (+/-)
  • 17. Image sensor interfaces - CSI2  CSI2 Receiver components:
  • 18. Image sensor interfaces - CSI2  D-PHY layer:
  • 19. Image sensor interfaces - CSI2  CSI2 Protocol Layer:
  • 20. Image sensor interfaces - CSI2  Data Lane Merger
  • 21. Lens
  • 22. Lens  Could be either a simple convex lens, or a compound lens made up of a number of lens elements, used to correct optical aberrations, and keep good image sharpness on a specific object distance from the camera.  There are fixed-focus lens, and lens whose position can be adjusted by a VCM (voice coil motor).
  • 23. Lens  For moving lens, position can be either controlled as part of the image sensor registers, or as a separate I2C device in the bus.  This is usually done as a result of the Auto Focus algorithm, after analyzing the captured images. It can also be due to manual control, if desired.
  • 24. Flash
  • 25. Flash  Used in photography to compensate natural ambient light, and illuminate a dark scene.  Syncronized with start of capture image command, with adjusted flashing duration, and intensity.  Usually triggered with GPIOs and configured with I2C commands.
  • 28. Image sensor interfaces - Data  MIPI CSI (Camera Serial Interface).  Data signals: 1 differential lane (+/- signals).  Clock signals: 1 differential lane (+/- signals).  Speeds between 1->208 Mbps CLK (+/-) Sensor DAT (+/-) Master IC
  • 29. Image sensor interfaces - Data  SMIA CCP2 (Compact Camera Port 2).  Data signals: 1 differential lane (+/- signals).  Clock signals: 1 differential lane (+/- signals). Class Data transfer capacity Signaling method CLK, or (sustain data rate) STROBE (+/-) Class 0 <208 Mbit/s Data/Clock Class 1 208 Mbit/s to 416 Mbit/s Data/Strobe Sensor DAT (+/-) Master IC Class 2 416 Mbit/s to 650 Mbit/s Data/Strobe