Point

class scenebox.models.annotation.Point(label=None, uid=None, confidence=None, attributes=None, left=None, top=None, category_id=None, geometry=None)

Holds the coordinates and metadata of a single keypoint.

Several Points can be compiled together to form a PointAnnotation. Specifying a list of Points is also necessary to create a Pose.

Variables:
  • left – x coordinate of the point. Must be positive.

  • top – y coordinate of the point. Must be positive.

  • label – Name of the point.

  • category_id – Label category ID.

  • confidence – Labelling confidence. Must be between 0 and 1.

  • geometry – If available should be “point”.

  • attributes – Additional point metadata.

Methods

to_dic

return a dictionary object representative of Point :return: dictionary object

to_dic()

return a dictionary object representative of Point :return: dictionary object