|
@@ -106,7 +106,6 @@ public class FaceOcrServiceImpl implements IFaceOcrService {
|
|
|
}
|
|
|
return 0;
|
|
|
}catch (TencentCloudSDKException e){
|
|
|
- System.out.println("错误"+e.getMessage());
|
|
|
return 0;
|
|
|
}
|
|
|
}
|
|
@@ -139,13 +138,13 @@ public class FaceOcrServiceImpl implements IFaceOcrService {
|
|
|
if(face[0].getFaceQualityInfo().getBrightness().intValue()<30){
|
|
|
throw new CustomException("照片光照不合格,请重新拍照!");
|
|
|
}
|
|
|
- if(face[0].getFaceQualityInfo().getSharpness().intValue()<50){
|
|
|
+ if(face[0].getFaceQualityInfo().getSharpness().intValue()<30){
|
|
|
throw new CustomException("照片清晰度不合格,请重新拍照!");
|
|
|
}
|
|
|
if(face[0].getFaceQualityInfo().getBrightness().intValue()>95){
|
|
|
throw new CustomException("照片光照曝光,请重新拍照!");
|
|
|
}
|
|
|
- if(face[0].getFaceQualityInfo().getScore().intValue()<30){
|
|
|
+ if(face[0].getFaceQualityInfo().getScore().intValue()<50){
|
|
|
throw new CustomException("照片质量不合格,请重新拍照!");
|
|
|
}
|
|
|
if(Validator.isEmpty(face[0].getFaceQualityInfo().getCompleteness())){
|