1 Year
Discussion Span
Last Post by Nova6112

C:\Program Files (x86)\Tesseract-OCR>tesseract E:\walmart.jpg walmart -psm 7 batch.nochop makebox

C:\Program Files (x86)\Tesseract-OCR>tesseract E:\walmart.jpg eng.walmart.exp0.box nobatch box.train

C:\Program Files (x86)\Tesseract-OCR>unicharset_extractor eng.walmart.exp0.box

C:\Program Files (x86)\Tesseract-OCR>echo "walmart 1 0 0 0 0" > font_properties

these commands worksfine but the following command throws error

C:\Program Files (x86)\Tesseract-OCR>mftraining -F font_properties -U unicharset -O eng.unicharset eng.walmart.exp0.box.tr

this is my commandline code, following is error throwing.

Warning: No shape table file present: shapetable
Reading eng.walmart.exp0.box.tr ...
Font id = -1/0, class id = 1/11 on sample 0
font_id >= 0 && font_id < font_idmap.SparseSize():Error:Assert failed:in file
....\classify\trainingsampleset.cpp, line 622

attached Screenshot also please check. if anything needed please tell me i'll explain

searched a google lot they all mentioned something about font_properties but i can't understand it would be better someone can explain with examples

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.