Skip to content

Instantly share code, notes, and snippets.

@SunXiaoShan
Created March 22, 2018 03:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SunXiaoShan/f130118a4c4759ec402a75d468e07382 to your computer and use it in GitHub Desktop.
Save SunXiaoShan/f130118a4c4759ec402a75d468e07382 to your computer and use it in GitHub Desktop.
SetupFaceDetectingData
- (void)setupData {
NSDictionary *detectorOptions = [[NSDictionary alloc] initWithObjectsAndKeys:
CIDetectorAccuracyLow, CIDetectorAccuracy,
nil];
self._faceDetector = [CIDetector detectorOfType:CIDetectorTypeFace
context:nil
options:detectorOptions];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment