tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

shape-detection-api.idl (1515B)


      1 // GENERATED CONTENT - DO NOT EDIT
      2 // Content was automatically extracted by Reffy into webref
      3 // (https://github.com/w3c/webref)
      4 // Source: Accelerated Shape Detection in Images (https://wicg.github.io/shape-detection-api/)
      5 
      6 [Exposed=(Window,Worker),
      7 SecureContext]
      8 interface FaceDetector {
      9  constructor(optional FaceDetectorOptions faceDetectorOptions = {});
     10  Promise<sequence<DetectedFace>> detect(ImageBitmapSource image);
     11 };
     12 
     13 dictionary FaceDetectorOptions {
     14  unsigned short maxDetectedFaces;
     15  boolean fastMode;
     16 };
     17 
     18 dictionary DetectedFace {
     19  required DOMRectReadOnly boundingBox;
     20  required sequence<Landmark>? landmarks;
     21 };
     22 
     23 dictionary Landmark {
     24  required sequence<Point2D> locations;
     25  LandmarkType type;
     26 };
     27 
     28 enum LandmarkType {
     29  "mouth",
     30  "eye",
     31  "nose"
     32 };
     33 
     34 [Exposed=(Window,Worker),
     35 SecureContext]
     36 interface BarcodeDetector {
     37  constructor(optional BarcodeDetectorOptions barcodeDetectorOptions = {});
     38  static Promise<sequence<BarcodeFormat>> getSupportedFormats();
     39 
     40  Promise<sequence<DetectedBarcode>> detect(ImageBitmapSource image);
     41 };
     42 
     43 dictionary BarcodeDetectorOptions {
     44  sequence<BarcodeFormat> formats;
     45 };
     46 
     47 dictionary DetectedBarcode {
     48  required DOMRectReadOnly boundingBox;
     49  required DOMString rawValue;
     50  required BarcodeFormat format;
     51  required sequence<Point2D> cornerPoints;
     52 };
     53 
     54 enum BarcodeFormat {
     55  "aztec",
     56  "code_128",
     57  "code_39",
     58  "code_93",
     59  "codabar",
     60  "data_matrix",
     61  "ean_13",
     62  "ean_8",
     63  "itf",
     64  "pdf417",
     65  "qr_code",
     66  "unknown",
     67  "upc_a",
     68  "upc_e"
     69 };