Interface VisionTextRegion

A detected text region within an image, with spatial coordinates and per-region confidence.

interface VisionTextRegion {
    text: string;
    confidence: number;
    bbox: {
        x: number;
        y: number;
        width: number;
        height: number;
    };
}

Properties

Properties

text: string

The text content within this region.

confidence: number

Confidence score for this specific region (0–1).

bbox: {
    x: number;
    y: number;
    width: number;
    height: number;
}

Bounding box in image coordinates (pixels). Origin is top-left corner of the image.

Type declaration

  • x: number
  • y: number
  • width: number
  • height: number