One possibility is that you used the fast model as starter model. You need to continue or start from the best model.
On Sunday, September 17, 2023 at 8:11:36 PM UTC+3 mdalihu...@gmail.com wrote: > You can try in VietOCR once and check the traineddata right now is not > corrupted. if works in VietOCR then possible problem in your code. > On Sunday, 17 September, 2023 at 9:41:45 pm UTC+6 dem...@datalift.co.kr > wrote: > >> 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/dbed3b5c-9659-4d8b-a001-6e86e2a45e2dn%40googlegroups.com.