Beginner level · Module 5 of 6 · 9 guided hours
Feature Extraction
Turning images into numbers a classifier can use: colour histograms, texture and HOG features, shape features from contours, and keypoints with ORB, with an explanation of feature vectors.
Learning objectives
- Extract colour, texture, shape and keypoint features
- Build fixed-length feature vectors for classification
- Explain what each feature captures and misses
Topics
- feature vectors
- colour histograms in HSV
- texture and HOG
- contours and shape features
- ORB keypoints and matching
- choosing features for a task
Lessons
-
Lesson 1 Feature Vectors and Colour Histograms
Learners turn each image into a fixed-length vector of numbers, starting with colour histograms in HSV that summarise an image's colours.
feature vectorfixed lengthcv2.calcHistHSV histogramnormalisation
-
Lesson 2 Texture, Shape and HOG Features
Learners describe shape and texture with HOG (histograms of oriented gradients) and with contour measurements such as area, perimeter and roundness.
HOGcells and orientation binsskimage.feature.hogcv2.findContoursarea, perimeter, circularity
-
Lesson 3 Keypoints and Matching with ORB
Learners detect keypoints with ORB, match them between two photographs of the same object or scene, and see how keypoints support panoramas, mapping and later SLAM.
keypointdescriptorcv2.ORB_createBFMatcher with Hamming distanceratio test
Practical activity
Build the feature-extraction stage of the level project: colour histograms and HOG features for every image, saved as a feature table, with visual explanations.
Expected outcomes
- Ability to turn images into meaningful features
- Understanding of what each feature captures
Assessment
Feature notebook review (60%) and a short written comparison of feature types (40%).
Taught live by an instructor — online or in person. Free course lessons are for self-study and do not lead to a certificate — see registration options.