Problems encountered in window10 system configuration tesseract

 

Mainly according to the tutorial to http://www.wangtuizhijia.com/archives/272
The runtime reports an error like this:
pytesseract.pytesseract.TesseractError: (1, ‘Error opening data file \\Program Files (x86)\\Tesseract-OCR\\eng.traineddata Please make sure the TESSDATA_PREFIX environment variable is set to your “tessdata” directory. Failed loading language \’eng\’ Tesseract couldn\’t load any languages! Could not initialize tesseract. ‘)
The key message is underlined: the environment configuration should be configured to the path of ‘tessdata
Because global variables are not configured to perform data conversion across disks, we add a configuration message to the environment variable.
 
Maybe the tutorial is win7 system slightly different, Win10 Under my operation
Environment variable – New – Variable name :TESSDATA_PREFIX Variable value :C:\Program Files (x86)\Tesseract-OCR\ tessData
Then the system might just need to be rebooted

Read More: