blob: 6594c4e473450a75ea9ee739ab7b2ee0b871b417 [file] [log] [blame]
// Copyright 2016 The Chromium Authors. All rights reserved.
// 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] Promise<sequence<DetectedFace>> detect(ImageBitmapSource image);
};