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

单字符识别时,det结果旋转了90度导致rec错误 #259

Open
Alex37882388 opened this issue Nov 18, 2024 · 1 comment
Open

单字符识别时,det结果旋转了90度导致rec错误 #259

Alex37882388 opened this issue Nov 18, 2024 · 1 comment

Comments

@Alex37882388
Copy link

问题描述 / Problem Description

单字符识别时,det结果旋转了90度导致rec错误

运行环境 / Runtime Environment

win11

复现条件

如下图片可以复现:
34

问题代码 / Reproduction Code

# main.py line 167、168行
if dst_img_height * 1.0 / dst_img_width >= 1.5:
    dst_img = np.rot90(dst_img)

det检测到文本框之后,经过以上代码旋转之后,图片变成了这样:
det_main90_2
导致最终识别奕成了字母O

可能解决方案 / Possible solutions

这里不需要判断宽高比例使其旋转90度

@SWHL
Copy link
Member

SWHL commented Nov 18, 2024

这个发现很有趣,需要仔细考虑一下了

@SWHL SWHL changed the title Bug 单字符识别时,det结果旋转了90度导致rec错误 Nov 20, 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

No branches or pull requests

2 participants