scripts/detection_util.py
def color_filter(img):
  """Filters the image for a given color space.
  Here we look for yellow and white colors which represent the lane lines.
  """
  lower, upper = th.YELLOW_WHITE_COLOR_RANGE
  lower = np.array(lower, dtype=np.uint8)
  upper = np.array(upper, dtype=np.uint8)

  hsv = cv2.cvtColor(img, cv2.COLOR_BGR2HSV);
  yellow_white_mask = cv2.inRange(hsv, lower, upper)
  return yellow_white_mask
Filters the image for a given color space.
  Here we look for yellow and white colors which represent the lane lines.
  
Filters the image for a given color space.
Here we look for yellow and white colors which represent the lane lines.
Filters the image for a given color space . Here we look for yellow and white colors which represent the lane lines .
def color_filter(img):
  lower, upper = th.YELLOW_WHITE_COLOR_RANGE
  lower = np.array(lower, dtype=np.uint8)
  upper = np.array(upper, dtype=np.uint8)
  hsv = cv2.cvtColor(img, cv2.COLOR_BGR2HSV);
  yellow_white_mask = cv2.inRange(hsv, lower, upper)
  return yellow_white_mask
def color_filter ( img ) : lower , upper = th . YELLOW_WHITE_COLOR_RANGE lower = np . array ( lower , dtype = np . uint8 ) upper = np . array ( upper , dtype = np . uint8 ) hsv = cv2 . cvtColor ( img , cv2 . COLOR_BGR2HSV ) ; yellow_white_mask = cv2 . inRange ( hsv , lower , upper ) return yellow_white_mask
Filters the image for a given color space.
Filters the image for a given color space .
"""Filters the image for a given color space.
  Here we look for yellow and white colors which represent the lane lines.
  """
img