Skip to content

Commit

Permalink
Fix incorrect condition.
Browse files Browse the repository at this point in the history
  • Loading branch information
egorpugin committed Nov 29, 2018
1 parent 9e49539 commit 685b136
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/tesseractmain.cpp
Expand Up @@ -652,7 +652,7 @@ int main(int argc, char** argv) {
osd_warning +=
"\nWarning: The page segmentation mode 1 (Auto+OSD) is currently disabled. "
"Using PSM 3 (Auto) instead.\n\n";
} else if (tesseract::PSM_SPARSE_TEXT_OSD) {
} else if (cur_psm == tesseract::PSM_SPARSE_TEXT_OSD) {
api.SetPageSegMode(tesseract::PSM_SPARSE_TEXT);
osd_warning +=
"\nWarning: The page segmentation mode 12 (Sparse text + OSD) is currently disabled. "
Expand Down

0 comments on commit 685b136

Please sign in to comment.