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 cross
  
  Parameters
  ----------
  frame : np.ndarray
      The OpenCV frame to draw on. Modified in place.
  center : Tuple[int, int]
      Center of the cross.
  radius : int
      Size or radius of the cross.
  color : Color
      Color of the lines.
  thickness : int
      Thickness of the lines.
  
  Returns
  -------
  np.ndarray
      The resulting frame.
docstr_tok: ["Draw","a","cross","Parameters","--","--","--","--","--","frame",":","np.ndarray","The","OpenCV","frame","to","draw","on",".","Modified","in","place",".","center",":","Tuple","[","int",",","int","]","Center","of","the","cross",".","radius",":","int","Size","or","radius","of","the","cross",".","color",":","Color","Color","of","the","lines",".","thickness",":","int","Thickness","of","the","lines",".","Returns","--","--","--","-","np.ndarray","The","resulting","frame","."]
code: def cross(
      cls,
      frame: np.ndarray,
      center: Tuple[int, int],
      radius: int,
      color: ColorType,
      thickness: int,
  ) -> np.ndarray:
      """
      Draw a cross
  
      Parameters
      ----------
      frame : np.ndarray
          The OpenCV frame to draw on. Modified in place.
      center : Tuple[int, int]
          Center of the cross.
      radius : int
          Size or radius of the cross.
      color : Color
          Color of the lines.
      thickness : int
          Thickness of the lines.
  
      Returns
      -------
      np.ndarray
          The resulting frame.
      """
      middle_x, middle_y = center
      left, top = center - radius
      right, bottom = center + radius
      frame = cls.line(
          frame,
          start=(middle_x, top),
          end=(middle_x, bottom),
          color=color,
          thickness=thickness,
      )
      frame = cls.line(
          frame,
          start=(left, middle_y),
          end=(right, middle_y),
          color=color,
          thickness=thickness,
      )
      return frame
  
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 4 for calling the Drawer obj's underlying member method code with example usage: obj.cross(cls, frame, center, radius, color, thickness) and returns: frame