blob: 82c53e842c4cefe1515ff5ac44b9f50f68f3d131 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// Copyright 2017 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/text.html#text-detection-api
[
Exposed=(Window,Worker),
SecureContext,
RuntimeEnabled=TextDetector
] interface TextDetector {
[CallWith=ExecutionContext, MeasureAs=ShapeDetection_TextDetectorConstructor] constructor();
[CallWith=ScriptState, MeasureAs=ShapeDetectionAPI] Promise<sequence<DetectedText>> detect(ImageBitmapSource image);
};
|