pierluigiferrari / lane_tracker

A Python program for lane line detection and tracking using a traditional computer vision approach

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

type error

pengyiwu opened this issue · comments

hello pierluigiferrari:
i ran your code and got a such mistake
img1[:(img1.shape[0]*(1-partial)),:] = 0

TypeError: slice indices must be integers or None or have an index method
so i change it to:
img1[:int(img1.shape[0]*(1-partial)),:] = 0
now there is no mistake ,and it performed well on the challenge_video,but it failed to detect the lane lines in some frames in the harder_challenge_video.
Have a nice day!

And after i change the code ,the output video for the harder_challenge_video is quiet different from your demo.