detectLanguages

public final String detectLanguages()

Detects the language and text direction of the document, fully offline, and exports the result. Runs the offline cascade (Tesseract OSD for script → script-model OCR → fastText for the specific language) on every page and reports one detection per page. Output format is determined by .

Return

JSON with the predicted language, text direction, and per-page detections.