Skip to content

Commit

Permalink
fix comment about default PSM
Browse files Browse the repository at this point in the history
  • Loading branch information
zdenop committed Mar 9, 2016
1 parent b1c1382 commit b46af6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ccstruct/publictypes.h
Expand Up @@ -153,11 +153,11 @@ enum PageSegMode {
PSM_AUTO_OSD, ///< Automatic page segmentation with orientation and
///< script detection. (OSD)
PSM_AUTO_ONLY, ///< Automatic page segmentation, but no OSD, or OCR.
PSM_AUTO, ///< Fully automatic page segmentation, but no OSD.
PSM_AUTO, ///< Fully automatic page segmentation, but no OSD. (Default)
PSM_SINGLE_COLUMN, ///< Assume a single column of text of variable sizes.
PSM_SINGLE_BLOCK_VERT_TEXT, ///< Assume a single uniform block of vertically
///< aligned text.
PSM_SINGLE_BLOCK, ///< Assume a single uniform block of text. (Default.)
PSM_SINGLE_BLOCK, ///< Assume a single uniform block of text.
PSM_SINGLE_LINE, ///< Treat the image as a single text line.
PSM_SINGLE_WORD, ///< Treat the image as a single word.
PSM_CIRCLE_WORD, ///< Treat the image as a single word in a circle.
Expand Down

2 comments on commit b46af6d

@amitdo
Copy link
Collaborator

@amitdo amitdo commented on b46af6d Mar 9, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @zdenop

For historical reasons, the default psm in libtesseract is PSM_SINGLE_BLOCK.
The default psm when using the 'tesseract' command is PSM_AUTO.

tesseract::PageSegMode pagesegmode = tesseract::PSM_AUTO;

// The default for pageseg_mode is the old behaviour, so as not to

@zdenop
Copy link
Contributor Author

@zdenop zdenop commented on b46af6d Mar 10, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ups - I was misleaded by tesseract (executable)... Thanks for check.

Please sign in to comment.