Victor Porof | 6e09692 | 2022-06-10 13:01:05 +0000 | [diff] [blame^] | 1 | // GENERATED CONTENT - DO NOT EDIT |
| 2 | // Content was automatically extracted by Reffy into webref |
| 3 | // (https://github.com/w3c/webref) |
| 4 | // Source: Accelerated Text Detection in Images (https://wicg.github.io/shape-detection-api/text.html) |
| 5 | |
| 6 | [ |
| 7 | Exposed=(Window,Worker), |
| 8 | SecureContext |
| 9 | ] interface TextDetector { |
| 10 | constructor(); |
| 11 | Promise<sequence<DetectedText>> detect(ImageBitmapSource image); |
| 12 | }; |
| 13 | |
| 14 | dictionary DetectedText { |
| 15 | required DOMRectReadOnly boundingBox; |
| 16 | required DOMString rawValue; |
| 17 | required FrozenArray<Point2D> cornerPoints; |
| 18 | }; |