class_docstr: Basic drawing functionality.
  
  This class encapsulates opencv drawing functions allowing for
  different backends to be implemented following the same interface.
class_docstr_tok: ["Basic","drawing","functionality",".","This","class","encapsulates","opencv","drawing","functions","allowing","for","different","backends","to","be","implemented","following","the","same","interface","."]
docstr: Draw a line.
  
  Parameters
  ----------
  frame : np.ndarray
      The OpenCV frame to draw on. Modified in place.
  start : Tuple[int, int]
      Starting point.
  end : Tuple[int, int]
      End point.
  color : ColorType, optional
      Line color.
  thickness : int, optional
      Line width.
  
  Returns
  -------
  np.ndarray
      The resulting frame.
docstr_tok: ["Draw","a","line",".","Parameters","--","--","--","--","--","frame",":","np.ndarray","The","OpenCV","frame","to","draw","on",".","Modified","in","place",".","start",":","Tuple","[","int",",","int","]","Starting","point",".","end",":","Tuple","[","int",",","int","]","End","point",".","color",":","ColorType",",","optional","Line","color",".","thickness",":","int",",","optional","Line","width",".","Returns","--","--","--","-","np.ndarray","The","resulting","frame","."]
code: def line(
      cls,
      frame: np.ndarray,
      start: Tuple[int, int],
      end: Tuple[int, int],
      color: ColorType = Color.black,
      thickness: int = 1,
  ) -> np.ndarray:
      """
      Draw a line.
  
      Parameters
      ----------
      frame : np.ndarray
          The OpenCV frame to draw on. Modified in place.
      start : Tuple[int, int]
          Starting point.
      end : Tuple[int, int]
          End point.
      color : ColorType, optional
          Line color.
      thickness : int, optional
          Line width.
  
      Returns
      -------
      np.ndarray
          The resulting frame.
      """
      return cv2.line(
          frame,
          pt1=start,
          pt2=end,
          color=color,
          thickness=thickness,
      )
  
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 5 for calling the Drawer obj's underlying member method code with example usage: obj.line(cls, frame, start, end, color, thickness) and returns: cv2