diff --git a/src/main/java/com/zhgd/xmgl/modules/worker/controller/UfaceRecognitionController.java b/src/main/java/com/zhgd/xmgl/modules/worker/controller/UfaceRecognitionController.java index 95d5a8ae2..c5b372163 100644 --- a/src/main/java/com/zhgd/xmgl/modules/worker/controller/UfaceRecognitionController.java +++ b/src/main/java/com/zhgd/xmgl/modules/worker/controller/UfaceRecognitionController.java @@ -62,10 +62,12 @@ public class UfaceRecognitionController { String fileUrl = MapUtils.getString(map, "fileUrl"); if (StringUtils.isNotEmpty(fileUrl)) { File file = new File(basePath, fileUrl); + log.info("basePath:{},fileUrl:{}", basePath, fileUrl); ImageInfo imageInfo = getRGBData(file); List faceInfoList = new ArrayList(); int errorCode = faceEngine.detectFaces(imageInfo.getImageData(), imageInfo.getWidth(), imageInfo.getHeight(), imageInfo.getImageFormat(), faceInfoList); - if (faceInfoList != null && faceInfoList.size() > 0) { + log.info("errorCode:{}", errorCode); + if (faceInfoList.size() > 0) { if (faceInfoList.size() > 1) { FileOperation.deleteFile(file); data.put("checkType", "0");