Latest 0.0.2
Homepage https://github.com/duanruiying/DryFace
License MIT
Platforms ios 9.0, requires ARC
Frameworks UIKit, Foundation, CoreImage, CoreGraphics, CoreMedia, Photos, GLKit, AVFoundation, OpenGLES
Authors

iOS: 人脸注册和识别

官网

Prerequisites

  • Xcode 10.2.1
  • iOS 9.0 or later
  • ObjC、Swift 5 or later

Installation

  • pod ‘DryFace’
  • 配置libstdc库
  • 在工程info.plist配置Privacy – Camera Usage Description
  • 在工程info.plist配置App Transport Security Settings -> Allow Arbitrary Loads为YES

Features

  1. 需要开发者在 虹软官网 注册开发者,获取appid和sdkkey注册SDK
    NSString *appID = @"";
    NSString *key = @"";
    [DryFace registerSDK:appID key:key];
  2. 人脸检测
    DryFaceParams *params = [[DryFaceParams alloc] init];
    params.personID = @"123";
    params.currentVC = self;
    [DryFace startFaceRegister:params resp:^(BOOL result) {
    NSLog(@"%d", result);
    DryFacePerson *person = [DryFacePerson readFromDB];
    if (person) {
        NSLog(@"%@", person.personID);
        self->_imageView.image = person.faceImage;
    }
    }];
  3. 人脸识别
    DryFaceParams *params = [[DryFaceParams alloc] init];
    params.personID = @"123";
    params.currentVC = self;
    [DryFace startFaceCompare:params resp:^(CGFloat result) {
    NSLog(@"%f", result);
    }];

Latest podspec

{
    "name": "DryFace",
    "version": "0.0.2",
    "summary": "DryFace",
    "homepage": "https://github.com/duanruiying/DryFace",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "duanruiying": "[email protected]"
    },
    "source": {
        "git": "https://github.com/duanruiying/DryFace.git",
        "tag": "0.0.2"
    },
    "description": "TODO: iOSu4ebau8138u6ce8u518cu548cu8bc6u522b.",
    "platforms": {
        "ios": "9.0"
    },
    "requires_arc": true,
    "user_target_xcconfig": {
        "OTHER_LDFLAGS": [
            "-w"
        ],
        "ENABLE_BITCODE": "NO"
    },
    "pod_target_xcconfig": {
        "OTHER_LDFLAGS": [
            "-w"
        ],
        "ENABLE_BITCODE": "NO",
        "VALID_ARCHS[sdk=iphonesimulator*]": ""
    },
    "source_files": "DryFace/Classes/Code/**/*",
    "public_header_files": "DryFace/Classes/Code/Public/**/*.h",
    "libraries": "stdc++.6.0.9",
    "frameworks": [
        "UIKit",
        "Foundation",
        "CoreImage",
        "CoreGraphics",
        "CoreMedia",
        "Photos",
        "GLKit",
        "AVFoundation",
        "OpenGLES"
    ],
    "vendored_frameworks": "DryFace/Classes/Frameworks/*.framework"
}

Pin It on Pinterest

Share This