Selecting masks on the UI
In the previous sections of this chapter, we have done much work to detect faces and facial landmarks in the video feed from a webcam in real time. In that process, we drew circumscribe rectangles around the faces, drew facial landmarks as 2-pixel circles on the faces, and applied 3 different masks to the faces. That way teaches us a lot about face recognition using OpenCV, but from the perspective of the users, that's too much to draw on the faces. So, in this section, we will give our users a chance to select which marks or masks to draw on the detected faces through the checkboxes on the user interface—we will add five checkboxes on the main window under the shutter button for that.
Before changing the user interface, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access