Cameras Sensors and Pixels - iffatAGheyas/computer-vision-handbook GitHub Wiki

πŸŽ₯ Cameras, Sensors & Pixels

Understanding how cameras capture light and convert it into digital data is crucial for Computer Vision. This page breaks down the camera’s components, sensor operation, pixels, and image resolution.


1. What is a Camera in Computer Vision?

In Computer Vision, a camera is a device that converts light from the real world into a digital image. Think of it like a translator:

🌍 Light from the real world β†’ πŸŽ₯ Camera β†’ πŸ› Digital data (pixels)


2. What’s Inside a Camera?

a. 🎯 Lens

  • Focuses incoming light rays onto the sensor.
  • Adjusting the lens changes focus and field of view.

b. πŸ” Aperture

  • Controls how much light enters.
  • A small aperture = less light (sharper depth of field), large aperture = more light (brighter image).

c. ⏱ Shutter

  • Controls how long the sensor is exposed to light.
  • Fast shutter = crisp motion; slow shutter = motion blur.

d. πŸ“¦ Image Sensor (the core)

  • The sensor is made up of tiny light-sensitive cells called pixels.
  • Common sensor types:
    • CCD (Charge-Coupled Device)
    • CMOS (Complementary Metal Oxide Semiconductor)

3. How Sensors Work

Each pixel on the sensor measures the intensity of light hitting it:

  • More light = higher value (brighter)
  • Less light = lower value (darker)

This yields a grid of numbersβ€”a matrix that becomes your digital image!


4. Pixels: The Smallest Unit

  • A pixel is the smallest measurable unit in an image.
  • Each pixel holds one or more values depending on image type:
    • Grayscale = 1 value (0–255)
    • RGB = 3 values (R, G, B channels)

5. Resolution and Size

  • Resolution = number of pixels in width Γ— height (e.g., 1920 Γ— 1080)
  • More pixels β†’ more detail β†’ larger file size

πŸ”„ Summary Table

Component Function
Lens Focuses incoming light
Aperture Controls light amount
Shutter Controls exposure time
Sensor Captures light at pixel level
Pixel Stores light intensity / colour info