โœ๏ธ Computer Vision

Draw & Classify

Draw shapes on a canvas, train a classifier with your own examples, then test it โ€” watching exactly how the AI extracts features and matches your drawing!

โœ๏ธ Draw Shapes
๐Ÿง  Train Classifier
๐Ÿ” Test It!
๐Ÿงฌ Feature Map
๐Ÿ† Badge

How Shape Classification Works

โœ๏ธ

Draw Examples

The classifier needs labelled training examples โ€” multiple drawings of each shape.

๐Ÿ”ข

Extract Features

Each drawing is converted into numbers: pixel density, aspect ratio, symmetry, and more.

๐Ÿ“

Nearest Neighbour

For a new drawing, find the most similar training example by comparing feature vectors.

๐Ÿท๏ธ

Predict Label

The new drawing gets the same label as its closest training neighbour โ€” that's the prediction!

โœ๏ธ
Wizzy the AI Tutor
Let's collect training data! ๐ŸŽจ Select a shape label, draw it on the canvas, then click "Save Example". Add at least 3 examples per shape โ€” draw them differently each time (different sizes, positions) to make your classifier robust!

Step 1 โ€” Draw Training Examples

0 examples
Select shape label:
8px

๐Ÿ“š Training Examples

๐Ÿ’ก Tips:
โ€ข Draw 3+ examples per shape
โ€ข Vary size and position
โ€ข Draw shapes with one stroke
โ€ข More examples = better accuracy!
โœ๏ธ
Wizzy the AI Tutor
Look at your training data! Each drawing is stored as a small 28ร—28 pixel grid โ€” just like MNIST, the famous handwritten digit dataset that trained countless AI models. The classifier extracts feature vectors from each drawing to compare them.

Step 2 โ€” Your Training Dataset

These thumbnails are your training data โ€” 28ร—28 pixel representations of each drawing:
โœ๏ธ
Wizzy the AI Tutor
Draw any shape and see what the classifier predicts! The bars show confidence for each class. Watch how the nearest training example changes as you draw. Does the classifier get it right? Try drawing a shape it's never seen!

Step 3 โ€” Test Your Classifier

Draw to classify
8px
๐Ÿค”
Draw a shape and click Classify
Most similar training example:
Classify a drawing first

๐Ÿงช Test Results

Tests run0
Correct0
Your accuracyโ€”
โœ๏ธ
Wizzy the AI Tutor
This is the feature extraction step โ€” converting your drawing into numbers the AI can compare. We extract: pixel density, aspect ratio, symmetry, corner density, and stroke count. These form a feature vector โ€” a fingerprint for each drawing!

Step 4 โ€” Feature Extraction Visualised

Your last drawing:
Extracted feature vector:
Features are the numbers that represent your drawing to the AI. Two drawings of the same shape should have similar feature vectors!
28ร—28 downsampled grids (what the AI actually sees):
โœ๏ธ
Wizzy the AI Tutor
๐ŸŽŠ You've built a real image classifier! You collected training data, extracted features, and used nearest-neighbour classification. This is the foundation of Google's image search, face recognition, medical image diagnosis, and every visual AI system!
โœ๏ธ

Shape Classifier Badge!

You built a drawing classifier from scratch using feature extraction!

โœ๏ธ WhizzStep AI Lab
This certifies that
Student Name
has built a Drawing Classifier using Computer Vision
CV Engineer
Feature Extractor
Shape Classifier
whizzstep.in

Key Concepts Mastered

Training Data

๐Ÿ“š Learning Examples

Labelled examples the AI learns from. More examples โ†’ better generalisation to new, unseen inputs.

Feature Extraction

๐Ÿ”ข Numbers from Images

Converting raw pixels into meaningful numbers: density, symmetry, aspect ratio. These are the AI's "observations".

Feature Vector

๐Ÿ“ The Fingerprint

An array of numbers that describes one drawing. Similar shapes have similar feature vectors.

1-NN Classifier

๐Ÿ“ Nearest Neighbour

Find the training example closest in feature space. Classify the new input as its label. Simple but effective!

MNIST

๐Ÿ”ข The Famous Dataset

60,000 handwritten digit images (0โ€“9) that trained the first CNNs. The "hello world" of computer vision.

Generalisation

๐ŸŒ Unseen Examples

How well the model performs on drawings it has never seen. More varied training data = better generalisation.