Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CIImage* image = [CIImage imageWithCGImage:imagePick.image.CGImage];
- CIDetector* detector = [CIDetector detectorOfType:CIDetectorTypeFace
- context:nil options:[NSDictionary dictionaryWithObject:CIDetectorAccuracyHigh forKey:CIDetectorAccuracy]];
- NSDictionary* imageOptions = [NSDictionary dictionaryWithObject:[NSNumber numberWithInt:6] forKey:CIDetectorImageOrientation];
- NSArray* features = [detector featuresInImage:image options:imageOptions];
Add Comment
Please, Sign In to add comment