From e9a08b8288c5efee63996bf95ceba111786adbe2 Mon Sep 17 00:00:00 2001 From: guo Date: Thu, 28 Dec 2023 17:27:53 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/worker/controller/UfaceRecognitionController.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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");