March 2019
Intermediate to advanced
312 pages
7h 37m
English
The SmilingFace.cpp program is basically an extension of the FaceDetection.cpp program, meaning that we will first find the region of interest, which is the face. Next, using the Haar CascadeClassifier for the eyes, we will detect the eyes and then draw circles around them.
Before writing the program, let's first understand the different eye CascadeClassifier that are available. OpenCV 4.0 has three main eye cascade classifiers:
Depending on your requirements, you can use the haarcascade_eye ...