barcode-detection
Version:
Polyfill for the Barcode Detection API based on Dynamsoft Barcode Reader or ZXing.
15 lines (14 loc) • 706 B
TypeScript
import { BarcodeReader, TextResult } from "dynamsoft-javascript-barcode";
import { BarcodeDetectorOptions, BarcodeFormat, DetectedBarcode } from "./Definitions";
export default class BarcodeDetectorDBR {
private formats;
constructor(barcodeDetectorOptions?: BarcodeDetectorOptions);
updateRuntimeSettings(): Promise<void>;
static setEngineResourcePath(path: string): void;
static setLicense(license: string): void;
static getLicense(): string;
static init(): Promise<BarcodeReader>;
static getSupportedFormats(): Promise<BarcodeFormat[]>;
detect(image: ImageBitmapSource): Promise<DetectedBarcode[]>;
wrapResult(result: TextResult): DetectedBarcode;
}