Author Archive | Adrian Tam

nomadic-julien-uBfK5i6j1B8-unsplash

Machine Learning in OpenCV (7-Day Mini-Course)

Machine learning is an amazing tool for many tasks. OpenCV is a great library for manipulating images. It would be great if we can put them together. In this 7-part crash course, you will learn from examples how to make use of machine learning and the image processing API from OpenCV to accomplish some goals. […]

Continue Reading
nastya-dulhiier-OKOOGO578eo-unsplash

Running a Neural Network Model in OpenCV

Many machine learning models have been developed, each with strengths and weaknesses. This catalog is not complete without neural network models. In OpenCV, you can use a neural network model developed using another framework. In this post, you will learn about the workflow of applying a neural network in OpenCV. Specifically, you will learn: What […]

Continue Reading
adria-crehuet-cano-LIhB1_mAGhY-unsplash

Training a Haar Cascade Object Detector in OpenCV

Using a Haar cascade classifier in OpenCV is simple. You just need to provide the trained model in an XML file to create the classifier. Training one from scratch, however, is not so straightforward. In this tutorial, you will see how the training should be like. In particular, you will learn: What are the tools […]

Continue Reading
alexander-hipp-5tIuYKRRHj8-unsplash

Using Haar Cascade for Object Detection

Before the deep learning revolution redefined computer vision, Haar features and Haar cascades were the tools you must not ignore for object detection. Even today, they are very useful object detectors because they are lightweight. In this post, you will learn about the Haar cascade and how it can detect objects. After completing this post, […]

Continue Reading
alexas_fotos-A0qtF_zwx_M-unsplash

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 […]

Continue Reading
michael-barth-7Yp3v4Ol1jI-unsplash

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 […]

Continue Reading
kal-visuals-I-nd-LSCY04-unsplash

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 […]

Continue Reading