Skip to content

A sample to recognize face with CoreImage and display based on OpenGL

Notifications You must be signed in to change notification settings

LustySwimmer/LYFaceDetection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

8ae1371 · Mar 15, 2018

History

5 Commits
Mar 15, 2018
Mar 6, 2018
Mar 15, 2018
Mar 15, 2018

Repository files navigation

LYFaceDetection

A sample to recognize face with CoreImage and display based on OpenGL
FaceDetection
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");
            }
        }];
    }

这是一个利用CoreImage和OpenGL实现的人脸识别的demo

更多详细的介绍请访问底部博客链接:
More details in blog

About

A sample to recognize face with CoreImage and display based on OpenGL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published