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

支持

  1. Xcode10.2
  2. Objc C,Swift5
  3. iOS9+

Cocoapods

pod ‘DryFaceSDK’

虹软人脸识别SDK集成

  1. 虹软官网
  2. 此SDK内的ArcSoftFaceEngine.framework为2.0版本
  3. 需要开发者着册开发者,获取appid和sdkkey,注册SDK

工程配置

  1. 在工程info.plist配置Privacy – Camera Usage Description
  2. 在工程info.plist配置App Transport Security Settings -> Allow Arbitrary Loads为YES
  3. 将 libstdc++.6.0.9.tbd 放入
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib

功能简介

  1. 人脸注册
  2. 人脸识别

使用

  1. 注册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": "DryFaceSDK",
    "version": "0.0.1",
    "summary": "DryFaceSDK",
    "description": "TODO: iOSu4ebau8138u8bc6u522bSDKu96c6u6210.",
    "homepage": "https://github.com/duanruiying/DryFaceSDK",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "duanruiying": "[email protected]"
    },
    "source": {
        "git": "https://github.com/duanruiying/DryFaceSDK.git",
        "tag": "0.0.1"
    },
    "platforms": {
        "ios": "9.0"
    },
    "requires_arc": true,
    "source_files": "DryFaceSDK/Classes/Code/**/*",
    "public_header_files": "DryFaceSDK/Classes/Code/Public/*.h",
    "vendored_frameworks": "DryFaceSDK/Classes/lib/ArcSoftFaceEngine.framework",
    "libraries": "stdc++.6.0.9",
    "frameworks": [
        "UIKit",
        "Foundation",
        "CoreImage",
        "CoreGraphics",
        "CoreMedia",
        "Photos",
        "GLKit",
        "AVFoundation",
        "OpenGLES"
    ],
    "dependencies": {
        "WCDB": []
    },
    "pod_target_xcconfig": {
        "VALID_ARCHS[sdk=iphonesimulator*]": ""
    }
}

Pin It on Pinterest

Share This