Body:

Hello Tesseract Community,

I am facing a challenge with my custom-trained Tesseract model, and I'm 
hoping for some guidance on resolving this issue.

Background:

   1. I've successfully trained a custom model (ocrtensor.traineddata).
   2. The training finished without any error and I've copied the generated 
   .traineddata file to /usr/share/tesseract-ocr/4.00/tessdata/.
   3. I'm trying to use this model in a Jupyter Notebook container with the 
   pytesseract Python package.

Problem:

Even though the model was working fine previously, I am now encountering an 
error when trying to use the model. The error suggests that Tesseract can't 
initialize with the custom model:
vbnetCopy code
TesseractError: (1, "Error: LSTM requested, but not present!! Loading 
tesseract. Error: Tesseract (legacy) engine requested, but components are 
not present in 
/usr/share/tesseract-ocr/4.00/tessdata/ocrtensor.traineddata!! Failed 
loading language 'ocrtensor' Tesseract couldn't load any languages! Could 
not initialize tesseract.") 

Steps Tried:

   1. Ensured the Tesseract version compatibility (using version 4).
   2. Checked file permissions (even tried with chmod 777).
   3. Restarted Jupyter Notebook container multiple times.
   4. Tried executing Tesseract from the terminal directly.
   5. Made sure the TESSDATA_PREFIX environment variable is set correctly.
   6. Tried Tesseract with logging enabled for additional error details.

I'm unsure why the model suddenly isn't recognized when it was working just 
a while ago. If anyone has insights or suggestions on what might be going 
wrong, I would greatly appreciate it.

Thank you for your assistance.

-- 
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tesseract-ocr+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/eac448cf-79f3-4b41-9400-397710fb43c7n%40googlegroups.com.

Reply via email to