on-internet
← Community

how to detect lane lines of a road image in python with opencv

Stack Overflow ·

hey so I am trying to detect lane lines that are colored white, yellow and red from a image and mark them as well as count the number of lane lines. I have tried several steps like using different masks but they are not working for every image. Either there are too many lane lines detected or few of the lane lines are missing. import os import re import cv2 import numpy as np from tqdm import tqdm_notebook import matplotlib.pyplot as plt col_images = list() path = r'C:\Users\nancy\Downloads\lane\lane1.jpeg' image = cv2.imread(path) plt.imshow(image) plt.show() col_images.append(image) idx = 0

Comments

Sign in or sign up to comment and upvote.

No comments yet.