master
周文涛 2 years ago
parent 9c009bdf66
commit 0f7818d124

@ -54,7 +54,7 @@ public class ApiController {
String fileName = jsonObject.getString("fileName");
AssertUtils.notEmpty(requestId,"请输入[请求唯一标识]");
AssertUtils.notEmpty(fileName,"请输入[图片名称]");*/
return JSONObject.parseObject("{\"requestId\":\"10001\",\"result\":{\"tag\":\"hospital_name\",\"inputText\":\"仁和医院\",\"ocrText\":\"仁和医院\",\"ocrPrecisionRate\":0.8,\"ruleValidation\":true,\"sourceImage\":{\"fileName\":\"test1.png\",\"path\":\"/usr/local/ocr/test1.png\"}},\"error_code\":1,\"error_msg\":\"请求成功\"}");
return JSONObject.parseObject("{\"requestId\":\"10001\",\"result\":{\"tag\":\"hospital_name\",\"inputText\":\"仁和医院\",\"ocrText\":\"仁和医院\",\"ocrPrecisionRate\":0.8,\"ruleValidation\":true,\"sourceImage\":{\"fileName\":\"test1.png\",\"path\":\"/usr/local/ocr/test1.png\"},\"failure_reason\":\"图片不清晰\"}}");
}
@ApiOperation(value="任务完结通知", notes="任务完结通知")
@ -65,7 +65,7 @@ public class ApiController {
String fileName = jsonObject.getString("fileName");
AssertUtils.notEmpty(requestId,"请输入[请求唯一标识]");
AssertUtils.notEmpty(fileName,"请输入[图片名称]");*/
return JSONObject.parseObject("{\"requestId\":\"10001\",\"result\":{\"retrieveReviewCompliance\":\"80\",\"imageTagRetrievePercentage\":\"66.6\",\"failure_reason\":\"图片不清晰\"},\"error_code\":1,\"error_msg\":\"请求成功\"}");
return JSONObject.parseObject("{\"requestId\":\"10001\",\"result\":{\"retrieveReviewCompliance\":\"80\",\"imageTagRetrievePercentage\":\"66.6\"}}");
}
//==========================================================================================
}

Loading…
Cancel
Save