我正在尝试使用Tesseract(版本3.04.00)执行OCR。
我所有的图像都有相同的模式(数字-点-数字,即2位数精度的十进制数)。我试过使用--user-patterns
选项,但无法使用它。在
我所做的:
patterns.txt
,其中\d.\d\d
--user-patterns patterns.txt
但我得到了以下错误:
pytesseract.pytesseract.TesseractError: (1, "Tesseract Open Source OCR Engine v3.04.00 with Leptonica read_params_file: Can't open 1 read_params_file: Can't open user-patterns read_params_file: parameter not found: \\d.\\d\\d")
如何指定要镶嵌的图案?这是正确的方法吗? 提前感谢您的帮助或建议,我在Tesseract上找不到多少医生。在
编辑:添加Python代码
^{pr2}$
没关系,我觉得Tesseract对我的用例来说太过分了。在
我取了一张从0到9的数字的图像,然后用我想要预测的图像选取最小均方误差。在我的测试数据集上得到了100%的准确率。在
相关问题 更多 >
编程相关推荐