|
|
|
@ -124,7 +124,8 @@ public class HandleTransInit implements ApplicationRunner {
|
|
|
|
JSONObject requestBody = new JSONObject();
|
|
|
|
JSONObject requestBody = new JSONObject();
|
|
|
|
requestBody.put("task_id", task_id);
|
|
|
|
requestBody.put("task_id", task_id);
|
|
|
|
requestBody.put("img_path", image);
|
|
|
|
requestBody.put("img_path", image);
|
|
|
|
//更新主任务,正在识别中.
|
|
|
|
//nohup python app.py & tail -f nohup.out &
|
|
|
|
|
|
|
|
//更新主任务,正在识别中. conda activate ai
|
|
|
|
ocrIdentifyService.updateMasterTaskStartTime(task_id.split("_")[0]);
|
|
|
|
ocrIdentifyService.updateMasterTaskStartTime(task_id.split("_")[0]);
|
|
|
|
JSONObject semanticResponseJson = RestUtil.post(OcrConstant.api_test2_identify_url, requestBody);
|
|
|
|
JSONObject semanticResponseJson = RestUtil.post(OcrConstant.api_test2_identify_url, requestBody);
|
|
|
|
semanticResponseJson.put("identifyId", masterTaskId);
|
|
|
|
semanticResponseJson.put("identifyId", masterTaskId);
|
|
|
|
@ -150,8 +151,6 @@ public class HandleTransInit implements ApplicationRunner {
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
Thread.sleep(2000l);
|
|
|
|
Thread.sleep(2000l);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} catch (InterruptedException e) {
|
|
|
|
} catch (InterruptedException e) {
|
|
|
|
e.printStackTrace();
|
|
|
|
e.printStackTrace();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|