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

1.对图片做预处理提高识别率;2.短边自动设置 #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

blyema
Copy link

@blyema blyema commented Oct 20, 2020

1.对图片做预处理,上下左右各扩展50像素,提高识别率;
2.短边自动设置

1.对图片做预处理,上下左右各加50像素,提高识别准确度。
2.短边自动设置。
@cronz
Copy link
Owner

cronz commented Nov 10, 2020

  1. 对于加border的一些说明
    用 copyMakeBorder 的方法可能对于白色为底的文字是有提升效果的。但是对于其它颜色,可能会有反作用。

即使用 Replicate 的 borderType, 也是有很大的负作用。当 box 文字框中边缘处刚好 有文字的笔画,或者有燥点,就可能 replicate 了这些点,最终严重影响识别。

经过试验,borderType的几种类型都没办法提高识别率。如果用 Threshold OSTU来处理,加上几个像素的 border,识别率反而更差。

  1. short_size
    这个改动对识别的帮助。谢谢!

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.

None yet

2 participants