blob: 8b441377fae4c22ece83f2918342d527f647d3e9 [file] [log] [blame]
// 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);
};