Skip to content

Commit

Permalink
solve segfault for box.train; fixes tesseract-ocr#57
Browse files Browse the repository at this point in the history
  • Loading branch information
zdenop committed Mar 4, 2016
1 parent 7279023 commit 6dc9ba2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/baseapi.cpp
Expand Up @@ -851,6 +851,9 @@ int TessBaseAPI::Recognize(ETEXT_DESC* monitor) {
page_res_ = new PAGE_RES(false,
block_list_, &tesseract_->prev_word_best_choice_);
}
if (page_res_ == NULL) {
return -1;
}
if (tesseract_->tessedit_make_boxes_from_boxes) {
tesseract_->CorrectClassifyWords(page_res_);
return 0;
Expand Down

0 comments on commit 6dc9ba2

Please sign in to comment.