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:
- Problems encountered in PCL configuration environment
- Problems encountered in vs2015 configuration using OpenGL environment
- Configuration of OpenGL under CodeBlocks and solutions to problems encountered
- Problems encountered in VTK installation
- Record the problems encountered in OpenGL learning
- Some problems encountered in the development of ReportViewer
- Installation and problems of texlive2017 in win10 system
- Summary of problems encountered in compiling and installing vtk7 + vs2013 / 2015 + cmake
- Problems encountered in running OpenGL
- Gms2 (gamemaker Studio 2) running problems encountered in the project
- Small problems encountered in compiling OpenGL under VS2010
- Summary of problems encountered in using OpenGL in QT
- Problems encountered in VS2010 compilation
- Arduino ide 1.6.9 problems encountered error:’TKD2′ was not declared in this scope
- Problems encountered in configuring OpenGL development environment in vs2015
- Problems encountered in the installation of pyromacoustics
- Record of problems encountered in using vs2017
- Handling nullreference exception problems encountered in NHibernate
- Summary of problems encountered in compiling opengl code
- Some configuration problems of OpenGL in VS2008