Skip to main content

Module ai

Module ai 

Source

Structs§

BlurRegion
LlmResponse
OcrProgressPayload
OcrRegion
OcrResult
TessdataProgressPayload

Functions§

analyze_llm
auto_blur_pii
download_tessdata
Download the tessdata file for lang from the Tesseract GitHub release. No-ops if the file is already present. Emits tessdata:progress events with { lang, downloaded, total } (total=0 when content-length is unknown).
resolve_tessdata_path
Resolve the tessdata directory path for the given language.
run_ocr
tessdata_available
Return whether the traineddata file for lang is available locally.