Combination of flags from layoutFlags
WebAssembly binary to load. This can be used to customize how the binary URL is determined and fetched. supportsFastBuild can be used to determine which build to load.
WebAssembly binary to load in worker. If not set, it is loaded from the default location relative to the current script.
Location of worker script/module. If not set, it is loaded from the default location relative to the current script.
Callback that creates the worker. The default implementation creates a Web Worker.
Result of orientation detection.
Confidence value in [0, 1]
Handler that receives OCR operation progress updates.
Item of text found in a document image by layout analysis and OCR.
Confidence score for this word in [0, 1]
Combination of flags from layoutFlags
Flags indicating position of a text item.
Keep this in sync with LayoutFlags
in lib.cpp.
Initialize the OCR library and return a new OCREngine.
Return true if the current JS runtime supports all the WebAssembly features needed for the "fast" WebAssembly build. If not, the "fallback" version must be used.
Generated using TypeDoc
Item of text found in a document image by layout analysis.