K-Means Clustering for Image Classification Using OpenCV

In a previous tutorial, we explored using 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.  So far, we have seen how to apply the k-means clustering algorithm to a simple two-dimensional dataset containing distinct clusters and the problem of image color quantization.  In this tutorial, you will learn how to apply OpenCV’s k-means clustering algorithm for image classification.  After completing this tutorial, you […]

Read more

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 data to perform a single task. However, you likely don’t have a single generative AI task, you have many, and serving each fine-tuned model with its […]

Read more

K-Nearest Neighbors Classification Using OpenCV

The OpenCV library has a module that implements the k-Nearest Neighbors algorithm for machine learning applications.  In this tutorial, you will learn how to apply OpenCV’s k-Nearest Neighbors algorithm for classifying handwritten digits. After completing this tutorial, you will know: Several of the most important characteristics of the k-Nearest Neighbors algorithm. How to use the k-Nearest Neighbors algorithm for image classification in OpenCV. Kick-start your project with my book Machine Learning in OpenCV. It provides self-study tutorials with working code. […]

Read more

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 in Data Science and AI   For two weeks, 365 Data Science provides free access to its comprehensive suite of courses and resources. This initiative supports students […]

Read more

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 are many routines to help you extract features from an image. In this post, you will see how OpenCV can help find some high-level features. […]

Read more

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 learn some other feature extract algorithms that can tell you about the image more concisely. After completing this tutorial, you will know: What are keypoints […]

Read more

Extracting Histogram of Gradients with OpenCV

Besides the feature descriptor generated by SIFT, SURF, and ORB, as in the previous post, the Histogram of Oriented Gradients (HOG) is another feature descriptor you can obtain using OpenCV. HOG is a robust feature descriptor widely used in computer vision and image processing for object detection and recognition tasks. It captures the distribution of gradient orientations in an image and provides a powerful representation invariant to changes in illumination and shadowing. In this post, you will learn about HOG. […]

Read more

Image Datasets for Practicing Machine Learning in OpenCV

At the very start of your machine learning journey, publicly available datasets alleviate the worry of creating the datasets yourself and let you focus on learning to use the machine learning algorithms. It also helps if the datasets are moderately sized and do not require too much pre-processing to get you to practice using the algorithms quicker before moving on to more challenging problems.  Two datasets we will be looking at are the simpler digits dataset provided with OpenCV and […]

Read more

How to Train a Object Detection Engine with HOG in OpenCV

In the previous post, you saw that OpenCV can extract features from an image using a technique called the Histogram of Oriented Gradients (HOG). In short, this is to convert a “patch” of an image into a numerical vector. This vector, if set up appropriately, can identify key features within that patch. While you can use HOG to compare images for similarity, one practical application is to make it the input to a classifier so you can detect objects in […]

Read more

Support Vector Machines in OpenCV

The Support Vector Machine algorithm is one of the most popular supervised machine learning techniques, and it is implemented in the OpenCV library. This tutorial will introduce the necessary skills to start using Support Vector Machines in OpenCV, using a custom dataset we will generate. In a subsequent tutorial, we will then apply these skills for the specific applications of image classification and detection.  In this tutorial, you will learn how to apply OpenCV’s Support Vector Machine algorithm on a […]

Read more
1 78 79 80 81 82 913