Read Image Text Using PHP Tesseract-OCR Reader

 

read image tesseract ocr

This is post about how to read Image Text Using PHP. in this post i saw you how to read image text using php use of google Tesseract – OCR.

Google Tesseract-OCR (Optical Character Reader) Is Open Source API use to read Text From Image Using php.I am implemented this code with php in easy way.exec function is available in PHP.this function is use to execute exe file using web browser.this function also available in Windows or Linux Operating System. In Linux shell_exec Function is available to execute Linux command in web browser.

HTML Code

 

Read Text From Image Code

 

Image Upload Code

 

 

Instruction for Windows Operating System

For Windows First of all You Need to download Tesseract-OCR API from following Link.

Download Tesseract OCR

after Downloading Install in to C:ocr following way

tesseract

 

Instruction For Linux

install GCC in your System Using Following Command

 

You Need To Install Leptonica Library go to http://www.leptonica.com/download.html download this library.or

You need to install Tesseract-OCR For Linux in Following Way

Download


  • http://rumyittips.com Syed Balal Rumy

    Dear, but how to use it on windows.

    • http://www.9code.in Hardik Vegad

      open cmd type

      tesseract yourfile.jpg output.txt