|
@@ -121,7 +121,7 @@ public class ExamFaceLivenessVerifyServiceImpl implements ExamFaceLivenessVerify
|
|
|
if (confidence > 50D) {
|
|
|
JSONObject livenessResultJson = faceIdResultJsonObject.getJSONObject("liveness_result");
|
|
|
if (livenessResultJson.has("result") && "success".equals(livenessResultJson.getString("result"))) {
|
|
|
- JSONObject faceGenuineness = verifyResultJson.getJSONObject("face_genuineness");
|
|
|
+ /*JSONObject faceGenuineness = verifyResultJson.getJSONObject("face_genuineness");
|
|
|
//如果开启了翻拍检测
|
|
|
if(faceGenuineness.has("screen_replay_threshold") && faceGenuineness.has("screen_replay_confidence")){
|
|
|
double replayThreshold = faceGenuineness.getDouble("screen_replay_threshold");
|
|
@@ -134,7 +134,8 @@ public class ExamFaceLivenessVerifyServiceImpl implements ExamFaceLivenessVerify
|
|
|
}
|
|
|
} else {
|
|
|
faceVerify.setVerifyResult(FaceVerifyResult.VERIFY_SUCCESS);
|
|
|
- }
|
|
|
+ }*/
|
|
|
+ faceVerify.setVerifyResult(FaceVerifyResult.VERIFY_SUCCESS);
|
|
|
}
|
|
|
} else {
|
|
|
faceVerify.setVerifyResult(FaceVerifyResult.NOT_ONESELF);
|