georgesung / advanced_lane_detection

Advanced lane detection using computer vision
527 stars 208 forks source link

Meters to Pixel Conversion #5

Open drofp opened 6 years ago

drofp commented 6 years ago

How were the meters to pixel values found in line_fit.py?

I'm assuming the standard width of a highway lane (3.7m) was used for the x-direction, and you simply found the difference of x-values between the two lanes after the polyfit.

I am still unsure, however, of how you found the y-direction values. Did you measure out the length to the horizon? or is this the vertical length that can be detected by polyfit? What was your procedure for calibrating and finding these values?

https://github.com/georgesung/advanced_lane_detection/blob/d9be934773656d2ec3c40c8f37a1e84658d2a0fe/line_fit.py#L231