otx.cli.tools.utils.demo.visualization#
Visualisation module.
Functions
|
Converts predictions to bounding boxes and draws them on a frame. |
|
Converts predictions to masks and draw them on frame. |
|
Converts predictions to visual representations depending on task type and draws them on a frame. |
|
Converts predictions to text labels and puts them to the top left corner of a frame. |
|
Puts a text message on a black rectangular aread in specified position of a frame. |
- otx.cli.tools.utils.demo.visualization.draw_bounding_boxes(frame: Mat, predictions: List[Annotation], put_object_count: bool)[source]#
Converts predictions to bounding boxes and draws them on a frame.
- otx.cli.tools.utils.demo.visualization.draw_masks(frame: Mat, predictions, put_object_count: bool = False)[source]#
Converts predictions to masks and draw them on frame.
- otx.cli.tools.utils.demo.visualization.draw_predictions(task_type: TaskType, predictions: List[Annotation], frame: Mat, fit_to_size: Tuple[int, int])[source]#
Converts predictions to visual representations depending on task type and draws them on a frame.
- otx.cli.tools.utils.demo.visualization.put_labels(frame: Mat, predictions: List[Annotation])[source]#
Converts predictions to text labels and puts them to the top left corner of a frame.