12 lines
408 B
TypeScript
12 lines
408 B
TypeScript
import type { IDetectedBarcode, IBarcodeDetector } from './models';
|
|
export declare class BarcodeDetector implements IBarcodeDetector {
|
|
private reader;
|
|
constructor(options?: {
|
|
formats: string[];
|
|
});
|
|
static getSupportedFormats(): Promise<string[]>;
|
|
detect(imageSource: ImageBitmapSource): Promise<IDetectedBarcode[]>;
|
|
private blobToImage;
|
|
private imageDataSourceToCanvas;
|
|
}
|