jacklicn / tesseract-ocr

Automatically exported from code.google.com/p/tesseract-ocr
Other
0 stars 0 forks source link

mftraining: intproto.cpp:702: INT_CLASS_STRUCT* NewIntClass(int, int): Assertion `MaxNumConfigs <= 64' failed. Writing Merged Microfeat ...Aborted #562

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Run mftraining -F font_properties -U unicharset -O lot.unicharset img1.tr 
..... img126.tr

2.I have a font_properties file containing data below:
img100 0 0 0 0 0
img101 0 0 0 0 0
img102 0 0 0 0 0
img103 0 0 0 0 0
......

3.

What is the expected output? What do you see instead?
Normal training. 2 Output files.But intead I am Getting 

mftraining: intproto.cpp:702: INT_CLASS_STRUCT* NewIntClass(int, int): 
Assertion `MaxNumConfigs <= 64' failed.
Writing Merged Microfeat ...Aborted

(Please refer below link for full error report.)

What version of the product are you using? On what operating system?
Tesseract 3.1 with Leptonica.

Please provide any additional information below.
Here is Full Terminal report: http://pastebin.com/v05G2ats

Original issue reported on code.google.com by arun.sas...@cabotsolutions.com on 26 Oct 2011 at 2:56

GoogleCodeExporter commented 9 years ago
I am replying to Myself:
I have found that if the .tr files count is exceeds above 70, the command will 
end up in the above error. If the ..tr file count is less than or equal to 70 
it will produce desired output!. Is this a Bug????

--------------------------------------------------
IF:
#mftraining -F font_properties -U unicharset -O lot.unicharset img1.tr ..... 
img80.tr
O/P : mftraining: intproto.cpp:702: INT_CLASS_STRUCT* NewIntClass(int, int): 
Assertion `MaxNumConfigs <= 64' failed.
Writing Merged Microfeat ...Aborted

BUT:
#mftraining -F font_properties -U unicharset -O lot.unicharset img1.tr ..... 
img70.tr
O/P : Warning: no protos/configs for _ in CreateIntTemplates()
Warning: no protos/configs for , in CreateIntTemplates()
Warning: no protos/configs for 54 in CreateIntTemplates()
Warning: no protos/configs for | in CreateIntTemplates()
Error: no configs for class _ in mftraining
Error: no configs for class , in mftraining
Error: no configs for class 54 in mftraining
Error: no configs for class | in mftraining
Writing Merged Microfeat ...Done!

--------------------------------------------------

Please see my terminal view here : http://pastebin.com/ZNAWGNiB

Original comment by arun.sas...@cabotsolutions.com on 27 Oct 2011 at 6:57

GoogleCodeExporter commented 9 years ago
please have a look at 
http://code.google.com/p/tesseract-ocr/issues/detail?id=537#c6

Original comment by zde...@gmail.com on 23 Feb 2012 at 8:20