Using tesserocr in python will report tessdata path error problem

error:

But my python file address is \Users\Lenovo\AppData\Local\Programs\Python\Python35\ on the  c drive

 D drive is not \ Programs \ Python \ Python35 \  the cut. Then I saw a lot of methods saying that the folder tessdata of Tesseract-OCR can be copied to the mount python path, but I still can’t do it here. The problem still exists in the path of the D drive.

I just want to try to complete the path of D drive according to the error reported above, and then copy the tessdata directory here, as shown in the figure

Then gave me a surprise, no error was reported.

 Python Xiaobai is a new one, and the reason is still unexplained. =======

 

Guess you like

Origin blog.csdn.net/tang242424/article/details/107854056