In the previous recipe, Building a face detector using Haar cascades, we used the Haar cascades method to detect the location of a face in video frames that were captured by a webcam. This method can be extended to detect all types of object. This is what we will be covering here.
Building eye and nose detectors
Getting ready
In this recipe, we will see how we can use the Haar cascades method to detect the eyes and nose of a person in an input video.
How to do it...
Let's see how we can build eye and nose detectors:
- Create a new Python file and import the following...