What is computer vision?

Bryan de Bourbon · · Draft

Take a photo at a park. You can pick out a cyclist, follow the path behind them, and see where a tree partly hides a bench. A computer gets an array of pixel values. Computer vision turns those values into answers about the scene.

The answer depends on the question. Classification can tell you whether the photo contains a bicycle. Object detection can put a box around each bicycle. Semantic segmentation can label every visible bicycle pixel. Each output makes a different claim about the same photo.

From edges to masks

A classical vision pipeline might find edges and look for pairs of circles to guess where a bicycle is. You can inspect the rules. They can also be brittle across photos. A wheel viewed from the side looks circular, while one viewed at an angle looks more like an ellipse.

A convolutional neural network, or CNN, learns visual features from examples. A classification head predicts a category, while a regression head can predict numerical values such as the corners of a bounding box. A detector can use both to answer what it found and where it is.

A U-Net makes predictions at the pixel level. Its encoder reduces spatial resolution to capture context, and its decoder builds back toward the original resolution. Connections between the two paths carry finer detail forward, which can matter for a bicycle spoke only a few pixels wide. The original U-Net paper

DINOv3 and SAM 3 start from different questions

With DINOv3, you can use pretrained visual features and train a segmentation head on your own labeled examples. That gives you a way to teach the system the categories your project uses. Meta’s DINOv3 research

With SAM 3, you can supply a text prompt like “bicycle” or a visual example and ask for masks of matching objects. That gives you a way to try a category directly and see which objects the system picks up. Meta’s SAM 3 paper

Either way, you have to decide what counts. Does a basket belong in the bicycle mask? Do you label the gaps between spokes? Where does the label end if a rider blocks part of the frame? If two people would label the scene differently, that disagreement can show up in the evaluation too.

What does it mean for a model to be right?

A label is the reference answer under the annotation rules. A prediction is the model’s answer. The model can miss part of the bicycle or mark part of the background as bicycle. Both errors matter.

Imagine a photo with 10,000 labeled pixels, 200 of them bicycle. A model that calls everything background gets 98% pixel accuracy while missing the bicycle entirely. Intersection over union, or IoU, exposes that failure. If a mask finds 150 of the 200 bicycle pixels and adds 50 background pixels, its IoU is 150 divided by 250, or 0.60. Mean IoU averages that calculation across classes.

Will it work on unfamiliar photos?

I’d hold out entire photo collections or shoots during evaluation. Frames from the same burst can share a subject, a background, and nearly the same camera angle. If they land in both training and test sets, a good score can overstate how well the model handles a new scene.

I’d look at scores by class and shooting conditions, review the lowest-scoring photos, and check whether the model repeatedly mistakes motorcycles for bicycles. If confidence scores determine which predictions a person reviews, I’d check whether predictions assigned about 90% confidence are correct roughly 90% of the time.

The evidence I’d want before relying on it for a new batch of photos is that masks line up with the labels, small subjects hold up alongside large ones, and performance carries across scenes the model hasn’t seen.

Themes to be expanded on

  • Classical vision features and when rule-based methods hold up
  • CNN classification and regression heads for object detection
  • U-Net skip connections and fine detail in segmentation masks
  • DINOv3 feature extraction and SAM 3 prompt-based segmentation
  • Bimodal error distributions, worst-case performance, and variation by class