Point Class

The x, y coordinate of a point on a bounding box or polygon.

New in version v2.1: Support for to_dict and from_dict methods

Inheritance
azure.ai.formrecognizer._models.Point
Point

Constructor

Point(x: float, y: float)

Parameters

Name Description
x
Required
y
Required

Methods

count

Return number of occurrences of value.

from_dict

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

index

Return first index of value.

Raises ValueError if the value is not present.

to_dict

Returns a dict representation of Point.

count

Return number of occurrences of value.

count(value, /)

Positional-Only Parameters

Name Description
value
Required

from_dict

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

from_dict(data: Dict) -> Point

Positional-Only Parameters

Name Description
value
Required

Parameters

Name Description
data
Required

A dictionary in the shape of Point.

Returns

Type Description

Point

index

Return first index of value.

Raises ValueError if the value is not present.

index(value, start=0, stop=9223372036854775807, /)

Positional-Only Parameters

Name Description
value
Required
start
default value: 0
stop
default value: 9223372036854775807

to_dict

Returns a dict representation of Point.

to_dict() -> Dict

Positional-Only Parameters

Name Description
value
Required

Returns

Type Description

dict

Attributes

x

x-coordinate

x: float

y

y-coordinate

y: float