Skip to content

Commit

Permalink
solve segfault for box.train; fixes #57
Browse files Browse the repository at this point in the history
  • Loading branch information
zdenop committed Mar 8, 2016
1 parent 6385577 commit 285c3fb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/baseapi.cpp
Original file line number Diff line number Diff line change
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 285c3fb

Please sign in to comment.