Accessors
version
- get version(): string
Returns string
Methods
applyFilter
- applyFilter(imageBuffer, filterType): Promise<ArrayBuffer>
Returns Promise<ArrayBuffer>
createDocumentQualityAnalyzer
createOcrEngine
- createOcrEngine(options?): Promise<OcrEngine>
Parameters
Optional
options: {
mode: string;
}
createSimpleMRZRecognizer
cropAndRotateImageCcw
- cropAndRotateImageCcw(imageBuffer, polygon, rotations): Promise<any>
Parameters
imageBuffer: ArrayBuffer
rotations: number
Returns Promise<any>
detectBarcodes
- detectBarcodes(base64, engineMode?, barcodeFormats?, returnBarcodeImage?, gs1Handling?): Promise<BarcodeResult>
Parameters
base64: string
Optional
engineMode: EngineMode
Optional
barcodeFormats: BarcodeFormat[]
Optional
returnBarcodeImage: boolean
detectDocument
- detectDocument(imageBuffer, acceptedAngleScore?, acceptedSizeScore?, acceptedBrightnessThreshold?): Promise<ContourDetectionResult>
Parameters
imageBuffer: ArrayBuffer
Optional
acceptedAngleScore: number
Optional
acceptedSizeScore: number
Optional
acceptedBrightnessThreshold: number
release
- release(object, source?): Promise<void>
Parameters
object: any
Optional
source: string
Returns Promise<void>
rotateImageCcw
- rotateImageCcw(imageBuffer, rotations): Promise<ArrayBuffer>
Parameters
imageBuffer: ArrayBuffer
rotations: number
Returns Promise<ArrayBuffer>
toDataUrl
- toDataUrl(imageBuffer): Promise<string>
Returns Promise<string>
Deprecated
Use the new ImageProcessor API instead (see createImageProcessor).