Class 10 AI Unit 5: Computer Vision – Notes (Pixels, RGB, Convolution, CNN) | CBSE Code 417
How computers "see": pixels, resolution, RGB, CV tasks, convolution and CNNs, plus no-code tools like Teachable Machine.
- What is Computer Vision?
- Applications of CV
- CV tasks
- Pixels, resolution, grayscale and RGB
- Image features and convolution
- Convolutional Neural Networks (CNN)
- No-code CV tools
You look at your phone and it unlocks. You point Google Lens at a flower and it tells you the name. Your Instagram filter puts dog ears exactly on your head, even when you move. None of this is magic: the phone is turning the picture into numbers and finding patterns in them. That's Computer Vision.
1. What is Computer Vision?
Computer Vision (CV) is the domain of AI that enables machines to see, understand and interpret images and videos, and take decisions based on them.
2. Applications of CV
Facial recognition
Face unlock, smart attendance, airport DigiYatra.
Face filters
Snapchat/Instagram filters track your face in real time.
Google Lens / search by image
Identify objects, translate text on signboards.
Self-driving cars
Detect lanes, signals, vehicles and pedestrians.
Medical imaging
Spot diseases in X-rays and MRI scans.
Retail
Track stock on shelves and customer movement in stores.
3. Computer Vision Tasks
| Task | What it does | Objects | Example |
|---|---|---|---|
| Classification | Says what the image is (one label). | Single | "This is a cat." |
| Classification + Localisation | Says what it is and draws a box around it. | Single | A box around the one cat. |
| Object Detection | Finds and boxes all objects of different classes. | Multiple | Boxes around 2 cats and a dog. |
| Instance Segmentation | Marks the exact pixels of each object separately. | Multiple | Each cat coloured differently, pixel by pixel. |
4. How a Computer Sees an Image
Pixels and resolution
A digital image is a grid of tiny squares called pixels (picture elements). Resolution is the number of pixels in width × height, e.g., 1920 × 1080. More pixels = more detail.
Pixel value
Each pixel stores a number. In the common byte image format, each value is stored in 8 bits (1 byte), so it ranges from 0 to 255 — that's 28 = 256 possible values. 0 = black, 255 = white.
Grayscale vs RGB images
Grayscale
Only shades of grey. One value per pixel (0–255). Stored in a single layer/channel.
RGB (colour)
Each pixel has three values: Red, Green, Blue, each 0–255. So a colour image has 3 channels. Mixing them makes every colour.
| Colour | R | G | B |
|---|---|---|---|
| ■ Red | 255 | 0 | 0 |
| ■ Green | 0 | 255 | 0 |
| ■ Yellow | 255 | 255 | 0 |
| □ White | 255 | 255 | 255 |
| ■ Black | 0 | 0 | 0 |
5. Image Features and Convolution
Features are the useful parts of an image that help identify it: edges, corners and blobs. Corners are the best features because they're unique; a flat patch of sky is hard to locate.
Convolution is an operation where a small matrix called a kernel (filter) slides over the image. At each position, we multiply overlapping numbers and add them up. The result is a new image called a feature map that highlights features like edges.
Image patch: [[1, 2, 0], [0, 1, 3], [2, 1, 0]] · Kernel: [[0, 1, 0], [1, −4, 1], [0, 1, 0]]
Multiply matching cells and add: (0×1)+(1×2)+(0×0)+(1×0)+(−4×1)+(1×3)+(0×2)+(1×1)+(0×0) = 2 − 4 + 3 + 1 = 2. This single number goes into the feature map.
6. Convolutional Neural Network (CNN)
A CNN is a deep learning network specially built for images. It has four main layers:
| Layer | Job (in simple words) |
|---|---|
| Convolution layer | Uses kernels to extract features like edges and textures, creating feature maps. |
| ReLU layer | Rectified Linear Unit: changes all negative values to 0, keeping only useful positive features. |
| Pooling layer | Reduces the size of the feature map while keeping important info. Max pooling keeps the biggest value; average pooling keeps the average. |
| Fully connected layer | Combines all features to decide the final class of the image. |
See ReLU in action
See max pooling in action
7. No-Code CV Tools (for practicals)
Teachable Machine
Train an image model with your webcam in minutes. Handbook activity: Smart Sorter (sort waste into recyclable/non-recyclable).
Lobe
Drag in labelled photos; it trains an image classifier automatically.
Orange (Image Analytics)
Handbook use case: early detection of coral bleaching by classifying healthy vs bleached coral images.
1) Pixel values go from 0 to 255, not 256. 2) "1920×1080" is resolution, not pixel value. 3) Object detection finds multiple objects; classification + localisation handles only one.
Quick Check
Q1. What does 1280 × 1024 describe?
Resolution (pixels in width × height).
Q2. How many channels does an RGB image have?
Three: Red, Green, Blue.
Q3. Which CNN layer reduces the size of the feature map?
Pooling layer.
Q4. RGB value of yellow?
(255, 255, 0)
⚡ One-minute revision
- CV = AI that understands images and videos.
- Tasks: classification, classification + localisation, object detection, instance segmentation.
- Pixel values 0–255 (byte image); resolution = width × height.
- Grayscale = 1 channel; RGB = 3 channels.
- Convolution: kernel slides over image → feature map.
- CNN: Convolution → ReLU → Pooling → Fully Connected.
Done reading? Test yourself on AI Unit 5 in board-exam style.
📝 Take the Practice PaperNext: AI Unit 6 ›🏠 Class 10 Hub
Comments
Post a Comment