Unit 14 · lesson

Pixels Are Measurements

A camera does not see "a box."

It records an array of pixel values produced by light passing through optics onto an image sensor.

Everything after that is interpretation.

From scene to numbers

physical scene
   ↓ light
lens + sensor

pixel array

image processing / model

feature, detection, class, or pose estimate

robot decision

This is another measurement chain.

Color is not an object

Suppose a robot searches for an orange target.

A simple system might threshold pixels by color and find a connected region.

That can work well in a controlled environment.

It can also fail when:

  • lighting changes;
  • a reflection appears;
  • another orange object enters the scene;
  • white balance changes;
  • the target is partly hidden.

The detector found a pattern in pixel values. The software decided that pattern represented the target.

Geometry from images

A camera can estimate direction from where an object appears in the image. With calibration and geometry, it may estimate range or pose.

But lens distortion, camera mounting angle, and calibration errors all affect the result.

Inspect before you trust

Take any image containing a distinct object.

List what a robot could measure directly from pixels:

  • approximate location in image;
  • color/brightness;
  • edges;
  • shape features;
  • apparent size.

Then list what requires an inference:

  • object identity;
  • real-world distance;
  • orientation;
  • whether it is safe to approach.

This separation prevents perception language from becoming magic.

A pixel has coordinates, not meaning

A camera converts light reaching an image sensor into an array of measured values.

A tiny grayscale image might be represented as:

12  18  22  20
15  80  92  24
17  88  95  25
13  19  21  18

The bright center may correspond to an object. The pixels themselves do not contain the label "object."

Computer vision builds interpretations from patterns in measurements.

Geometry begins with the image frame

An image has its own coordinate system. A detected point might be reported as:

u = 430 px
v = 210 px

Those pixel coordinates are not yet meters in the robot frame.

To connect vision to motion, a system may need camera calibration, depth information, known object geometry, stereo data, or another transformation.

This is the same architecture lesson you saw with localization: coordinate numbers require a frame and a model.

Inspect before interpreting

For any vision result, preserve:

  • the original image or supplied frame;
  • detection coordinates;
  • confidence or score if applicable;
  • calibration/version information;
  • timestamp;
  • downstream decision.

Without the input evidence, a wrong robot action becomes much harder to investigate.

process flow

CAD, Manufacturing, and Documentation: Engineering Evidence Flow

  1. Plan

    Name the system, criterion, constraint, and safety condition.

  2. Model

    Trace the control, energy, and feedback paths.

  3. Test

    Run a bounded approved test and record evidence.

  4. Revise

    Document correction, limitation, and next safe action.

Read this concept flow as plain text
  1. Plan. Name the system, criterion, constraint, and safety condition.
  2. Model. Trace the control, energy, and feedback paths.
  3. Test. Run a bounded approved test and record evidence.
  4. Revise. Document correction, limitation, and next safe action.