class_docstr: Class to standardize Drawable objects like Detections and TrackedObjects
  
  Parameters
  ----------
  obj : Union[Detection, TrackedObject], optional
      A [Detection][norfair.tracker.Detection] or a [TrackedObject][norfair.tracker.TrackedObject]
      that will be used to initialized the drawable.
      If this parameter is passed, all other arguments are ignored
  points : np.ndarray, optional
      Points included in the drawable, shape is `(N_points, N_dimensions)`. Ignored if `obj` is passed
  id : Any, optional
      Id of this object. Ignored if `obj` is passed
  label : Any, optional
      Label specifying the class of the object. Ignored if `obj` is passed
  scores : np.ndarray, optional
      Confidence scores of each point, shape is `(N_points,)`. Ignored if `obj` is passed
  live_points : np.ndarray, optional
      Bolean array indicating which points are alive, shape is `(N_points,)`. Ignored if `obj` is passed
  
  Raises
  ------
  ValueError
      If obj is not an instance of the supported classes.
class_docstr_tok: ["Class","to","standardize","Drawable","objects","like","Detections","and","TrackedObjects","Parameters","--","--","--","--","--","obj",":","Union","[","Detection",",","TrackedObject","]",",","optional","A","[","Detection","]","[","norfair.tracker.Detection","]","or","a","[","TrackedObject","]","[","norfair.tracker.TrackedObject","]","that","will","be","used","to","initialized","the","drawable",".","If","this","parameter","is","passed",",","all","other","arguments","are","ignored","points",":","np.ndarray",",","optional","Points","included","in","the","drawable",",","shape","is","`","(","N_points",",","N_dimensions",")","`",".","Ignored","if","`","obj","`","is","passed","id",":","Any",",","optional","Id","of","this","object",".","Ignored","if","`","obj","`","is","passed","label",":","Any",",","optional","Label","specifying","the","class","of","the","object",".","Ignored","if","`","obj","`","is","passed","scores",":","np.ndarray",",","optional","Confidence","scores","of","each","point",",","shape","is","`","(","N_points",",",")","`",".","Ignored","if","`","obj","`","is","passed","live_points",":","np.ndarray",",","optional","Bolean","array","indicating","which","points","are","alive",",","shape","is","`","(","N_points",",",")","`",".","Ignored","if","`","obj","`","is","passed","Raises","--","--","--","ValueError","If","obj","is","not","an","instance","of","the","supported","classes","."]
code: def __init__(
      self,
      obj: Union[Detection, TrackedObject] = None,
      points: np.ndarray = None,
      id: Any = None,
      label: Any = None,
      scores: np.ndarray = None,
      live_points: np.ndarray = None,
  ) -> None:
      if isinstance(obj, Detection):
          self.points = obj.points
          self.id = None
          self.label = obj.label
          self.scores = obj.scores
          # TODO: alive points for detections could be the ones over the threshold
          # but that info is not available here
          self.live_points = np.ones(obj.points.shape[0]).astype(bool)
  
      elif isinstance(obj, TrackedObject):
          self.points = obj.estimate
          self.id = obj.id
          self.label = obj.label
          # TODO: TrackedObject.scores could be an interesting thing to have
          # it could be the scores of the last detection or some kind of moving average
          self.scores = None
          self.live_points = obj.live_points
      elif obj is None:
          self.points = points
          self.id = id
          self.label = label
          self.scores = scores
          self.live_points = live_points
      else:
          raise ValueError(
              f"Extecting a Detection or a TrackedObject but received {type(obj)}"
          )
  
file_path: norfair/norfair/drawing/drawer.py
imports: from typing import Any, Optional, Sequence, Tuple, Union
  import numpy
  from norfair.drawing.color import Color, ColorType
  from norfair.tracker import Detection, TrackedObject
label_desc: Use image node_id 1 to create a new Drawable object  with example: obj = Drawable(obj, points, id, label, scores, live_points)