-
Notifications
You must be signed in to change notification settings - Fork 104
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
Error in calculation of the center offset #8
Comments
Calibrate your camera. I use hard-coded values for my camera setup. And my transformation is not suitable for yours, see your bird-view as an example: if your camera is calibrated, you should see two parallel lanes. |
Thanks for your prompt answer. I saw that there is a camera_cal folder in your source code. I have to put the camera's outputs there and run the code. Will the transformation be updated automatically or I should change it inside the code? Actually, I'm using the simulator's camera. Should I take image inside the simulator's environment or is there any other way to calibrate the camera? |
https://github.com/JunshengFu/driving-lane-departure-warning#3-use-perspective-transform-to-see-the-image-in-bird-view |
I'm using your code for my camera's output in a simulator but I noticed that the calculated offset from the middle line is wrong. Have I messed something? I checked one of the camera's image and it seems that the algorithm does not recognize the lanes, correctly. In the picture, the car virtually is in the middle of the lanes and lane's distance is 3.3 meter and it is a straight road.
The text was updated successfully, but these errors were encountered: