instancesegmentationprediction Kind
Prediction with detected bounding boxes and segmentation masks in form of sv.Detections(...) object.
Data representation
External
Internal
Details
sv.Detections(
xyxy=array([[ 127, 189, 322, 303]]),
mask=array([
[[False, False, False, ..., False, False, False],
[False, False, False, ..., False, False, False],
[False, False, False, ..., False, False, False],
...,
[False, False, False, ..., False, False, False],
[False, False, False, ..., False, False, False],
[False, False, False, ..., False, False, False]]
]),
confidence=array([ 0.95898]),
class_id=array([6]),
tracker_id=None,
data={
'class_name': array(['G'], dtype='<U1'),
'detection_id': array(['51dfa8d5-261c-4dcb-ab30-9aafe9b52379'], dtype='<U36'),
'parent_id': array(['image.[0]'], dtype='<U9'),
'image_dimensions': array([[425, 640]]),
'inference_id': array(['51dfa8d5-261c-4dcb-ab30-9aafe9b52379'], dtype='<U36'),
'prediction_type': array(['instance-segmentation'], dtype='<U16'),
'root_parent_id': array(['image.[0]'], dtype='<U9'),
'root_parent_coordinates': array([[0, 0]]),
'root_parent_dimensions': array([[425, 640]]),
'parent_coordinates': array([[0, 0]]),
'parent_dimensions': array([[425, 640]]),
'scaling_relative_to_parent': array([1]),
'scaling_relative_to_root_parent': array([1]),
}
)Last updated
Was this helpful?