Skip to content

feat(ocr): 增加 OCR 识别并绘制 Base64 图像方法 #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 6, 2025

Conversation

jacktpy
Copy link

@jacktpy jacktpy commented Aug 4, 2025

  • 在 OcrCommonRecModel 接口中添加了 recognizeAndDrawToBase64 和 recognizeAndDraw 方法
  • 在OcrCommonRecModelImpl 类中实现了这两个新方法
  • 新增方法支持将识别结果以 Base64 格式返回,便于在网络中传输和使用
  • 优化了现有 recognizeAndDraw 方法,使其支持 byte[] 图像数据
  • 在 OcrInfo 类中添加了 base64Img 字段,用于存储识别结果的 Base64 图像

- 在 OcrCommonRecModel 接口中添加了 recognizeAndDrawToBase64 和 recognizeAndDraw 方法
- 在OcrCommonRecModelImpl 类中实现了这两个新方法
- 新增方法支持将识别结果以 Base64 格式返回,便于在网络中传输和使用
- 优化了现有 recognizeAndDraw 方法,使其支持 byte[] 图像数据
- 在 OcrInfo 类中添加了 base64Img 字段,用于存储识别结果的 Base64 图像
@geekwenjie geekwenjie merged commit 69cec81 into geekwenjie:dev Aug 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants