Automatic update from web-platform-tests Sync interfaces/ with @webref/idl 3.73.1 (#58070) Co-authored-by: wpt-pr-bot <wpt-pr-bot@users.noreply.github.com> -- wpt-commits: 543c4ebdc3d1d4a13cd93cd592bc67f22cdeba80 wpt-pr: 58070
30 lines
894 B
Plaintext
30 lines
894 B
Plaintext
// GENERATED CONTENT - DO NOT EDIT
|
|
// Content was automatically extracted by Reffy into webref
|
|
// (https://github.com/w3c/webref)
|
|
// Source: Accelerated Text Detection in Images (https://wicg.github.io/shape-detection-api/text.html)
|
|
|
|
dictionary TextDetectorOptions {
|
|
required sequence<DOMString> languages;
|
|
};
|
|
|
|
dictionary TextDetectorCreateOptions {
|
|
AbortSignal signal;
|
|
sequence<DOMString> languages;
|
|
};
|
|
|
|
[
|
|
Exposed=(Window,Worker),
|
|
SecureContext
|
|
] interface TextDetector {
|
|
constructor();
|
|
static Promise<Availability> availability(TextDetectorOptions options);
|
|
static Promise<TextDetector> create(optional TextDetectorCreateOptions options = {});
|
|
Promise<sequence<DetectedText>> detect(ImageBitmapSource image);
|
|
};
|
|
|
|
dictionary DetectedText {
|
|
required DOMRectReadOnly boundingBox;
|
|
required DOMString rawValue;
|
|
required sequence<Point2D> cornerPoints;
|
|
};
|