Face and Eye Detection in Python using OpenCV.
OpenCV is an open-source computer vision library that uses machine learning algorithms for face detection, object tracking or colours detection. In this blog post, we’ll learn how to use the Haar Cascade algorithm to detect faces and eyes in an image or real-time video. Let’s dive in.
Approach:
Don’t forget to import the libraries.
Make sure you have Python, OpenCV and Numpy already installed. I personally prefer Anaconda distribution but you are good to go without Anaconda if you have mentioned libraries installed.
The code once all written out will look like this. (Github Gist Link)
So that’s it! I hope you found it helpful, and also I hope that you have a nice day.
Till next time :) Happy Learning!
Bilal K.
Goodstuff brother??