Advanced-Lane-Detection icon indicating copy to clipboard operation
Advanced-Lane-Detection copied to clipboard

Problem with new pictures

Open Mojzaar opened this issue 6 years ago • 0 comments

Hi,

I am using your algorithm for a semi-real time lane detection but it seems that whenever I change the picture to my pictures the algorithm would not able to proceed. I am using a jpg picture with the same width and hights attached and the errors that I received are as below:

Traceback (most recent call last): File "Project.py", line 399, in <module> offset_m = process_image(image) File "Project.py", line 322, in process_image right_fit, right_fitx, right_fity = right.get_fit() File "Project.py", line 126, in get_fit self.fit = np.polyfit(self.y, self.x, 2) File "/usr/local/lib/python2.7/dist-packages/numpy/lib/polynomial.py", line 548, in polyfit raise TypeError("expected 1D vector for x") TypeError: expected 1D vector for x Would you please tell what is wrong?

savedpic

Mojzaar avatar Nov 09 '18 00:11 Mojzaar