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
二维码识别问题,不支持彩色二维码识别 #512
Comments
哦,抱歉,HTTP接口暂时不套用软件界面上的设定,需要手动修改代码来传入设定。 请打开 res = MissionQRCode.addMissionWait({}, [{"pil": pil}]) 修改为: argd = {
"preprocessing.grayscale": True,
"preprocessing.threshold": 200,
}
res = MissionQRCode.addMissionWait(argd, [{"pil": pil}]) 这样就能修改HTTP接口的参数了。 更多可设定参数为:
|
抱歉,我之前看错了文件。 应该在 def base2text(base64):
argd = {
"preprocessing.grayscale": True,
"preprocessing.threshold": 200,
}
res = MissionQRCode.addMissionWait(argd, [{"base64": base64}])
return res[0]["result"] 我正在将这部分纳入修改,下版本将能够在http指令中,传入二维码的调节参数。 |
嗯嗯,感谢大佬,测试没问题👍🏻 |
hiroi-sora
added a commit
that referenced
this issue
May 21, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issues
Umi-OCR version 程序版本
2.1.1
Windows version 系统版本
win10
OCR plugins Used 使用的OCR插件
PaddleOCR
Reproduction steps 复现步骤
大佬您好,我这边需要对微信二维码进行识别,通过http请求测试了一下您写的插件,微信彩色二维码识别不了,我看第三方可能先是做了灰度反差处理,进行识别的,有空能不能看下(草料二维码有类似的功能,他们是纯前端识别的,不知道有没有参考价值)
Problem screenshots or related files (optional) 问题截图或相关文件(可选)
The text was updated successfully, but these errors were encountered: