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.PointPoint
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
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure SDK for Python