original_docstring: 
      draw_connections: 
          Used to draw the edges between keypoint outputs. Used only when debugging or calibrating.
      
docstring: Used to draw the edges between keypoint outputs. Used only when debugging or calibrating.
docstring_tokens: Used to draw the edges between keypoint outputs . Used only when debugging or calibrating .
code: def draw_connections(frame, keypoints, edges, confidence_threshold):
      """
      draw_connections: 
          Used to draw the edges between keypoint outputs. Used only when debugging or calibrating.
      """
  
      y, x, c = frame.shape
      shaped = np.squeeze(np.multiply(keypoints, [y,x,1]))
  
      for edge, color in edges.items():
          p1, p2 = edge
          y1, x1, c1 = shaped[p1]
          y2, x2, c2 = shaped[p2]
  
          if min(c1, c2) > confidence_threshold:
              cv2.line(frame, (int(x1), int(y1)), (int(x2), int(y2)), (255,0,0), 1)
code_tokens: def draw_connections ( frame , keypoints , edges , confidence_threshold ) : y , x , c = frame . shape shaped = np . squeeze ( np . multiply ( keypoints , [ y , x , 1 ] ) ) for edge , color in edges . items ( ) : p1 , p2 = edge y1 , x1 , c1 = shaped [ p1 ] y2 , x2 , c2 = shaped [ p2 ] if min ( c1 , c2 ) > confidence_threshold : cv2 . line ( frame , ( int ( x1 ) , int ( y1 ) ) , ( int ( x2 ) , int ( y2 ) ) , ( 255 , 0 , 0 ) , 1 )
short_docstring: draw_connections:
  Used to draw the edges between keypoint outputs.
short_docstring_tokens: draw_connections : Used to draw the edges between keypoint outputs .
comment: """
      draw_connections: 
          Used to draw the edges between keypoint outputs. Used only when debugging or calibrating.
      """