On Tue, Sep 17, 2013 at 11:14:57AM -0700, [email protected] wrote: > Classify::InitAdaptiveClassifier() says its parameter > (load_pre_trained_templates) "Should only be set to true if the necesary > classifier components are present in the [lang].traineddata file." but when > it's called from Tesseract::init_tesseract_internal() (via > Wordrec::program_editup()) the parameter is set solely based on the value > of tessedit_ocr_engine_mode, no checks are made to ensure the necessary > classifier components exist. > > I'm trying to OCR using two traineddata files - one built-in and one I'm > creating, the one I'm creating doesn't have the classifier components so > Classify::InitAdaptiveClassifier() is crashing on the line ASSERT_HOST > (tessdata_manager.SeekToStart(TESSDATA_INTTEMP));
Sounds like a bug to me. I'd suggest you write a patch adding proper detection to that function, if you have the time. Otherwise just file the bug and someone will probably get to it (but probably not speedily). Nick -- -- You received this message because you are subscribed to the Google Groups "tesseract-ocr" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/tesseract-ocr?hl=en --- 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

