Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 1.02 KB

File metadata and controls

33 lines (24 loc) · 1.02 KB

Polygon

Bounding box polygon.

Properties

Name Type Description Notes
x int The x-coordinate of the top-left corner of the bounding box.
y int The y-coordinate of the top-left corner of the bounding box.
width int The width of the bounding box.
height int The height of the bounding box.

Example

from ksapi.models.polygon import Polygon

# TODO update the JSON string below
json = "{}"
# create an instance of Polygon from a JSON string
polygon_instance = Polygon.from_json(json)
# print the JSON string representation of the object
print(Polygon.to_json())

# convert the object into a dict
polygon_dict = polygon_instance.to_dict()
# create an instance of Polygon from a dict
polygon_from_dict = Polygon.from_dict(polygon_dict)

[Back to Model list] [Back to API list] [Back to README]