Skip to content
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

优化单字符坐标及返回单字符置信度 #293

Merged
merged 2 commits into from
Dec 12, 2024
Merged

Conversation

jesse01
Copy link
Contributor

@jesse01 jesse01 commented Dec 11, 2024

…个解码宽度,当某个字符与上一字符距离大于4个解码宽度,表示中间有空白,此时进行字段拆分,这样可以减少文字间空白对坐标计算的影响;同时返回每个字符值信度,以方便应用使用

2、cal_rec_boxes/main.py:
配合返回单字符值信度列表的修改
修改计算单字符宽度的分母为总字符数减1,与分母一致,这样计算出的值更加准确

3.main.py:
修复主程序没有传递命令行参数的问题

jesse01 added 2 commits December 11, 2024 21:17
…个解码宽度,当某个字符与上一字符距离大于4个解码宽度,表示中间有空白,此时进行字段拆分,这样可以减少文字间空白对坐标计算的影响;同时返回每个字符值信度,以方便应用使用

2、cal_rec_boxes/main.py:
 配合返回单字符值信度列表的修改
 修改计算单字符宽度的分母为总字符数减1,与分母一致,这样计算出的值更加准确

 3.main.py:
 修复主程序没有传递命令行参数的问题
@SWHL SWHL self-requested a review December 12, 2024 00:25
Copy link
Member

@SWHL SWHL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@SWHL SWHL merged commit 0d70e86 into RapidAI:main Dec 12, 2024
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