Interface TesseractArgs

Tesseract OCR specific options that the user might want to use in order to tweak the performance or outcomes

Please refer to the CLI docs https://tesseract-ocr.github.io/tessdoc/Command-Line-Usage.html for details of particular settings.

interface TesseractArgs {
    lang?: string;
    oem?: number;
    psm?: number;
}

Properties

Properties

lang?: string

The language that the OCR should use when trying to extract text from the image

oem?: number

Determine which of the OCR engines should be used in Tesseract 5

psm?: number

Determine which page segmentation model should be used

Generated using TypeDoc