|
@@ -64,6 +64,10 @@ public class FaceVerifyServiceImpl implements FaceVerifyService {
|
|
|
images.add(this.buildImageParmForBaidu(image1));
|
|
|
images.add(this.buildImageParmForBaidu(image2));
|
|
|
|
|
|
+ if (expectFaceCompareScore == null) {
|
|
|
+ expectFaceCompareScore = properties.getBaiduExpectFaceCompareScore();
|
|
|
+ }
|
|
|
+
|
|
|
String params = new JsonHelper().toJson(images);
|
|
|
if (properties.getBaiduLocalEnabled()) {
|
|
|
return BaiduApiHelper.faceCompareUseLocalApi(properties, params, expectFaceCompareScore);
|