Return the current page segmentation mode. */
| 463 | |
| 464 | /** Return the current page segmentation mode. */ |
| 465 | PageSegMode TessBaseAPI::GetPageSegMode() const { |
| 466 | if (tesseract_ == NULL) |
| 467 | return PSM_SINGLE_BLOCK; |
| 468 | return static_cast<PageSegMode>( |
| 469 | static_cast<int>(tesseract_->tessedit_pageseg_mode)); |
| 470 | } |
| 471 | |
| 472 | /** |
| 473 | * Recognize a rectangle from an image and return the result as a string. |
no outgoing calls
no test coverage detected