|
|
@@ -136,9 +136,12 @@ public class FaceOcrServiceImpl implements IFaceOcrService {
|
|
|
FaceInfo[] face = response.getFaceInfos();
|
|
|
Long imageWidth = response.getImageWidth();
|
|
|
Long imageHeight = response.getImageHeight();
|
|
|
- if(face[0].getFaceQualityInfo().getBrightness().intValue()<25){
|
|
|
+ if(face[0].getFaceQualityInfo().getBrightness().intValue()<30){
|
|
|
throw new CustomException("照片光照不合格,请重新拍照!");
|
|
|
}
|
|
|
+ if(face[0].getFaceQualityInfo().getSharpness().intValue()<50){
|
|
|
+ throw new CustomException("照片清晰度不合格,请重新拍照!");
|
|
|
+ }
|
|
|
if(face[0].getFaceQualityInfo().getBrightness().intValue()>95){
|
|
|
throw new CustomException("照片光照曝光,请重新拍照!");
|
|
|
}
|