bboxlabeling
bboxlabeling ¶
Module for ObjDetInstanceLabel
Classes¶
ObjDetImageLabel ¶
Labels of all ObjDetInstanceLabels on an image file
ObjDetInstanceLabel ¶
Bases: InstanceLabel
Label information for one specific bounding box and its prediction score
Functions¶
calc_iou ¶
Calculates the IOU of two given ObjDetInstanceLabel
s bounding boxes
Parameters:
-
other
(ObjDetInstanceLabel
) –ObjDetInstanceLabel to calculate the IOU for
Returns:
-
float
–Calculated IOU
Source code in niceml/utilities/boundingboxes/bboxlabeling.py
scale_label ¶
Scales an ObjDetInstanceLabel by a given scale_factor
Parameters:
-
scale_factor
(float
) –Factor to scale the ObjDetInstanceLabel by
Returns:
-
ObjDetInstanceLabel
–Scaled instance of this ObjDetInstanceLabel
Source code in niceml/utilities/boundingboxes/bboxlabeling.py
to_content_list ¶
Creates a list with the contents of the ObjDetInstanceLabel in the following order: 1. all bounding boxes (separately), 2. class name, 3. class index, 4. prediction score, 5. rotation
Source code in niceml/utilities/boundingboxes/bboxlabeling.py
Functions¶
dict_to_objdet_instance_label ¶
Converts a list of dicts to a list of ObjDetInstanceLabels
Source code in niceml/utilities/boundingboxes/bboxlabeling.py
obj_instance_factory_from_content_list ¶
Creates an ObjDetInstanceLabel from a list of values. Correct order of 'content_list' required: idx 0-3: ullr coordinates, idx 4: class_name, idx 5: class_idx, idx 6: prediction score, idx 7: rotation