vehicle-detection
vehicle-detection copied to clipboard
Problem with other videos
When I use a different video I get an error in np.polyfit that the input is empty and when I see the values of leftx and lefty in lane.py, they are empty arrays. Is there any fix for this.
@KuppamCR7 There are hard coded values in my lane detections, especially the four corners selected as for bird's view image warping. If your camera is installed differently than mine (which is very possible), and it will give you wrong warped bird view image. If you want to work with your own video, you might need to calibrate the camera by yourself.
For this project, the goal is for vehicle detection, and the lane finding is just an extra feature. If you want to know more about how the lane finding works in my project, you can see another repository: https://github.com/JunshengFu/driving-lane-departure-warning
Hope it helps.
@JunshengFu use your video can work normally,when I want to use a different video and I get an error,I need to calibrate the camera by myself?? but I don't know calibrate the camera thank you!