Skip to content

Problem with new pictures #1

@Mojzaar

Description

@Mojzaar

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions