Files
sousa-gecko/testing/web-platform/tests/interfaces/text-detection-api.idl
T
github-actions[bot] 89c50195ad Bug 2019573 [wpt PR 58070] - Sync interfaces/ with @webref/idl 3.73.1, a=testonly
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
2026-03-10 15:41:30 +00:00

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;
};