DocumentSelectionMarkOutput interface

A selection mark object representing check boxes, radio buttons, and other elements indicating a selection.

Properties

confidence

Confidence of correctly extracting the selection mark.

polygon

Bounding polygon of the selection mark, with coordinates specified relative to the top-left of the page. The numbers represent the x, y values of the polygon vertices, clockwise from the left (-180 degrees inclusive) relative to the element orientation.

span

Location of the selection mark in the reading order concatenated content.

state

State of the selection mark.

Possible values: "selected", "unselected"

Property Details

confidence

Confidence of correctly extracting the selection mark.

confidence: number

Property Value

number

polygon

Bounding polygon of the selection mark, with coordinates specified relative to the top-left of the page. The numbers represent the x, y values of the polygon vertices, clockwise from the left (-180 degrees inclusive) relative to the element orientation.

polygon?: number[]

Property Value

number[]

span

Location of the selection mark in the reading order concatenated content.

span: DocumentSpanOutput

Property Value

state

State of the selection mark.

Possible values: "selected", "unselected"

state: string

Property Value

string