Files
2026-02-17 14:58:53 -06:00

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;
}