开发者

Read text from an image with PHP [closed]

开发者 https://www.devze.com 2022-12-16 05:38 出处:网络
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this
Closed. This question needs to be more focused. It is not currently accepting answers.

Want to improve this question? Update the question so it focuses on one problem only by editing this post.

Closed 4 years ago.

Improve this question

I would like 开发者_StackOverflow社区to try to read some of text from an image with PHP.

So if I have an image like this:

Read text from an image with PHP [closed]

How can I extract the text "Some text" into a string.

All help and suggestions are appreciated.


The process you are looking for is called Optical Character Recognition.

http://en.wikipedia.org/wiki/Optical_character_recognition

There is a package available, called phpOCR, that does exactly what you need.

http://sourceforge.net/projects/phpocr/


phpOCR ist not the best choice, I would recommend TesseractOCR for PHP "A wrapper to work with TesseractOCR inside your PHP scripts." https://github.com/thiagoalessio/tesseract-ocr-for-php


That's called OCR. (See http://en.wikipedia.org/wiki/Optical_character_recognition ).

It's not a trival task (that's why captcha's work as good as they do).

You'd be better of googling 'OCR PHP' if you want to find solutions.

0

精彩评论

暂无评论...
验证码 换一张
取 消