S ScienceFairProjects.info
Easy⏱ time1 hr$ cost0

Colour Detector

Train a tiny model (or rules) to name colours from camera input and sort them.

Start building ↓
fig — working model Result first

The build

Step 01

Read pixels

Sample the colour at the image centre.

Step 02

Map to names

Match RGB values to named colours.

Step 03

Label

Show the detected colour name.

Step 04

Sort

Group objects by detected colour.

Working Principle

The program reads the pixel's red-green-blue values and matches them to the nearest named colour region.

The science behind it

A closer look

Colours are points in RGB space; classifying them is finding the closest named cluster — a gentle intro to features.

Take it further

Variables to test

  • 1 Add more colour names — fewer mistakes?
  • 2 Test under coloured light — what breaks?

More AI