vehicle-detection icon indicating copy to clipboard operation
vehicle-detection copied to clipboard

Problem with other videos

Open Kuppharish opened this issue 7 years ago • 2 comments

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.

Kuppharish avatar Jun 05 '17 08:06 Kuppharish

@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 avatar Jun 05 '17 09:06 JunshengFu

@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!

lyxlty avatar Apr 01 '18 14:04 lyxlty