|
|
@ -975,7 +975,7 @@ public class OcrIdentifyServiceImpl extends ServiceImpl<OcrIdentifyMapper, OcrId
|
|
|
|
if (StringUtils.isNotBlank(time)) {
|
|
|
|
if (StringUtils.isNotBlank(time)) {
|
|
|
|
sourceJson.add(JSONObject.parseObject(String.format("{\"tag\":\"time\", \"inputText\":\"%s\"}", time)));
|
|
|
|
sourceJson.add(JSONObject.parseObject(String.format("{\"tag\":\"time\", \"inputText\":\"%s\"}", time)));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
JSONObject semanticResult = JSONObject.parseObject(ocrIdentifyDetail.getSemanticResult());
|
|
|
|
JSONObject semanticResult = JSONObject.parseObject(ocrIdentifyDetail.getSemanticResult()).getJSONObject("semantic_result");
|
|
|
|
File file = new File(imgPath);
|
|
|
|
File file = new File(imgPath);
|
|
|
|
//当原图片存在时.
|
|
|
|
//当原图片存在时.
|
|
|
|
if (file.exists()) {
|
|
|
|
if (file.exists()) {
|
|
|
|