提交 55d37a92 authored 作者: 祁增奎's avatar 祁增奎

iOS人脸识别问题

上级 fb2fae44
......@@ -8,6 +8,7 @@
binaryMessenger:[registrar messenger]];
AliyunFacePlugin* instance = [[AliyunFacePlugin alloc] init];
[registrar addMethodCallDelegate:instance channel:channel];
[AliyunFaceAuthFacade init];
}
- (void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result {
......@@ -51,13 +52,16 @@
if(useVideo!=nil && [useVideo isEqual:@"1"]){
[extParams setValue:@"true" forKey:@"returnVideo"];
[extParams setValue:@"true" forKey:ZIM_EXT_PARAMS_KEY_USE_VIDEO_UPLOAD];
[extParams setValue:@"true" forKey:ZIM_EXT_PARAMS_KEY_USE_VIDEO];
}
[AliyunFaceAuthFacade verifyWith:certifyId
extParams:extParams
onCompletion:^(ZIMResponse *response) {
result([NSString stringWithFormat:@"%lu,%@", response.code, response.reason,response.videoFilePath]);
result([NSString stringWithFormat:@"%lu,%@",
response.code,
response.reason,
response.videoFilePath]);
}];
return;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论