Pointcloud Figure¶
-
class
supervisely_lib.pointcloud_annotation.pointcloud_figure.
PointcloudFigure
(parent_object, geometry, frame_index=None, key=None, class_id=None, labeler_login=None, updated_at=None, created_at=None)[source]¶ Bases:
supervisely_lib.video_annotation.video_figure.VideoFigure
This is a class for creating and using PointcloudFigure objects for videos
-
validate_bounds
(img_size, _auto_correct=False)[source]¶ Checks if given image with given size contains a figure.
- Parameters
img_size (Tuple[int, int]) – Size of the image (height, width).
_auto_correct (bool, optional) – Correct the geometry of a shape if it is out of bounds or not.
- Raises
OutOfImageBoundsExtension
, if figure is out of image bounds- Returns
None
- Return type
NoneType
- Usage Example
obj_class_car = sly.ObjClass('car', sly.Rectangle) video_obj_car = sly.VideoObject(obj_class_car) fr_index = 7 geometry = sly.Rectangle(0, 0, 100, 100) video_figure_car = sly.VideoFigure(video_obj_car, geometry, fr_index) im_size = (50, 200) video_figure_car.validate_bounds(im_size) # raise OutOfImageBoundsExtension("Figure is out of image bounds")
-