blob: 03a6dd12407d1514a730b2af4ab4eee0ec1c164d [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
[
Constructor(optional FaceDetectorOptions faceDetectorOptions),
ConstructorCallWith=Document,
RuntimeEnabled=ShapeDetection,
] interface FaceDetector {
[CallWith=ScriptState] Promise<sequence<DetectedObject>> detect(CanvasImageSource image);
};