scripts/detection_util.py
def draw_lane_lines(img, left_line_endpoints, right_line_endpoints, color=[255,0,0], thickness=8):
  """
  Draws left and right lane lines on an image.
  :param img: Source image on which the lane-lines have to be drawn.
  :param left_line_endpoints: Endpoints of the line-segment belonging to the left line of the lane.
  :param right_line_endpoints: Endpoints os the line-segment belonging to the right line of the lane.
  :param color: RGB color of the line to be drawn.
  :param thickness: Thickness of the line to be drawn.
  """
  # Draw left line of the lane.
  cv2.line(img, left_line_endpoints[0], left_line_endpoints[-1], color, thickness)
  # Draw right line of the lane.
  cv2.line(img, right_line_endpoints[0], right_line_endpoints[-1], color, thickness)

  Draws left and right lane lines on an image.
  :param img: Source image on which the lane-lines have to be drawn.
  :param left_line_endpoints: Endpoints of the line-segment belonging to the left line of the lane.
  :param right_line_endpoints: Endpoints os the line-segment belonging to the right line of the lane.
  :param color: RGB color of the line to be drawn.
  :param thickness: Thickness of the line to be drawn.
  
Draws left and right lane lines on an image.
Draws left and right lane lines on an image .
def draw_lane_lines(img, left_line_endpoints, right_line_endpoints, color=[255,0,0], thickness=8):
  cv2.line(img, left_line_endpoints[0], left_line_endpoints[-1], color, thickness)
  cv2.line(img, right_line_endpoints[0], right_line_endpoints[-1], color, thickness)
def draw_lane_lines ( img , left_line_endpoints , right_line_endpoints , color = [ 255 , 0 , 0 ] , thickness = 8 ) : cv2 . line ( img , left_line_endpoints [ 0 ] , left_line_endpoints [ - 1 ] , color , thickness ) cv2 . line ( img , right_line_endpoints [ 0 ] , right_line_endpoints [ - 1 ] , color , thickness )
Draws left and right lane lines on an image.
Draws left and right lane lines on an image .
"""
  Draws left and right lane lines on an image.
  :param img: Source image on which the lane-lines have to be drawn.
  :param left_line_endpoints: Endpoints of the line-segment belonging to the left line of the lane.
  :param right_line_endpoints: Endpoints os the line-segment belonging to the right line of the lane.
  :param color: RGB color of the line to be drawn.
  :param thickness: Thickness of the line to be drawn.
  """ # Draw left line of the lane. # Draw right line of the lane.
img
Source image on which the lane-lines have to be drawn.
Source image on which the lane - lines have to be drawn .
left_line_endpoints
Endpoints of the line-segment belonging to the left line of the lane.
Endpoints of the line - segment belonging to the left line of the lane .
right_line_endpoints
Endpoints os the line-segment belonging to the right line of the lane.
Endpoints os the line - segment belonging to the right line of the lane .
color
RGB color of the line to be drawn.
RGB color of the line to be drawn .
thickness
Thickness of the line to be drawn.
Thickness of the line to be drawn .