I have the following code in 2 diff approaches, the code works perfectly if I use "PyTessBaseAPI" approach, however, if I want to switch to the simpler side with TESSDATA_PREFIX, I start to run into error that I can't figure out why.
I just wondering what's the reason behind it since both approaches are listed in the doc, I am also believe my tessdata folder is correct since one path worked (let alone I didn't do anything training, I just copy one of the default eng version).
I have the following code in 2 diff approaches, the code works perfectly if I use "PyTessBaseAPI" approach, however, if I want to switch to the simpler side with TESSDATA_PREFIX, I start to run into error that I can't figure out why.
I just wondering what's the reason behind it since both approaches are listed in the doc, I am also believe my tessdata folder is correct since one path worked (let alone I didn't do anything training, I just copy one of the default eng version).
Happy path with PyTessBaseAPI
Weird failure