master
周文涛 2 years ago
parent 9eaaf47ebb
commit 5e2196b2cc

@ -22,4 +22,8 @@ public class OcrConstant {
* Api
*/
public static String api_test_identify_url="http://47.103.213.109:8071/aitest/semantic";
public static String api_test2_identify_url="http://127.0.0.1:7003/semantic";
}

@ -547,7 +547,7 @@ public class OcrIdentifyServiceImpl extends ServiceImpl<OcrIdentifyMapper, OcrId
JSONObject requestBody = new JSONObject();
requestBody.put("task_id", task_id);
requestBody.put("img_path", image);
JSONObject semanticResponseJson = RestUtil.post(OcrConstant.api_test_identify_url, requestBody);
JSONObject semanticResponseJson = RestUtil.post(OcrConstant.api_test2_identify_url, requestBody);
//semanticResponseJson = JSONObject.parseObject("{\"医院名称\":[{\"area\":[[361,93],[623,39],[630,73],[368,127]],\"end\":6,\"ocrText\":\"黑石社区医院\",\"probability\":0.9874083762059627,\"start\":0,\"text\":\"黑石社区医院\"}],\"姓名\":[],\"时间\":[],\"科室\":[]}");
semanticResponseJson.put("identifyId", masterTaskId);
this.getSemanticInfo(semanticResponseJson);

Loading…
Cancel
Save