Met push
git ch rge branch 'master' of https://git.iwulin.tech/quyixiao/eb-service-api
This commit is contained in:
commit
5e2edcb974
@ -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");
|
||||
// 开启图像自动转正功能
|
||||
|
||||
@ -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")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user