Tesseract index> = 0 && index <size_used_: Error: error with error confirmation

I have successfully written the trainingdata file for the new tesseract language, but when I finish, I keep getting the following error:

index >= 0 && index < size_used_:Error:Assert failed:in file ../ccutil/genericvector.h, line 657

However, this even happens when I run tesseract on the image I trained with! I am confused as to what is happening, as I expect the error should not happen if I run tesseract on the training set.

+5
source share
2 answers

This error indicates that your training did not work => you did not notice an error message during training.

0
source

This error is caused by the absence of the lang.shapetable file in your lang.traineddata file.


Make sure you create the template:

 shapeclustering -F font_properties -U unicharset lang.font.exp0.box.tr 

This will create a file called shapetable . You will need to rename it to lang.shapetable before you can combine everything:

 combine_tessdata lang. 
+4
source

Source: https://habr.com/ru/post/1238797/


All Articles