python - How to install leptonica+tesseract on Windows without Visual Studio to use in Anaconda? -


i wanted perform text recognition images , want use python. installed anaconda. want install tesseract need install leptonica. did not find clear instruction how in windows. leptonica not want install visual studio. provide clear instructions how install leptonica , tesseract on windows without visual studio use in anaconda ? thanks.

here simple set of steps have tesseract 3.05 dev version of 04/22/2016 working both on windows 7 , windows 8 machines:

1- install tesseract executable official tesseract-ocr page (version 3.02 windoes suffice)

2- download following 2 files tesseract 3.05 dev version http://domasofan.spdns.eu/tesseract/

there 2 exe files:

  • tesseract-core-yyyymmdd.exe tesseract core application without language data
  • tesseract-langs-yyyymmdd.exe language data available tesseract.

(yyyymmdd means year 4 digits, month 2 digits , day 2 digits.)

the app portable can install on usb stick or in location.

sub steps install these:

  1. download tesseract-core , tesseract-langs packages.
  2. double click tesseract-core package , extract directory want (a temporary new folder called "tess_temp").
  3. double click tesseract-langs package , extract same directory add \tessdata in above "tess_temp" folder. example if have extracted tesseract-core c:\tess_temp, tesseract-langs needs go c:\tess_temp\tessdata.

  4. now copy ever have in "tess_temp" tesseract 3.02 installed in step 1 above (its usially in c:\program files (x86)\tesseract-ocr) (replace 3.02 materials 3.05 )

  5. it should work 3.05 version on windows. copy sample image test.png (with text) tesseract-ocr folder , open cmd , type in following commands:

    go tesseract folder: cd c:\program files <x86>\tesseract-ocr

    run tesseract on test.png: tesseract -l eng test.png test_text -psm 6

it show you

tesseract open source ocr engine v3.05.00dev leptonica 

congratulations ! (check test_txt.txt extracted text)


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -