git ch rge branch 'master' of https://git.iwulin.tech/quyixiao/eb-service-api
This commit is contained in:
quyixiao 2025-10-07 09:56:41 +08:00
commit 5e2edcb974
2 changed files with 6 additions and 1 deletions

View File

@ -107,7 +107,7 @@ public class LLMUtils {
map.put("image", "data:image/jpeg;base64," + imageBase64);
}
// 输入图像的最大像素阈值超过该值图像会按原比例缩小直到总像素低于max_pixels
map.put("max_pixels", "6422528");
map.put("max_pixels", "2073600");//限制图片大小 1920x1080
// 输入图像的最小像素阈值小于该值图像会按原比例放大直到总像素大于min_pixels
map.put("min_pixels", "3136");
// 开启图像自动转正功能

View File

@ -38,6 +38,11 @@ public class GeneralBasicOcrController extends BaseController {
private BGeneralBasicHandle bGeneralBasicHandle;
@EbAuthentication(tencent = ApiConstants.TENCENT_AUTH)
@RequestMapping("/recognize1")
public R recognize1(@RequestBody GeneralBasicOcrRequest generalBasicOcrRequest) throws Exception {
return recognize(generalBasicOcrRequest);
}
// http://localhost:8888/general/text/orc/recognize?imageBase64=3232
@EbAuthentication(tencent = ApiConstants.TENCENT_AUTH)
@RequestMapping("/recognize")