Shortcuts

Learn about Visualization

Local Visualization

This section will present how to visualize the detection/tracking results with local visualizer.

If you want to draw prediction results, you can turn this feature on by setting draw=True in TrackVisualizationHook as follows.

default_hooks = dict(visualization=dict(type='TrackVisualizationHook', draw=True))

Specifically, the TrackVisualizationHook has the following arguments:

  • draw: whether to draw prediction results. If it is False, it means that no drawing will be done. Defaults to False.

  • interval: The interval of visualization. Defaults to 30.

  • score_thr: The threshold to visualize the bboxes and masks. Defaults to 0.3.

  • show: Whether to display the drawn image. Default to False.

  • wait_time: The interval of show (s). Defaults to 0.

  • test_out_dir: directory where painted images will be saved in testing process.

  • backend_args: Arguments to instantiate a file client. Defaults to None.

In the TrackVisualizationHook, TrackLocalVisualizer will be called to implement visualization for MOT and VIS tasks. We will present the details below. You can refer to MMEngine for more details about Visualization and Hook.

Tracking Visualization

We realize the tracking visualization with class TrackLocalVisualizer. You can call it as follows.

visualizer = dict(type='TrackLocalVisualizer')

It has the following arguments:

  • name: Name of the instance. Defaults to ‘visualizer’.

  • image: The origin image to draw. The format should be RGB. Defaults to None.

  • vis_backends: Visual backend config list. Defaults to None.

  • save_dir: Save file dir for all storage backends. If it is None, the backend storage will not save any data.

  • line_width: The linewidth of lines. Defaults to 3.

  • alpha: The transparency of bboxes or mask. Defaults to 0.8.

Here is a visualization example of DeepSORT:

test_img_89

Read the Docs v: latest
Versions
latest
stable
3.x
v3.3.0
v3.2.0
v3.1.0
v3.0.0
v3.0.0rc0
v2.28.2
v2.28.1
v2.28.0
v2.27.0
v2.26.0
v2.25.3
v2.25.2
v2.25.1
v2.25.0
v2.24.1
v2.24.0
v2.23.0
v2.22.0
v2.21.0
v2.20.0
v2.19.1
v2.19.0
v2.18.1
v2.18.0
v2.17.0
v2.16.0
v2.15.1
v2.15.0
v2.14.0
v2.13.0
v2.12.0
v2.11.0
v2.10.0
v2.9.0
v2.8.0
v2.7.0
v2.6.0
v2.5.0
v2.4.0
v2.3.0
v2.2.1
v2.2.0
v2.1.0
v2.0.0
v1.2.0
test-3.0.0rc0
main
dev-3.x
dev
Downloads
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.