Version:
interface

ReadTextConfig

Configuration options for screen.read().

typescript
interface ReadTextConfig

Properties

NameTypeDescription
languages?Language[]Tesseract languages to use for recognition. Defaults to English.
preprocessConfig?ImagePreprocessingConfigImage preprocessing options applied before OCR (border, grayscale, binarization, etc.).
searchRegion?Region | Promise<Region>Restrict OCR to a specific screen region. Defaults to the full screen.
split?TextSplitControls how recognized text is split into results (by block, paragraph, line, word, or symbol).

Was this page helpful?