Skip to content

Commit

Permalink
fix: add psm to options
Browse files Browse the repository at this point in the history
  • Loading branch information
prateekmedia authored Aug 23, 2024
1 parent 47b3757 commit bc8c86f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/rust/lib_ccxr/src/common/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,8 @@ pub struct Options {
pub ocrlang: PathBuf,
/// The Tesseract OEM mode, could be 0 (default), 1 or 2
pub ocr_oem: u8,
/// The Tesseract PSM mode, could be between 0 and 13. 3 is tesseract default
pub psm: i32,
/// How to quantize the bitmap before passing to to tesseract
/// (0 = no quantization at all, 1 = CCExtractor's internal,
/// 2 = reduce distinct color count in image for faster results.)
Expand Down

0 comments on commit bc8c86f

Please sign in to comment.