mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-23 18:49:08 +08:00
Fix documentation for page segmentation mode 2
It never worked, so add a comment that the implementation is missing. Add also a to-do comment. Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
62b857554a
commit
a0e6586e63
@ -67,7 +67,7 @@ OPTIONS
|
||||
|
||||
0 = Orientation and script detection (OSD) only.
|
||||
1 = Automatic page segmentation with OSD.
|
||||
2 = Automatic page segmentation, but no OSD, or OCR.
|
||||
2 = Automatic page segmentation, but no OSD, or OCR. (not implemented)
|
||||
3 = Fully automatic page segmentation, but no OSD. (Default)
|
||||
4 = Assume a single column of text of variable sizes.
|
||||
5 = Assume a single uniform block of vertically aligned text.
|
||||
|
@ -129,7 +129,7 @@ static void PrintHelpForPSM() {
|
||||
"Page segmentation modes:\n"
|
||||
" 0 Orientation and script detection (OSD) only.\n"
|
||||
" 1 Automatic page segmentation with OSD.\n"
|
||||
" 2 Automatic page segmentation, but no OSD, or OCR.\n"
|
||||
" 2 Automatic page segmentation, but no OSD, or OCR. (not implemented)\n"
|
||||
" 3 Fully automatic page segmentation, but no OSD. (Default)\n"
|
||||
" 4 Assume a single column of text of variable sizes.\n"
|
||||
" 5 Assume a single uniform block of vertically aligned text.\n"
|
||||
@ -646,6 +646,8 @@ int main(int argc, char** argv) {
|
||||
|
||||
const tesseract::PageIterator* it = api.AnalyseLayout();
|
||||
if (it) {
|
||||
// TODO: Implement output of page segmentation, see documentation
|
||||
// ("Automatic page segmentation, but no OSD, or OCR").
|
||||
it->Orientation(&orientation, &direction, &order, &deskew_angle);
|
||||
tprintf(
|
||||
"Orientation: %d\nWritingDirection: %d\nTextlineOrder: %d\n"
|
||||
|
Loading…
Reference in New Issue
Block a user