16

Is there any free PHP OCR API, that is well documented in PHP, jQuery or JavaScript?

I'm programming a web app for iOS and I'd like to utilize the new photo upload API in iOS 6 safari to use for OCR image processing.

Thanks a ton! :)

(Edit: Oh and a Google-Googles like API for image recognition would also suffice, it doesn't have to be OCR, though I would pefer it. :)

  • 5
    Not for PHP, but free and quite OK is Tesseract. – Bart Friederichs Jan 11 '13 at 18:46
  • @BartFriederichs Yeah but I'd need to accomplish this in PHP or JavaScript or jQuery so this woudn't work... and I want to avoid the `exc` command, because I don't know how to use it. :P –  Jan 11 '13 at 18:48
  • Sounds like this is a good time to learn! –  Jan 11 '13 at 19:17
  • @duskwuff yeah... but I thought that there were some native PHP ocr apis... –  Jan 11 '13 at 19:28
  • There are none that I am aware of. PHP would be an awful language to write an OCR engine with. –  Jan 11 '13 at 19:40
  • @duskwuff just discovered this: http://ocrsdk.com/ and http://www.ocr-it.com/ in PHP. –  Jan 11 '13 at 19:56
  • Those are both hosted services -- the actual OCR engine isn't written in PHP. If you're comfortable with paying per image processed, go ahead and use them. They're not cheap, though! –  Jan 11 '13 at 19:58
  • @duskwuff i know.. :| is there any similar alternative? a bit cheaper? –  Jan 11 '13 at 20:46
  • @user1935281 Google Cloud Vision. The most powerful OCR and image analysis platform available at the moment. Free for 1000/requests month. $5/1000 requests above that. – dearsina Aug 21 '16 at 00:47

2 Answers2

20

Tesseract is really simple to use. Someone has even written a PHP wrapper for it so you won't have to deal with the exec() command. Have a look at this here: http://github.com/thiagoalessio/tesseract-ocr-for-php

Stefan
  • 2,164
  • 1
  • 23
  • 40
2

You can try http://www.newocr.com/api.php
It uses REST API.

kmhigashioka
  • 521
  • 5
  • 14