zhouc ocr识别图片
This commit is contained in:
parent
a1ed79ab53
commit
e1116ee66e
@ -69,7 +69,7 @@ public class OCRController {
|
|||||||
Map<String, Object> getmsg = getmsg(mag, imageurl);
|
Map<String, Object> getmsg = getmsg(mag, imageurl);
|
||||||
if (getmsg.get("success").equals("1")) {
|
if (getmsg.get("success").equals("1")) {
|
||||||
OCRReqVO ocrReqVO= new OCRReqVO();
|
OCRReqVO ocrReqVO= new OCRReqVO();
|
||||||
ocrReqVO.setMakedown(getmsg.get("msg"));
|
ocrReqVO.setMarkdown(getmsg.get("msg"));
|
||||||
ocrReqVO.setJson(getmsg.get("msg1"));
|
ocrReqVO.setJson(getmsg.get("msg1"));
|
||||||
return success(ocrReqVO);
|
return success(ocrReqVO);
|
||||||
} else {
|
} else {
|
||||||
|
@ -17,8 +17,8 @@ import org.springframework.web.multipart.MultipartFile;
|
|||||||
@NoArgsConstructor
|
@NoArgsConstructor
|
||||||
@Schema(description = "管理后台 - OCR Request VO")
|
@Schema(description = "管理后台 - OCR Request VO")
|
||||||
public class OCRReqVO {
|
public class OCRReqVO {
|
||||||
@Schema(description = "makedown格式", example = "")
|
@Schema(description = "markdown格式", example = "")
|
||||||
private Object makedown;
|
private Object markdown;
|
||||||
@Schema(description = "json格式", example = "")
|
@Schema(description = "json格式", example = "")
|
||||||
private Object json;
|
private Object json;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user