
K-Means Clustering in OpenCV
Learn to use cv.kmeans() function in OpenCV for data clustering. We cover single feature, multi-feature data and color quantization of images using K-Means.
OpenCV / Machine Learning
6 posts

Learn to use cv.kmeans() function in OpenCV for data clustering. We cover single feature, multi-feature data and color quantization of images using K-Means.

Learn the concepts of K-Means Clustering algorithm. We go through the step-by-step algorithm using a T-shirt size problem to explain how iterative centroid updates work.
Learn to use SVM with HOG (Histogram of Oriented Gradients) features for OCR of handwritten digits. This approach achieves ~94% accuracy, better than kNN with raw pixels.
Learn an intuitive understanding of Support Vector Machines (SVM). We cover decision boundaries, support vectors, margin maximization, and kernel trick for non-linearly separable data.
Learn to build a basic OCR application using kNN knowledge. We use OpenCV's digits.png dataset to recognize handwritten digits achieving ~91% accuracy.
Learn the concepts of the k-Nearest Neighbour (kNN) algorithm. We cover classification, feature space, weighted kNN, and implement a simple example with OpenCV.