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,deuorchi_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.traineddataand so on). Download the files fromhttps://github.com/tesseract-ocr/tessdata_fast(smaller, faster) ortessdata_best(more accurate).
- Variables
Other Tesseract variables to set, such as
tessedit_char_whitelistorpreserve_interword_spaces.