From 03e46c3c39b4d846041894d630e2085ff4fa824e Mon Sep 17 00:00:00 2001 From: zhouwentao <1577701412@qq.com> Date: Fri, 4 Aug 2023 15:09:19 +0800 Subject: [PATCH] updates --- .../java/org/jeecg/modules/api/controller/ApiController.java | 4 ++-- .../java/org/jeecg/modules/ocr/init/HandleTransInit.java | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/api/controller/ApiController.java b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/api/controller/ApiController.java index ec06a42..0e94edd 100644 --- a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/api/controller/ApiController.java +++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/api/controller/ApiController.java @@ -219,8 +219,8 @@ public class ApiController { ocrIdentifyDetailService.remove(new LambdaQueryWrapper().in(OcrIdentifyDetail::getIdentifyId,identifyIdList)); for (OcrIdentify ocrIdentify : list) { log.info("打印ocrIdentifyId:"+ocrIdentify.getId()); - //List identifyUrlList = FileOUtils.fileLists(null, ocrIdentify.getIdentifyUrl()); - List identifyUrlList = Arrays.asList("1","2"); + List identifyUrlList = FileOUtils.fileLists(null, ocrIdentify.getIdentifyUrl()); + //List identifyUrlList = Arrays.asList("1","2"); taskService.postSemantic(ocrIdentify,identifyUrlList); } } diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/ocr/init/HandleTransInit.java b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/ocr/init/HandleTransInit.java index 2a8922f..7fd42f3 100644 --- a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/ocr/init/HandleTransInit.java +++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/ocr/init/HandleTransInit.java @@ -124,7 +124,8 @@ public class HandleTransInit implements ApplicationRunner { JSONObject requestBody = new JSONObject(); requestBody.put("task_id", task_id); requestBody.put("img_path", image); - //更新主任务,正在识别中. + //nohup python app.py & tail -f nohup.out & + //更新主任务,正在识别中. conda activate ai ocrIdentifyService.updateMasterTaskStartTime(task_id.split("_")[0]); JSONObject semanticResponseJson = RestUtil.post(OcrConstant.api_test2_identify_url, requestBody); semanticResponseJson.put("identifyId", masterTaskId); @@ -150,8 +151,6 @@ public class HandleTransInit implements ApplicationRunner { } else { Thread.sleep(2000l); } - - } catch (InterruptedException e) { e.printStackTrace(); }