In the previous sections of this chapter, we successfully detected the faces and the facial landmarks in our video feed. In this section, we will do something more interesting—I have three masks or ornaments here. Let's try to apply them onto the detected faces in real time:
These ornaments are images on the disk. Different to the data from the users, for example the images we viewed in Chapter 1, Building an Image Viewer, the images we edited in Chapter 2, Editing Images Like a Pro, and the videos we recorded in Chapter 3, Home Security Applications, these ornaments are not data from the users; they are a part of our application, just like our code source files. We must somehow bind them to our application, especially when we ship the application to the users. You can simply pack up these resources along the compiled binary, let the users...