Script to send an image to ocr scanner

Hi,
With PHP script how to send an image to ocr scanner and get the resultant document.

Is the OCR scanner a command line utility? Use exec to run it on the image file.