简体   繁体   English

如何找到图像上特定字符串的位置?

[英]How can I find where a specific string is on an image?

I was wondering if anyone knew of a way that I could feed an image file to a Python, C or Java program and get back the coordinates of where a specific string appears on the image?我想知道是否有人知道我可以将图像文件提供给 Python、C 或 Java 程序并获取特定字符串出现在图像上的坐标?

What you're talking about is called Optical Character Recognition , or OCR.您所说的称为光学字符识别或 OCR。

OCR isn't easy to implement from scratch, but there are libraries out there. OCR 并不容易从头开始实现,但是那里有库。 OpenCV can be used for OCR . OpenCV 可用于 OCR

I looked into this a bit more.我对此进行了更多研究。 It turns out that sikuli does exactly what I needed.事实证明, sikuli正是我所需要的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM