Visual Grounding Demo
See grounding on the driver’s license playground.

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
Setgrounding to True in GenerationConfig.
Understanding the Output
1. Confidence Levels: *_metadata.confidence
One value per field:
hi: high confidence in the extractionmed: medium confidence, some uncertaintylow: 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.
Tutorial: Visual Grounding Notebook.