Constructors
constructor
- new WorkerOcrEngine(getWasmModule): WorkerOcrEngine
Parameters
getWasmModule: (() => any)
Methods
destroy
- destroy(instanceId): Promise<void>
Returns Promise<void>
run
- run(instanceId, image): Promise<{
originalImage: Image;
result: Page;
}> Returns Promise<{
originalImage: Image;
result: Page;
}>
This class is used inside the JS Worker and interacts directly with the WASM.