def select_yellow(image):
    """
    Get the yellow color only for the frame!!
    IMPORTANT: if you're using different road please change the color (of the middle line)
    :param image: frame image
    :return: a frame with yellow color only (the middle line)
    """
    converted = convert_hsv(image)
    # yellow color mask
    lower = np.array([18, 94, 140])
    upper = np.array([48, 255, 255])
    yellow_mask = cv2.inRange(converted, lower, upper)
    return yellow_mask

    Get the yellow color only for the frame!!
    IMPORTANT: if you're using different road please change the color (of the middle line)
    :param image: frame image
    :return: a frame with yellow color only (the middle line)
    
apps/driving_pi/lane_detector.py