ArcSoftFaceEngine.h
Introduction人脸引擎 Methods
activeWithAppId:SDKKey:引擎激活 - (MRESULT)activeWithAppId:(NSString *)appId SDKKey:(NSString *)sdkkey; ParametersReturn Value成功返回ASF_MOK或MERR_ASF_ALREADY_ACTIVATED,否则返回失败code compareFaceWithFeature:feature2:confidenceLevel:人脸特征比对 - (MRESULT)compareFaceWithFeature:(LPASF_FaceFeature)feature1 feature2:(LPASF_FaceFeature)feature2 confidenceLevel:(MFloat*)confidenceLevel; ParametersReturn Value成功返回ASF_MOK,否则返回失败code detectFacesWithWidth:height:data:format:faceRes:人脸检测 - (MRESULT)detectFacesWithWidth:(MInt32)width height:(MInt32)height data:(MUInt8*)data format:(MInt32)format faceRes:(LPASF_MultiFaceInfo)detectedFaces; ParametersReturn Value成功返回ASF_MOK,否则返回失败code extractFaceFeatureWithWidth:height:data:format:faceInfo:feature:单人脸特征提取 - (MRESULT)extractFaceFeatureWithWidth:(MInt32)width height:(MInt32)height data:(MUInt8*)data format:(MInt32)format faceInfo:(LPASF_SingleFaceInfo)faceInfo feature:(LPASF_FaceFeature)feature; ParametersReturn Value成功返回ASF_MOK,否则返回失败code getAge:获取年龄信息 - (MRESULT)getAge:(LPASF_AgeInfo)ageInfo; ParametersReturn Value成功返回ASF_MOK,否则返回失败code getFace3DAngle:获取3D角度信息 - (MRESULT)getFace3DAngle:(LPASF_Face3DAngle)face3DAngle; ParametersReturn Value成功返回ASF_MOK,否则返回失败code getGender:获取性别信息 - (MRESULT)getGender:(LPASF_GenderInfo)genderInfo; ParametersReturn Value成功返回ASF_MOK,否则返回失败code getVersion获取版本信息 - (NSString*)getVersion; Return Value成功返回版本信息,否则返回MNull initFaceEngineWithDetectMode:orientPriority:scale:maxFaceNum:combinedMask:引擎初始化 * - (MRESULT)initFaceEngineWithDetectMode:(MLong)detectMode orientPriority:(ASF_OrientPriority)detectFaceOrientPriority scale:(MInt32)detectFaceScaleVal maxFaceNum:(MInt32)detectFaceMaxNum combinedMask:(MInt32)combinedMask; ParametersReturn Value成功返回ASF_MOK,否则返回失败code processWithWidth:height:data:format:faceRes:mask:人脸信息检测(年龄/性别/人脸3D角度),最多支持4张人脸信息检测,超过部分返回未知 - (MRESULT)processWithWidth:(MInt32)width height:(MInt32)height data:(MUInt8*)data format:(MInt32)format faceRes:(LPASF_MultiFaceInfo)detectedFaces mask:(MInt32)combinedMask; ParametersReturn Value成功返回ASF_MOK,否则返回失败code unInitFaceEngine销毁引擎 - (MRESULT)unInitFaceEngine; Return Value成功返回ASF_MOK,否则返回失败code |