An RGB camera gives a robot a way to sense visible light and turn a scene into digital information. Like a human eye, it uses a lens to focus light, but the result is a grid of red, green, and blue pixel values that a computer can process. This matters because many robot tasks, such as following a path, finding an object, or avoiding a person, depend on recognizing what is in front of the robot.
A camera is often one of the most important sensors on a mobile robot, drone, or robotic arm.
Key Facts
- An RGB pixel stores color using red, green, and blue values, often as three 8-bit numbers from 0 to 255.
- Image resolution = width in pixels × height in pixels, such as 1920 × 1080 = 2,073,600 pixels.
- Frame rate is measured in frames per second, so time per frame = 1 / frame rate.
- Focal length affects field of view: a shorter focal length usually gives a wider view, while a longer focal length gives a zoomed-in view.
- Data per frame = width × height × bits per pixel, before compression.
- A typical vision pipeline is capture image, correct image, detect features, classify objects, output robot action.
Vocabulary
- RGB camera
- A camera that records visible light as red, green, and blue pixel values for computer processing.
- Image sensor
- An electronic chip that converts focused light into electrical signals for each pixel.
- Resolution
- The number of pixels in an image, usually written as width by height.
- Frame rate
- The number of images a camera captures each second, measured in frames per second.
- Vision pipeline
- A sequence of processing steps that turns raw camera pixels into useful information such as object detections.
Common Mistakes to Avoid
- Confusing resolution with accuracy. A higher resolution image has more pixels, but it does not automatically mean the robot will identify objects correctly.
- Ignoring lighting conditions. RGB cameras depend on visible light, so shadows, glare, darkness, and color changes can strongly affect the pixel data.
- Assuming a higher frame rate always improves performance. More frames per second can reduce motion blur and delay, but it also increases data processing demands.
- Treating raw pixels as understanding. A camera only produces numbers until a vision pipeline processes them into features, classifications, positions, or actions.
Practice Questions
- 1 A robot camera records images at 1280 × 720 resolution. How many pixels are in one frame?
- 2 An RGB camera captures 30 frames per second. What is the time between two consecutive frames in seconds?
- 3 A warehouse robot detects boxes well in daylight but fails under red-tinted lighting. Explain why an RGB camera system might struggle and name one improvement to the vision pipeline or setup.