Class TesseractOcrOptions

Namespace
SoftZenPdf.Ocr
Assembly
SoftZenPdf.Ocr.dll

Settings for TesseractOcrEngine.

public sealed class TesseractOcrOptions
Inheritance
TesseractOcrOptions
Inherited Members

Properties

Languages

The languages to recognise, as Tesseract language codes such as eng, deu or chi_sim. Defaults to English.

MinimumConfidence

Words with a confidence (0 to 100) below this are left out of the results. Defaults to 0, which keeps every word.

PageSegmentation

How the image is divided into text. Defaults to Auto.

Resolution

The resolution in pixels per inch to assume for every image, overriding the one stored in the file. Leave null to use the file's resolution, or to let Tesseract estimate it from the text size when the file has none.

TessDataPath

The folder holding the language data (eng.traineddata and so on). Download the files from https://github.com/tesseract-ocr/tessdata_fast (smaller, faster) or tessdata_best (more accurate).

Variables

Other Tesseract variables to set, such as tessedit_char_whitelist or preserve_interword_spaces.