If you like , come to my booth at FileMaker DevCon and ask me about using CoreImage's detectors to find faces, text, rectangles and QRCodes on a picture. You can check whether faces are like in this picture on the right.

So the example database has a script to detect faces and than color them in yellow with some dots for eyes and mouth. Check out our example script for this:

As you see we just get back a JSON block with an array of items, where we loop through and draw each area in yellow and if available we draw eyes and mouth. The JSON looks like this with one face:

[

{

"rightEyeClosed" : false,

"mouthPositionX" : 279.5625,

"hasRightEyePosition" : true,

"leftEyePositionY" : 1606.5,

"hasLeftEyePosition" : true,

"trackingFrameCount" : 0,

"hasMouthPosition" : true,

"type" : "Face",

"x" : 66.9375,

"mouthPositionY" : 1452.9375,

"y" : 1350.5625,

"trackingID" : 0,

"hasFaceAngle" : true,

"width" : 401.6250,

"height" : 401.625,

"leftEyePositionX" : 212.625,

"hasSmile" : false,

"leftEyeClosed" : false,

"rightEyePositionY" : 1606.5,

"hasTrackingID" : false,

"hasTrackingFrameCount" : false,

"faceAngle" : -7,

"rightEyePositionX" : 366.1875

}

]

This can be very useful for some databases as we can leverage Apple's libraries to find faces, detect QRCodes, find text and rectangle areas. For the text areas, you can pass those to OCR functions later.