Processing Face Features
The detectFacesTouched:
method in ICFViewController
will iterate over the found faces, and will visually highlight them in the source image, as shown in Figure 19.7. The method will also log detailed information about each face feature to a text view in the display.
For each face, the method first gets a rectangle to position the red square around the face.
CGRect faceRect =[self adjustCoordinateSpaceForMarker:face.bounds andHeight:detectImage.extent.size.height];
To determine where to draw the rectangle for a face, the method ...
Get iOS Components and Frameworks: Understanding the Advanced Features of the iOS SDK now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.