|
@@ -198,10 +198,12 @@ public class ExamCaptureServiceImpl implements ExamCaptureService {
|
|
|
|
|
|
try {
|
|
|
FaceResult faceResult;
|
|
|
- String capturePhotoUrl = systemProperties.replaceFileUrlInternalDomain(FileStorageUtil.realPath(fileUrl));
|
|
|
+ // String capturePhotoUrl = systemProperties.replaceFileUrlInternalDomain(FileStorageUtil.realPath(fileUrl));
|
|
|
+ String capturePhotoUrl = FileStorageUtil.realPath(fileUrl);
|
|
|
ImageParm imageParm = new ImageUrlParm(capturePhotoUrl);
|
|
|
if (useBaiduApi) {
|
|
|
- String basePhotoUrl = systemProperties.replaceFileUrlInternalDomain(student.getPhotoPath());
|
|
|
+ // String basePhotoUrl = systemProperties.replaceFileUrlInternalDomain(student.getPhotoPath());
|
|
|
+ String basePhotoUrl = student.getPhotoPath();
|
|
|
faceResult = faceVerifyService.faceCompareByBaidu(new ImageUrlParm(basePhotoUrl), imageParm, baiduExpectFaceCompareScore);
|
|
|
} else {
|
|
|
faceResult = faceVerifyService.faceCompareByFacePlus(new ImageTokenParm(student.getFaceToken()), imageParm);
|