Skip to content

Instantly share code, notes, and snippets.

@ccgus
Created August 5, 2014 23:00
Show Gist options
  • Save ccgus/7b04e62357a3d36f5ec7 to your computer and use it in GitHub Desktop.
Save ccgus/7b04e62357a3d36f5ec7 to your computer and use it in GitHub Desktop.
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