3

Possible Duplicate:
How can I implement OCR on a website using PHP?

Ive been looking for a working OCR class (must be PHP) for almost 3 days.

Anyone knows a working OCR? please guide me if you have a OCR sample.

Community
  • 1
  • 1
Celin
  • 33
  • 1
  • 1
  • 3
  • 1
    Possible duplicate of [How can I implement OCR on a website using PHP?](http://stackoverflow.com/questions/2170271/how-can-i-implement-ocr-on-a-website-using-php) – Moshe Jan 26 '11 at 21:39
  • @Moshe, thanks for the link. Ive never seen that link. im checking it right now. thanks again for your help.. – Celin Jan 26 '11 at 21:41
  • Are you writing a captcha solving spambot? :D – mingos Jan 26 '11 at 21:46
  • @mingos, no, i'm not. i'm not a spammer. trust me. – Celin Jan 26 '11 at 21:47
  • @Celin it's got nothing to do with that. Stackoverflow has a standing policy of no duplicates. – Moshe Jan 26 '11 at 21:51
  • @Moshe, you asked same question months ago. well, did you find any solution? – Celin Jan 26 '11 at 21:54
  • 1
    @Celin - I ended up not persuing that project. See this answer though http://stackoverflow.com/questions/2170271/how-can-i-implement-ocr-on-a-website-using-php/2170419#2170419, it looks decent: – Moshe Jan 26 '11 at 21:55
  • @Celin: when someone says "trust me", it's a good reason NOT to trust him :D (just kidding) – mingos Jan 26 '11 at 22:06

1 Answers1

3

I don't believe anybody implemented any OCR solution in PHP. OCR ( Optical Character Recognition ) is a very complex piece of Software and not anything PHP would be suited for to implement.

But for sure you can call an external OCR program from PHP. So you should look for an OCR solution which can be used from command line.

Community
  • 1
  • 1
Marko
  • 514
  • 1
  • 4
  • 16
  • thanks for answer. can i call an .exe program from php? well, ive got "ABBY screenshot reader", and it's converting image to text succesfully. – Celin Jan 26 '11 at 21:45
  • Sure, there are several functions for this, look here: http://de3.php.net/manual/en/ref.exec.php Just be careful if you use external input, calling programs on a server has some security related aspects. – Marko Jan 26 '11 at 21:49
  • You're not 100% right. You can use OCR web API with PHP, for example, http://ocrsdk.com/producttour/programming-languages/ works with PHP, here are the codesamples: https://github.com/abbyysdk/ocrsdk.com/tree/master/PHP – Nikolay May 02 '12 at 10:30
  • I tend to agree with @Nikolay you could turn an OCR library into a PHP extension and that would be 100% done in PHP, imho ymmv. – nickl- Aug 24 '12 at 04:45