chromium/third_party/blink/renderer/modules/shapedetection/face_detector.idl

// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// https://wicg.github.io/shape-detection-api/#face-detection-api

[
    Exposed=(Window,Worker),
    SecureContext,
    RuntimeEnabled=FaceDetector
] interface FaceDetector {
    [CallWith=ExecutionContext] constructor(optional FaceDetectorOptions faceDetectorOptions = {});
    [CallWith=ScriptState, MeasureAs=FaceDetectorDetect, RaisesException] Promise<sequence<DetectedFace>> detect(ImageBitmapSource image);
};