A sample to recognize face with CoreImage and display based on OpenGL
You can get the result image use snapshot method in FaceDetectionView and save it to your iPhone
UIImage *image = [self.faceDetectionView snapshot];
if (image) {
ALAuthorizationStatus authStatus = [ALAssetsLibrary authorizationStatus];
if (authStatus == ALAuthorizationStatusRestricted || authStatus == ALAuthorizationStatusDenied){
//无权限
return;
}
[[[ALAssetsLibrary alloc] init] writeImageToSavedPhotosAlbum:image.CGImage metadata:nil completionBlock:^(NSURL *assetURL, NSError *error) {
if (!error) {
NSLog(@"Image saved succeed");
}
}];
}
更多详细的介绍请访问底部博客链接:
More details in blog