Created
August 5, 2014 23:00
-
-
Save ccgus/7b04e62357a3d36f5ec7 to your computer and use it in GitHub Desktop.
Apple sample code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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