Use img.txt, easy get text content from image, and You can use iPhone as OCR server, it provides a POST API to receive image and return OCR result directly.
Ocr client demos for img.txt.
You can use iPhone as OCR server, and then call its api...
Format : curl -F 'file=<filename>' <server url of img.txt app>
Example: curl -F 'file=/user/images/photo1.png' http://192.168.0.2:8080