setMaxScripts

public final void setMaxScripts(int value)

Maximum number of writing scripts to recognize on a page during offline language detection (and the "auto" OCR path). The default, 1, recognizes only the dominant script (no script mixing) — fastest, and the original behavior. Raise it (e.g. 2) to handle cross-script documents such as Cyrillic + Han, where the page is OCR'd with each detected script's model.

Parameters

value

The value to set for the MaxScripts property.