|
@@ -173,7 +173,7 @@ public class ExamCaptureServiceImpl implements ExamCaptureService {
|
|
|
@Override
|
|
|
public CompareFaceSyncInfo compareFaceSync(StudentCacheBean student, String fileUrl) {
|
|
|
// 获取学校人脸API方案配置 todo
|
|
|
- boolean useBaiduApi = true;
|
|
|
+ boolean useBaiduApi = false;
|
|
|
double baiduExpectFaceCompareScore = 70d;
|
|
|
|
|
|
CompareFaceSyncInfo info = new CompareFaceSyncInfo();
|
|
@@ -202,14 +202,14 @@ public class ExamCaptureServiceImpl implements ExamCaptureService {
|
|
|
info.setErrorMsg("检测过程中存在多人脸");
|
|
|
}
|
|
|
|
|
|
- log.warn("[compareFaceSync] {} pass = {}, fileUrl = {}, error = {}", useBaiduApi ? "baidu" : "face++",
|
|
|
- info.getIsPass(), fileUrl, faceResult.getError());
|
|
|
+ log.warn("[compareFaceSync] {} pass:{}, api:{} {}", fileUrl, info.getIsPass(),
|
|
|
+ useBaiduApi ? "baidu" : "face++", faceResult.getError());
|
|
|
} catch (Exception e) {
|
|
|
info.setExistsSystemError(true);
|
|
|
info.setErrorMsg(e.getMessage());
|
|
|
|
|
|
- log.error("[compareFaceSync] {} pass = {}, fileUrl = {}, error = {}", useBaiduApi ? "baidu" : "face++",
|
|
|
- info.getIsPass(), fileUrl, e.getMessage());
|
|
|
+ log.error("[compareFaceSync] {} pass:{}, api:{} error:{}", fileUrl, info.getIsPass(),
|
|
|
+ useBaiduApi ? "baidu" : "face++", e.getMessage());
|
|
|
}
|
|
|
|
|
|
return info;
|