class_docstr: Tracking Local Visualizer for the MOT, VIS tasks.
  
  Args:
      name (str): Name of the instance. Defaults to 'visualizer'.
      image (np.ndarray, optional): the origin image to draw. The format
          should be RGB. Defaults to None.
      vis_backends (list, optional): Visual backend config list.
          Defaults to None.
      save_dir (str, optional): Save file dir for all storage backends.
          If it is None, the backend storage will not save any data.
      line_width (int, float): The linewidth of lines.
          Defaults to 3.
      alpha (int, float): The transparency of bboxes or mask.
              Defaults to 0.8.
class_docstr_tok: ["Tracking","Local","Visualizer","for","the","MOT",",","VIS","tasks",".","Args",":","name","(","str",")",":","Name","of","the","instance",".","Defaults","to","'visualizer","'",".","image","(","np.ndarray",",","optional",")",":","the","origin","image","to","draw",".","The","format","should","be","RGB",".","Defaults","to","None",".","vis_backends","(","list",",","optional",")",":","Visual","backend","config","list",".","Defaults","to","None",".","save_dir","(","str",",","optional",")",":","Save","file","dir","for","all","storage","backends",".","If","it","is","None",",","the","backend","storage","will","not","save","any","data",".","line_width","(","int",",","float",")",":","The","linewidth","of","lines",".","Defaults","to","3.","alpha","(","int",",","float",")",":","The","transparency","of","bboxes","or","mask",".","Defaults","to","0.8","."]
code: def __init__(
      self,
      name: str = "visualizer",
      image: Optional[np.ndarray] = None,
      vis_backends: Optional[Dict] = None,
      save_dir: Optional[str] = None,
      line_width: Union[int, float] = 3,
      alpha: float = 0.8,
  ) -> None:
      super().__init__(name, image, vis_backends, save_dir)
      self.line_width = line_width
      self.alpha = alpha
      # Set default value. When calling
      # `TrackLocalVisualizer().dataset_meta=xxx`,
      # it will override the default value.
      self.dataset_meta = {}
  
imports: from typing import Dict, List, Optional, Tuple, Union
  import cv2
  import mmcv
  import numpy
  import torch
  from mmengine.dist import master_only
  from mmengine.structures import InstanceData, PixelData
  from mmengine.visualization import Visualizer
  from ..evaluation import INSTANCE_OFFSET
  from ..registry import VISUALIZERS
  from ..structures import DetDataSample
  from ..structures.mask import BitmapMasks, PolygonMasks, bitmap_to_polygon
  from .palette import _get_adaptive_scales, get_palette, jitter_color
label_desc: Use image node_id 1 to create a new TrackLocalVisualizer object from inherited base classes: Visualizer with example: obj = TrackLocalVisualizer(name, image, vis_backends, save_dir, line_width, alpha)