We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
我用大写字母的图片进行识别,预期是D,识别结果却是小写的d
from ddddocr import DdddOcr import unittest ocr = DdddOcr(show_ad=False, beta=True) class TestOcr(unittest.TestCase): def test_ocr_d(self): with open('test.png', 'rb') as f: ocr.set_ranges(2) text1 = ocr.classification(f.read()) ret = text1[:1] self.assertEqual(ret, 'D') if __name__ == '__main__': unittest.main()
测试图片如图:
The text was updated successfully, but these errors were encountered:
我也是,数字7识别为/
Sorry, something went wrong.
我解决问题了,可以参考我这个项目 https://github.com/hjdhnx/font-decoder 使用了微信ocr拿来针对ddddocr识别出的英文字母,矫正大小写问题
已经提交pull request,等待合并。如果着急,可以参考修改的部分手动修改本地对应的__init__.py文件:
大佬666,膜拜大佬
No branches or pull requests
我用大写字母的图片进行识别,预期是D,识别结果却是小写的d
测试图片如图:
The text was updated successfully, but these errors were encountered: