Category Archives: Python

AI for Everyone LESSON 15: Face Detection using OpenCV

In this video lesson we show a simple method to detect faces in a WEB cam frame using openCV and Haar Cascades. We use pretrained models to find, box and track faces in a frame. Enjoy!

 

Using Contours in OpenCV to Track an Object of Interest

 

In this lesson we showed how to track on object in openCV based on color, create contours for the object of interests, and then track the object of interest by drawing a bounding box around it. For your convenience, the code is included below.

 

Tracking Two Colors in OpenCV


In this video lesson we show  how you can track two different colored objects at the same time in OpenCV. It is the homework solution to the homework we assigned in the last lesson. It will also serve as the starting code for future lessons

 

Tracking an Object Based on Color in OpenCV

In this lesson I describe how to track an object in OpenCV based on color. We use the HSV color space to make it simpler to train the model. Below, for your convenience, we include the code we develop in this lesson.

Putting Text, Rectangles and Circles on Images in OpenCV for Windows


In the video lesson above we show how to add text, rectangles and circles to video frames using OpenCV. Below we include the code with we developed in this lesson. Enjoy!