PointCoordinate3D Objects

class PointCoordinate3D()
Represents a 3D point coordinate, where all coordinates are a percentage relative to the total image size. Attributes:
  • x float - The x-coordinate of the point.
  • y float - The y-coordinate of the point.
  • z float - The z-coordinate of the point.

from_dict

@staticmethod
def from_dict(d: dict) -> PointCoordinate3D
Create a PointCoordinate3D instance from a dictionary. Arguments:
  • d dict - A dictionary containing 3d point coordinate information.
Returns:
  • PointCoordinate3D - An instance of PointCoordinate3D.

to_dict

def to_dict() -> dict
Convert the PointCoordinate instance to a dictionary. Returns:
  • dict - A dictionary representation of the point coordinate.