|
|
|
@ -25,6 +25,7 @@ import org.jeecg.modules.ocr.entity.OcrIdentifyDetail;
|
|
|
|
|
import org.jeecg.modules.ocr.entity.OcrMetadataConfig;
|
|
|
|
|
import org.jeecg.modules.ocr.service.*;
|
|
|
|
|
import org.jeecg.common.system.base.controller.JeecgController;
|
|
|
|
|
import org.jeecg.modules.ocr.service.impl.TaskService;
|
|
|
|
|
import org.jeecg.modules.ocr.utils.DownloadTemplateUtil;
|
|
|
|
|
import org.jeecg.modules.ocr.utils.FileOUtils;
|
|
|
|
|
import org.jeecg.modules.ocr.vo.OcrIdentifyVo;
|
|
|
|
@ -69,6 +70,8 @@ public class OcrIdentifyController extends JeecgController<OcrIdentify, IOcrIden
|
|
|
|
|
private ISysDictItemService sysDictItemService;
|
|
|
|
|
@Autowired
|
|
|
|
|
private RedisUtil redisUtil;
|
|
|
|
|
@Autowired
|
|
|
|
|
private TaskService taskService;
|
|
|
|
|
/**
|
|
|
|
|
* 分页列表查询
|
|
|
|
|
*
|
|
|
|
@ -179,7 +182,8 @@ public class OcrIdentifyController extends JeecgController<OcrIdentify, IOcrIden
|
|
|
|
|
ocrIdentify.setStatus("0");
|
|
|
|
|
ocrIdentifyService.save(ocrIdentify);
|
|
|
|
|
//3.请求python ocr识别,异步执行
|
|
|
|
|
ocrIdentifyService.postSemantic(ocrIdentify, fileList);
|
|
|
|
|
taskService.postSemantic(ocrIdentify,fileList);
|
|
|
|
|
//ocrIdentifyService.postSemantic(ocrIdentify, fileList);
|
|
|
|
|
//请求ocr识别接口
|
|
|
|
|
//ocrIdentifyService.postSemantic(ocrIdentify.getId(),Arrays.asList(ocrIdentify.getIdentifyUrl()));
|
|
|
|
|
return Result.OK("添加成功!");
|
|
|
|
|