Image Feature Extraction in OpenCV: Keypoints and Description Vectors

In the previous post, you learned some basic feature extraction algorithms in OpenCV. The features are extracted in the form of classifying pixels. These indeed abstract the features from images because you do not need to consider the different color channels of each pixel, but to consider a single value. In this post, you will …

Image Feature Extraction in OpenCV: Edges and Corners

In the world of computer vision and image processing, the ability to extract meaningful features from images is important. These features serve as vital inputs for various downstream tasks, such as object detection and classification. There are multiple ways to find these features. The naive way is to count the pixels. But in OpenCV, there …

365 Data Science Offers All Courses 100% Free for 2 Weeks

Sponsored Content     From November 6 (07:00 PST) to 20 (07:00 PST), 365 Data Science offers free unlimited access to its entire curriculum, featuring interactive courses, hands-on data projects, and certificates of achievement. This opportunity allows for in-depth data science and AI exploration—presenting a no-cost method to enhance one’s skills and knowledge. Enhancing Careers …

K-Nearest Neighbors Classification Using OpenCV

The OpenCV library comes with a module that implements the k-Nearest Neighbors algorithm for machine learning applications.  In this tutorial, you are going to learn how to apply OpenCV’s k-Nearest Neighbors algorithm for the task of classifying handwritten digits. After completing this tutorial, you will know: Several of the most important characteristics of the k-Nearest …

Fast and Cheap Fine-Tuned LLM Inference with LoRA Exchange (LoRAX)

Sponsored Content     By Travis Addair & Geoffrey Angus If you’d like to learn more about how to efficiently and cost-effectively fine-tune and serve open-source LLMs with LoRAX, join our November 7th webinar. Developers are realizing that smaller, specialized language models such as LLaMA-2-7b outperform larger general-purpose models like GPT-4 when fine-tuned with proprietary …

K-Means Clustering for Image Classification Using OpenCV

In a previous tutorial, we have explored the use of the k-means clustering algorithm as an unsupervised machine learning technique that seeks to group similar data into distinct clusters, to uncover patterns in the data.  We have, so far, seen how to apply the k-means clustering algorithm to a simple two-dimensional dataset containing distinct clusters, …

How to Transform Images and Create Video with OpenCV

When you work with OpenCV, you most often work with images. However, you may find it useful to create animation from multiple images. Chances are that showing images in rapid succession may give you different insight or it is easier to visualize your work by introducing a time axis. In this post, you will see …

K-Means Clustering in OpenCV and Application for Color Quantization

The k-means clustering algorithm is an unsupervised machine learning technique that seeks to group similar data into distinct clusters, with the aim of uncovering patterns in the data that may not be apparent to the naked eye.  It is possibly the most widely known algorithm for data clustering, and it comes implemented in the OpenCV …

How to Read and Display Videos Using OpenCV

Digital videos are close relatives of digital images because they are, indeed, made up of many digital images that are sequentially displayed in rapid succession to create the effect of moving visual data.  The OpenCV library provides several methods to work with videos, such as reading video data from different sources as well as accessing …

How to Read, Write, Display Images in OpenCV and Converting Color Spaces

When working with images, some of the most basic operations that are essential to get a grip on include reading the images from disk, displaying them, accessing their pixel values, and converting them from one color space to another. This tutorial explains these basic operations, starting first with a description of how a digital image …