Version:
interface
ReadTextConfig
Configuration options for screen.read().
typescript
interface ReadTextConfigProperties
| Name | Type | Description |
|---|---|---|
languages? | Language[] | Tesseract languages to use for recognition. Defaults to English. |
preprocessConfig? | ImagePreprocessingConfig | Image 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? | TextSplit | Controls how recognized text is split into results (by block, paragraph, line, word, or symbol). |
Was this page helpful?