Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Apple sample code
for (CIFaceFeature *f in features)
{
NSLog(NSStringFromRect(f.bounds));
// Should be NSLog(@"%@", NSStringFromRect(f.bounds)); for security reasons
if (f.hasLeftEyePosition)
NSLog("Left eye %g %g", f.leftEyePosition.x. f.leftEyePosition.y);
// Missing @ before opening quote
// Should be f.leftEyePosition.x,
if (f.hasRightEyePosition)
NSLog("Right eye %g %g", f.rightEyePosition.x. f.rightEyePosition.y);
// Missing @ before opening quote
// Should be f.rightEyePosition.x,
if (f.hasmouthPosition)
// Should be f.hasMouthPosition
NSLog("Mouth %g %g", f.mouthPosition.x. f.mouthPosition.y);
// Missing @ before opening quote
// Should be f.mouthPosition.x,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.