concepts.hw_interface.george_vision.segmentation_models.InstanceSegmentationResult#

class InstanceSegmentationResult[source]#

Bases: object

InstanceSegmentationResult(masks: numpy.ndarray, pred_cls: List[str], pred_boxes: List[Tuple[Tuple[int, int], Tuple[int, int]]])

Methods

Attributes

nr_objects

masks

A numpy array of shape (N, H, W) and dtype bool.

pred_cls

A list of length N.

pred_boxes

A list of length N.

__init__(masks, pred_cls, pred_boxes)#
Parameters:
Return type:

None

__new__(**kwargs)#
masks: ndarray#

A numpy array of shape (N, H, W) and dtype bool.

property nr_objects: int#
pred_boxes: List[Tuple[Tuple[int, int], Tuple[int, int]]]#

A list of length N. Each element is a tuple of ((x1, y1), (x2, y2)).

pred_cls: List[str]#

A list of length N.