Skip to main content
How a screenshot-relative (x, y) coordinate is expressed: as absolute screenshot-image pixels or normalized to a fixed range. Construct one with [ScreenshotCoordinateType.absolute] or [ScreenshotCoordinateType.normalized].

Constructor

Returns

ScreenshotCoordinateType

Methods

absolute()

Coordinates are in screenshot image pixels (valid range: 0..=image_width-1).

Returns

ScreenshotCoordinateType

normalized()

Coordinates are normalized to a fixed range. Many VLMs (Qwen-VL, UI-TARS, etc.) output grounding coordinates in [0, range] rather than in pixel space. range specifies the inclusive upper bound (e.g. 1000, meaning valid coordinates are 0..=1000).

Parameters

number
required

Returns

ScreenshotCoordinateType