What Is Computer Vision? How AI “Sees” Images
Computer vision lets AI work with images and video. See how a picture becomes numbers, how models learn to recognise things, the main tasks, and where it goes wrong.
Short answer: computer vision is the part of AI that lets computers work with images and video: recognising what is in a picture, finding where objects are, or reading text from a photo. A computer does not “see” like a person. It turns a picture into a grid of numbers and learns patterns in those numbers from many examples.
What Is Computer Vision?
Computer vision is a field of AI and machine learning that teaches software to extract meaning from visual data such as photos, scans and video frames. The output can be a label (“this is a cat”), a location (a box around each car), a pixel-by-pixel outline, or text read from an image.
How Does a Computer “See” an Image?
To a computer, an image is a grid of numbers. In a grey-scale picture each pixel is one number for brightness. A colour picture stores three numbers per pixel, for red, green and blue. A small photo already holds hundreds of thousands of numbers, and nothing in them says “cat” directly.
Early systems used hand-written rules, for example “look for sharp changes in brightness to find edges”. Here is a tiny version of that idea: a 4-row picture with a dark area on the left and a bright area on the right, and a filter that compares each pixel with its neighbour.
image = [
[0, 0, 9, 9, 9],
[0, 0, 9, 9, 9],
[0, 0, 9, 9, 9],
[0, 0, 9, 9, 9],
]
kernel = [-1, 1] # difference between a pixel and the one to its right
for row in image:
edges = [row[i] * kernel[0] + row[i + 1] * kernel[1] for i in range(len(row) - 1)]
print(row, "->", edges)
# [0, 0, 9, 9, 9] -> [0, 9, 0, 0]The 9 appears exactly where brightness jumps, so the filter has found a vertical edge. The idea of sliding a small filter across an image is the heart of a convolution.
How Do Modern Models Learn to Recognise Things?
Instead of hand-writing filters, modern systems learn them. A convolutional neural network (CNN) stacks many layers of filters. Early layers tend to pick up edges and simple textures; later layers combine them into parts and then whole objects. Newer models based on transformers are also widely used for images. In both cases the training recipe is the same:
Collect many images with labels (or other supervision).
Let the model guess, measure the error, and adjust its weights.
Repeat until it works well on images it has not seen before.
If neural networks are new to you, read how a neural network works first.
What Can Computer Vision Do? Main Tasks
Task | Question it answers | Example |
|---|---|---|
Image classification | What is in this picture? | Sorting plant photos by species |
Object detection | What is where? | Boxes around cars and people in a camera feed |
Segmentation | Which pixels belong to which object? | Outlining an organ in a medical scan |
OCR | What text is written here? | Reading a printed form |
Face or pose analysis | Where are the parts of a face or body? | Photo apps that focus on a face |
Many of these appear in the real-world uses of deep learning.
Is Computer Vision the Same as Generative AI for Images?
No. Computer vision mostly analyses an image; image generators create one. Today’s multimodal assistants combine both worlds: you can upload a photo and ask a question about it. For how to ask careful questions about images, see the prompt engineering lesson on describing and transcribing images and documents.
Where Does Computer Vision Go Wrong?
Biased or narrow training data. A model trained on limited kinds of images can fail on others, such as different lighting, skin tones, cameras or handwriting.
Surprising mistakes. Small changes, like a sticker or a blur, can fool a model that seems accurate in normal conditions.
Privacy. Images of people are sensitive. Check the rules that apply where you live and get consent before collecting or analysing them.
How Can a Beginner Get Started?
First understand where vision sits among AI, machine learning and deep learning. Then learn Python, load an image as an array of numbers, and train a small classifier on a public practice dataset. Always test on images the model never saw during training.
Common Mistakes
Thinking the model “understands” the scene like a person does. It finds statistical patterns.
Judging a model on its training images instead of fresh ones.
Ignoring who is missing from the data.
Key Takeaway
Computer vision turns pictures into numbers and learns patterns in them, so software can classify, locate and read what is in an image. It is powerful, but only as good as its data and testing.
Ready to start? Understand how models learn from data, in plain language and with no maths background needed. Begin with the free course How AI Works: Foundations for Everyone.
Related articles
More in Machine Learning
How Does Machine Learning Detect Fraud?
Machine learning fraud detection scores every transaction using learned fraud patterns and anomaly detection. See why 99% accuracy can catch nothing, a worked precision and recall example, and runnable code.
6 min readDec 2, 2026What Is Cross-Validation? k-Fold Explained Simply
Cross-validation tests a model on several splits of the data and averages the scores. See k-fold on a tiny worked example and run it in scikit-learn.
5 min readDec 1, 2026What Is Data Labeling and Why Does AI Need It?
Data labeling adds the right answers to raw data so models can learn. See the main label types, how to measure labeler agreement, and how AI-assisted labeling works.
5 min readNov 30, 2026What Is Feature Engineering? Better Data for Better Models
Feature engineering turns raw data into inputs a model can learn from. See the common techniques, a runnable Python example, and the mistakes that cause data leakage.
4 min readNov 26, 2026Gradient Descent Explained Simply
How models learn by measuring error and stepping downhill, with a runnable Python example showing learning rate, steps and local minima.
5 min readNov 23, 2026What Is NLP (Natural Language Processing)?
NLP is how computers read and produce human language. See how it works, the main tasks, a small Python example, and how NLP relates to LLMs.
4 min readNov 20, 2026
Comments
Sign in to join the discussion.

