Guest User

Untitled

a guest
Sep 13th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. CIImage* image = [CIImage imageWithCGImage:imagePick.image.CGImage];
  2.    
  3.     CIDetector* detector = [CIDetector detectorOfType:CIDetectorTypeFace
  4.                                               context:nil options:[NSDictionary dictionaryWithObject:CIDetectorAccuracyHigh forKey:CIDetectorAccuracy]];
  5.     NSDictionary* imageOptions = [NSDictionary dictionaryWithObject:[NSNumber numberWithInt:6] forKey:CIDetectorImageOrientation];
  6.    
  7.     NSArray* features = [detector featuresInImage:image options:imageOptions];
Add Comment
Please, Sign In to add comment