Computer vision
Компьютерное зрение
A field of computing that turns images and video into useful information. A vision system can read text on a receipt, locate a flaw on a part, or follow an object from one video frame to the next.
Start with the output
A camera gives software a grid of pixel values, not a list of objects. Computer vision is about extracting information from those pixels. Take a photo of a supermarket shelf: the same image could support several tasks, depending on what the application needs to return.
- Image classification: Does this photo show an empty shelf? The output is a label for the whole image.
- Object detection: Where are the cereal boxes? The output is typically a set of bounding boxes, each with a class and a confidence score.
- Segmentation: Which pixels belong to the shelf or to individual products? The output is a pixel-level mask rather than a rectangle.
- Tracking: Is the box in this frame the same one someone picked up in the previous frame? The output links observations over time.
From pixels to predictions
Not every vision system needs a neural network. With a fixed camera and controlled lighting, a brightness rule might be enough to count dark parts passing over a light conveyor belt. When objects vary in appearance or the camera moves, learned models such as convolutional neural networks (CNNs) and vision transformers are often a better fit. In supervised training, the annotations need to match the desired output: image labels for classification, boxes for detection, or masks for segmentation.
When the system processes a new image, it typically resizes or pads it and normalizes pixel values as expected by the model. It then runs the model and converts its predictions into something the application can use. For instance, a detector that works on a resized image has to map its box coordinates back to the original image before drawing them on screen.
Example: reading a receipt
An expense app might first use a vision system to locate text in a receipt photo. It can then crop each text region and recognize the characters. These steps are part of optical character recognition (OCR); deciding which number is the total is a separate step that can use the recognized text and its layout. This distinction helps when debugging: selecting the subtotal is a different failure from reading an 8 as a 3. Other uses of computer vision include measuring land cover in satellite imagery, inspecting manufactured parts, and finding products that look similar to an uploaded photo.
What comes up in interviews
Expect to explain how you would measure success and how you would build the test set. If just one in a hundred parts is defective, a classifier that accepts every part achieves 99% accuracy while catching zero defects. Recall tells you what fraction of defects were found; precision tells you what fraction of flagged parts were actually defective. For boxes and masks, a common overlap measure is intersection over union (IoU): divide the area shared by the prediction and the annotation by the total area covered by either.
Also watch for data leakage. Randomly splitting adjacent video frames can put almost identical images in training and testing. If the goal is to perform well on new recordings, hold out whole recordings and check how the system handles changes in lighting, camera angle, or background.