Skip to main content

Visual Grounding Demo

See grounding on the driver’s license playground.
Grounding adds a bounding box and a confidence score to each extracted field.

Driver's license with visual grounding enabled.

How Visual Grounding Works

With grounding enabled, vlm-1 returns location data for each Pydantic field in *_metadata. Coordinates use normalized xywh. See Bounding Box.

Using Visual Grounding

Set grounding to True in GenerationConfig.

Understanding the Output

1. Confidence Levels: *_metadata.confidence

One value per field:
  • hi: high confidence in the extraction
  • med: medium confidence, some uncertainty
  • low: low confidence, possible inaccuracy

2. Bounding Box: *_metadata.bboxes

Each xywh value is between 0 and 1.

Visual Grounding on a Document

*_metadata.bboxes can contain more than one box. Each box includes page.

Try our Document -> JSON API today

Open Document -> JSON on VLM Run. Sign up on the platform.