|
|
@@ -355,7 +355,9 @@ public class NotaryDomainImpl implements NotaryDomain {
|
|
|
float pitch = Math.abs(face3DAngleList.get(0).getPitch());
|
|
|
//偏向角
|
|
|
float yaw = Math.abs(face3DAngleList.get(0).getYaw());
|
|
|
- if (pitch > 10 || yaw > 10) {
|
|
|
+ log.info("俯仰角:{}",pitch);
|
|
|
+ log.info("偏向角:{}",yaw);
|
|
|
+ if (pitch >= 10 || yaw >= 10) {
|
|
|
//照片不符合标准
|
|
|
log.info("图片不符合标准");
|
|
|
base.delete();
|
|
|
@@ -376,7 +378,9 @@ public class NotaryDomainImpl implements NotaryDomain {
|
|
|
throw new RuntimeException(e);
|
|
|
}finally {
|
|
|
base.delete();
|
|
|
- file.delete();
|
|
|
+ if (file!=null){
|
|
|
+ file.delete();
|
|
|
+ }
|
|
|
}
|
|
|
//人脸检测2
|
|
|
ImageInfo imageInfo2 = getRGBData(file);
|