Interface: OcrEngine
Defined in: src/helpers/ocr/engine.ts:30
Pluggable OCR backend. The library calls recognize once per table cell and uses the returned text as the cell content. An exception or empty text marks the cell as "failed".
Methods
dispose()?
ts
optional dispose(): void | Promise<void>;Defined in: src/helpers/ocr/engine.ts:33
Release models and native resources. Called only for engines the library created itself.
Returns
void | Promise<void>
recognize()
ts
recognize(image): Promise<OcrResult>;Defined in: src/helpers/ocr/engine.ts:31
Parameters
image
Returns
Promise<OcrResult>