class_docstr: Tracker for OC-SORT.
  
  Args:
      motion (dict): Configuration of motion. Defaults to None.
      obj_score_thrs (float): Detection score threshold for matching objects.
          Defaults to 0.3.
      init_track_thr (float): Detection score threshold for initializing a
          new tracklet. Defaults to 0.7.
      weight_iou_with_det_scores (bool): Whether using detection scores to
          weight IOU which is used for matching. Defaults to True.
      match_iou_thr (float): IOU distance threshold for matching between two
          frames. Defaults to 0.3.
      num_tentatives (int, optional): Number of continuous frames to confirm
          a track. Defaults to 3.
      vel_consist_weight (float): Weight of the velocity consistency term in
          association (OCM term in the paper).
      vel_delta_t (int): The difference of time step for calculating of the
          velocity direction of tracklets.
      init_cfg (dict or list[dict], optional): Initialization config dict.
          Defaults to None.
code: def __init__(
      self,
      motion: Optional[dict] = None,
      obj_score_thr: float = 0.3,
      init_track_thr: float = 0.7,
      weight_iou_with_det_scores: bool = True,
      match_iou_thr: float = 0.3,
      num_tentatives: int = 3,
      vel_consist_weight: float = 0.2,
      vel_delta_t: int = 3,
      **kwargs,
  ):
      if lap is None:
          raise RuntimeError(
              "lap is not installed,\
                   please install it by: pip install lap"
          )
      super().__init__(motion=motion, **kwargs)
      self.obj_score_thr = obj_score_thr
      self.init_track_thr = init_track_thr
  
      self.weight_iou_with_det_scores = weight_iou_with_det_scores
      self.match_iou_thr = match_iou_thr
      self.vel_consist_weight = vel_consist_weight
      self.vel_delta_t = vel_delta_t
  
      self.num_tentatives = num_tentatives
  
imports: from typing import List, Optional, Tuple
  import numpy
  import torch
  from addict import Dict
  from mmengine.structures import InstanceData
  from mmdet.registry import MODELS
  from mmdet.structures import DetDataSample
  from mmdet.structures.bbox import bbox_cxcyah_to_xyxy, bbox_overlaps, bbox_xyxy_to_cxcyah
  from .sort_tracker import SORTTracker
label_desc: Use image node_id 1 to create a new OCSORTTracker object from inherited base classes: SORTTracker with example: obj = OCSORTTracker(motion, obj_score_thr, init_track_thr, weight_iou_with_det_scores, match_iou_thr, num_tentatives, vel_consist_weight, vel_delta_t)