Skip to Content
SdkReactHooksUseOCRResult

UseOCRResult

Defined in: src/react/useOCR.ts:15 

Result returned by the useOCR hook.

Properties

error

error: Error | null

Defined in: src/react/useOCR.ts:21 

Error from the last OCR extraction attempt


extractOCRContext()

extractOCRContext: (files: OCRFile[]) => Promise<string | null>

Defined in: src/react/useOCR.ts:17 

Extract text from images using OCR

Parameters

ParameterType

files

OCRFile[]

Returns

Promise<string | null>


isProcessing

isProcessing: boolean

Defined in: src/react/useOCR.ts:19 

Whether OCR processing is in progress

Last updated on