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

请教一下关于提高正确识别率的问题 #21

Closed
onlyJinx opened this issue Dec 6, 2021 · 4 comments
Closed

请教一下关于提高正确识别率的问题 #21

onlyJinx opened this issue Dec 6, 2021 · 4 comments

Comments

@onlyJinx
Copy link

onlyJinx commented Dec 6, 2021

在直接识别的情况下会出现挺高的错误(见下面图片),想请教下在已知验证码图片有以下规律的情况下想提高识别率,大佬能否提供一点意见。。

1、全都是单一色调
2、全部都是五个字母组成
3、干扰因素只有一条从左到右的线条

image

@sml2h3
Copy link
Owner

sml2h3 commented Dec 6, 2021

1、转灰度
2、通过膨胀减少字母中的噪音,使其变成一个实心的字体
3、通过腐蚀可以去除大部分横向线条

@onlyJinx
Copy link
Author

onlyJinx commented Dec 6, 2021

好的, 谢谢建议。
有疑问再来请教~

@onlyJinx onlyJinx closed this as completed Dec 6, 2021
@onlyJinx
Copy link
Author

onlyJinx commented Dec 6, 2021

对了,完成以上操作有啥python库可以推荐吗?
有个关键字我好搜索学习使用。。

@sml2h3
Copy link
Owner

sml2h3 commented Dec 6, 2021

对了,完成以上操作有啥python库可以推荐吗? 有个关键字我好搜索学习使用。。

opencv就可以

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