Class 10 · Unit 4: Computer vision · Lesson 4.1 · 40 min
What computer vision does
Your phone read a signboard in Urdu and spoke it in English. What did it have to *see* first?
Today you will: Name the four computer vision tasks · Match real systems to their task · Tell computer vision from image processing
Story
On Residency Road, Hiba's cousin from Delhi points her phone at a shop sign written in Urdu. The screen flickers, and English words appear on top of the Urdu, in the same place, the same size.
Hiba: “How does it do that?”
Rahat: “It's reading.”
Hiba: “Before it can read, it has to find the sign. Then find the letters on the sign. Then work out which pixels are letters and which are the wall.”
Her cousin looks at the phone again. "That's four jobs."
Hiba: “At least.”
Watch
Four things a machine can do with a picture — — scan code 10.4.1 in the printed book.
Learn it
Computer vision is the domain of AI that lets machines take in images and video, make sense of the pixels, and act on what they find. Reading a shop sign is several jobs at once: find the sign, find the letters, separate them from the wall, then read. CV does four kinds of job, from simplest to hardest, and it is different from image processing, which only changes a picture.
Words to know
- Computer vision (CV) AI that takes in images and video and makes sense of them. CBSE's examples: face recognition, face filters, search by image, CV in shops, self-driving cars, medical imaging.
- Pixel the smallest unit of a digital picture. CV collects its information from pixels.
- Classification one label for the whole image: apple.
- Classification + localisation the label and a box showing where it is. One object only.
- Object detection find every object of each kind, and box each one.
- Instance segmentation label every pixel with the object it belongs to, giving each object its exact outline.
- Image processing changing an image: brighter, sharper, blurred, cropped. It does not understand what is in it.
Step by step: four tasks on one photo of a walnut tray
- Classification: "This photo shows walnuts." One label, nothing about where.
- Classification + localisation: a box round the biggest walnut. One object.
- Object detection: a box round every walnut. Count them: 23.
- Instance segmentation: the exact outline of each walnut, pixel by pixel, so you could measure each one's size.
- Choosing: to sort walnuts by size you need segmentation; to count them, detection is enough.
Two questions pick the task: one object or many? and is a box enough, or do I need the exact outline?
Vision or processing? A photo filter that brightens your face is image processing. Recognising whose face is under the filter is computer vision.
Careful: computer vision does not mean a camera. The camera takes the picture; computer vision is what the machine does with the pixels. And segmentation is not just a tighter box: it labels every single pixel.
On the laptop
You need: LibreOffice Calc · LibreOffice Draw · cv-tasks.ods · datasets/market.jpg
Mission 1: Twelve systems, four tasks (10 min, in pairs)
- ☐1
Open sheet Systems in
cv-tasks.ods. For each system, write which of the four tasks it mainly needs. - ☐2
Ask two questions: one object or many? and is a box enough, or does it need the exact outline?
- ☐3
Predict: which task will turn up most often? Write it in F1, then count.
Mission 2: Be the model (10 min)
- ☐4
Open
market.jpgin Draw — a photo of a fruit stall. - ☐5
Copy it four times on the page. On each copy, do one task by hand:
- Classification: type one label for the whole photo.
- Localisation: draw one box round the biggest apple.
- Detection: draw a box round every apple you can see. Count them.
- Segmentation: use the polygon tool to trace the exact outline of three apples.
- ☐6
Time yourself on the last one. How long did it take?
Mission 3: Vision or processing? (3 min)
- ☐7
In
cv-tasks.ods, sheet Which: six things a phone does to photos. Mark each CV or image processing.
Finished early?
Find one thing in your own home that uses computer vision. Which task does it use?
No laptop today?
Your teacher reads the twelve systems; show 1, 2, 3 or 4 fingers for the task. Then take the printed stall photo and do Part 2 with a pencil: one label, one box, every box, three outlines.
Debate it
A camera at a traffic junction in Srinagar can detect every face that passes.
- Which task is that? What could it be used for that helps people — and what could it be used for that harms them?
- Who should decide whether such a camera is allowed? (Unit 1: which framework would you use?)
Check yourself — practice, not a test
1. Match each output to its task:
"This photo shows a leaf." · "The leaf is here" — one box · A box round every car in the street · Every pixel of each car coloured separately
Match with: Object detection · Classification + localisation · Instance segmentation · Classification2. Which task is used for only one object?
- ○ Object detection
- ○ Classification + localisation
- ○ Instance segmentation
- ○ All of them
3. Making a photo brighter is computer vision.
- ○ True
- ○ False
4. The smallest unit of a digital picture, which CV collects information from, is a ______.
5. A self-driving car must know where every person on the road is. It needs at least:
- ○ Classification
- ○ Object detection
- ○ Image processing
- ○ A bigger camera
Remember
Classify it, box it, find them all, outline each one.
Typing practice
Skill: a list of words, fast (5 min)
-
On typing.com: the lesson your teacher sets.
-
Type three times, eyes on the screen:
tasks = ["classification", "localisation", "detection", "segmentation"] -
Goal this term: 38–44 WPM at 95%.