devTess, I'd not ask questions like this as Tess is undergoing transition from the old code base and is under hard development of new features. I've no enough time to investigate but the "prev_word_best_choice_" data member seems to be related to best segmentation search based on the language model.
Instead of rummaging in Tess's guts I'd better use a pretty convenient and high-level interface provided by "ResultIterator" (see GetIterator() in "baseapi.h" and then read all comments in "resultiterator.h" and "pageiterator.h") Warm regards, Dmitry Silaev On Wed, Feb 16, 2011 at 5:34 AM, devTess <jim...@googlemail.com> wrote: > Question: > where can I find out more about (see below) > > &tesseract_->prev_word_best_choice_ > > > What is the purpose of doing that? > Why is it that it is not sufficient just to > > page_res_ = new PAGE_RES(block_list_); > > Thank you. > ================================================= > > int TessBaseAPI::RecognizeText(ETEXT_DESC* monitor) { > > if (tesseract_ == NULL) > return -1; > if (page_res_ != NULL) > delete page_res_; > > block_list_ =FindLinesCreateBlockList(); > > tesseract_->SetBlackAndWhitelist(); > recognition_done_ = true; > > page_res_ = new PAGE_RES(block_list_, &tesseract_- > >prev_word_best_choice_); > > // Now run the main recognition. > tesseract_->recog_all_words(page_res_, monitor, NULL, NULL, 1); > > return 0; > } > > -- > You received this message because you are subscribed to the Google Groups > "tesseract-ocr" group. > To post to this group, send email to tesseract-ocr@googlegroups.com. > To unsubscribe from this group, send email to > tesseract-ocr+unsubscr...@googlegroups.com. > 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 post to this group, send email to tesseract-ocr@googlegroups.com. To unsubscribe from this group, send email to tesseract-ocr+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/tesseract-ocr?hl=en.