Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the potential solution to the failing case for the yellow lane video in Project 1 #4

Open
animebing opened this issue Jun 22, 2017 · 0 comments

Comments

@animebing
Copy link

Thank you for sharing the code and the detailed description of your code. In Shortcomings of your writeup, you said that there are some failing cases in the yellow lane video, I write my code based on yours and encounter the same issue, today I find the potential reason of the issue. The reason may be that there are some horizontal line segments after Hough Transform and I have verified that these horizontal line segments can't be filtered in function draw_lines and find_line_fit.

In function draw_lines, in the first for line in lines loop, I add following code to filter these line segments
if np.abs(slope) < 0.09:
continue

because tan(5) = 0.087, here is degree, not radian, so I use 0.09 to filter these line segments with degree less than 5, maybe you can have a try to see whether it works

@animebing animebing changed the title the potential solution to the failing case in yellow lane video the potential solution to the failing case for the yellow lane video in Project 1 Jun 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant