|
|
|
@ -85,6 +85,7 @@ public class OcrIdentifyController extends JeecgController<OcrIdentify, IOcrIden
|
|
|
|
|
//获取识别的图片
|
|
|
|
|
List<String> fileList=new ArrayList<>();
|
|
|
|
|
List<String> fileUrlList= FileOUtils.fileLists(ocrIdentify.getIdentifyUrl());
|
|
|
|
|
AssertUtils.notNull(fileUrlList,"图片地址不存在");
|
|
|
|
|
for (String fileUrl : fileUrlList) {
|
|
|
|
|
//判断附件是否是 图片格式
|
|
|
|
|
if (fileUrl.lastIndexOf(".png")!=-1 || fileUrl.lastIndexOf(".jpg")!=-1|| fileUrl.lastIndexOf(".jpeg")!=-1) {
|
|
|
|
|