你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

DocumentSelectionMark Class

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

Constructor

DocumentSelectionMark(**kwargs: Any)

Methods

from_dict

Converts a dict in the shape of a DocumentSelectionMark to the model itself.

to_dict

Returns a dict representation of DocumentSelectionMark.

from_dict

Converts a dict in the shape of a DocumentSelectionMark to the model itself.

from_dict(data: Dict) -> DocumentSelectionMark

Parameters

Name Description
data
Required

A dictionary in the shape of DocumentSelectionMark.

Returns

Type Description

DocumentSelectionMark

to_dict

Returns a dict representation of DocumentSelectionMark.

to_dict() -> Dict

Returns

Type Description

dict

Attributes

confidence

Confidence of correctly extracting the selection mark.

confidence: float

polygon

Bounding polygon of the selection mark.

polygon: Sequence[Point]

span

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

span: DocumentSpan

state

"selected", "unselected".

state: str