问题描述
我已经研究过PyTesser / Tesseract,就我所知,它只在我输入图像时才给我一个字符串。
I've looked into PyTesser/Tesseract and as far I as I can tell, it only gives me a string once I input an image.
然而,我相反,我希望收到它识别的每个角色的坐标/边界矩形。字符串本身可能对我以后有用,但现在这就是我需要的。
However, I'd like to receive, instead, the coordinates/bounding rectangle of each character it recognized. The string itself might be useful for me later on, but right now that's now what I need.
假设PyTesser / Tesseract不提供我的功能,有什么东西吗?免费提供(即不是Matlab或类似的东西)吗?
Assuming PyTesser/Tesseract don't offer me that functionality, is there something freely available (ie, not Matlab or something similar) that does?
推荐答案
根据这个,您可以使用Tesseract执行此操作。但是,我不知道Python包装器会授予您访问该数据的权限。
According to this mailing list thread, you can do this with Tesseract. However, I don't know of Python wrapper that will grant you access to that data.
这篇关于Python / C ++ / Java:是否有一个可以识别字符并告诉我它们在图像中的位置的库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!