// Accelerated Text Detection in Images // Specification: https://wicg.github.io/shape-detection-api/text // Repository: https://github.com/WICG/shape-detection-api /// interface TextDetector { detect(image: ImageBitmapSource): Promise; } declare var TextDetector: { prototype: TextDetector; new(): TextDetector; }; interface DetectedText { boundingBox: DOMRectReadOnly; rawValue: string; cornerPoints: ReadonlyArray; }