提交修改
This commit is contained in:
parent
3412fb7cd1
commit
c07b4b3fab
@ -106,6 +106,27 @@ public class AIOcrController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// http://localhost:8888/ai/precision/orc/recognize?imageBase64=3232
|
||||||
|
// https://heyuoss.oss-cn-shanghai.aliyuncs.com/prd/testxxx.jpg
|
||||||
|
|
||||||
|
/***
|
||||||
|
*
|
||||||
|
/ 4. document_parsing : 文档解析
|
||||||
|
/**
|
||||||
|
* 模型支持解析以图像形式存储的扫描件或PDF文档,能识别文件中的标题、摘要、标签等,以带有LaTeX格式的文本返回识别结果。
|
||||||
|
*/
|
||||||
|
@EbAuthentication(tencent = ApiConstants.TENCENT_AUTH)
|
||||||
|
@RequestMapping("/text/recognition")
|
||||||
|
public R text_recognition(@RequestBody AIOcrRequest aiOcrRequest) throws Exception {
|
||||||
|
ModelResult modelResult = LLMUtils.callOcr(aiOcrRequest.getImageUrl(), aiOcrRequest.getImageBase64(),
|
||||||
|
AlibabaOCREnums.text_recognition);
|
||||||
|
Map<String, Object> data = new HashMap<>();
|
||||||
|
data.put("content", modelResult.getResult());
|
||||||
|
return R.ok().setData(data);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// http://localhost:8888/ai/precision/orc/recognize?imageBase64=3232
|
// http://localhost:8888/ai/precision/orc/recognize?imageBase64=3232
|
||||||
// https://heyuoss.oss-cn-shanghai.aliyuncs.com/prd/testxxx.jpg
|
// https://heyuoss.oss-cn-shanghai.aliyuncs.com/prd/testxxx.jpg
|
||||||
// 5. formula_recognition: 公式识别
|
// 5. formula_recognition: 公式识别
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user