WebIDLpedia

BarcodeDetector interface

Definition

Accelerated Shape Detection in Images defines BarcodeDetector



[Exposed=(Window,Worker),
 SecureContext]
interface BarcodeDetector {
  constructor(optional BarcodeDetectorOptions barcodeDetectorOptions = {});
  static Promise<sequence<BarcodeFormat>> getSupportedFormats();

  Promise<sequence<DetectedBarcode>> detect(ImageBitmapSource image);
};

Methods and attributes that return objects implementing BarcodeDetector