Let's create a new folder, where we will store this chapter's project, including the following subfolders and files that are relevant to the Interactive Recognizer app:
cascades/haarcascade_frontalface_alt.xml
: This is a detection model for a frontal, human face. It should be included with OpenCV at a path such as<opencv_unzip_destination>/data/haarcascades/haarcascade_frontalface_alt.xml
, or for a MacPorts installation at/opt/local/share/OpenCV/haarcascades/haarcascade_frontalface_alt.xml
. Create a copy of it or a link to it. (Alternatively, you can get it from this chapter's code bundle.)cascades/lbpcascade_frontalface.xml
: This is an alternative (faster but less reliable) detection model for a frontal, human face. It should be included with OpenCV at a path such as<opencv_unzip_destination>/data/lbpcascades/lbpcascade_frontalface.xml
, or for a MacPorts installation at/opt/local/share/OpenCV/lbpcascades/lbpcascade_frontalface...