get_actual_box method

get_actual_box(self)

Get the actual position and size of the shape (after applying rotation, flip, etc.)

Returns

Return the position and size in the order of x, y, w, h


def get_actual_box(self):
    ...

Remarks

Note:The interface is not fully functional, especially the location information is not correct.It is recommended not to use this interface until the function is complete.

Example


box = shape.get_actual_box()
print("x = "  + str(box[0]))
print("y = "  + str(box[1]))
print("w = "  + str(box[2]))
print("h = "  + str(box[3]))

See Also