Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

help me in fixing this error #14

Open
RamaManiKamana21 opened this issue Apr 5, 2024 · 0 comments
Open

help me in fixing this error #14

RamaManiKamana21 opened this issue Apr 5, 2024 · 0 comments

Comments

@RamaManiKamana21
Copy link

RamaManiKamana21 commented Apr 5, 2024

Traceback (most recent call last):
File "C:\Users\kaman\OneDrive\Desktop\btech_project\main.py", line 36, in
clip = clip1.fl_image(process_frame) #NOTE: it should be in BGR format
File "C:\Users\kaman\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\moviepy\video\VideoClip.py", line 490, in fl_image
return self.fl(lambda gf, t: image_func(gf(t)), apply_to)
File "C:\Users\kaman\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\moviepy\Clip.py", line 136, in fl
newclip = self.set_make_frame(lambda t: fun(self.get_frame, t))
File "", line 2, in set_make_frame
File "C:\Users\kaman\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\moviepy\decorators.py", line 14, in outplace
f(newclip, *a, **k)
File "C:\Users\kaman\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\moviepy\video\VideoClip.py", line 644, in set_make_frame
self.size = self.get_frame(0).shape[:2][::-1]
File "", line 2, in get_frame
File "C:\Users\kaman\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\moviepy\decorators.py", line 89, in wrapper
return f(*new_a, **new_kw)
File "C:\Users\kaman\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\moviepy\Clip.py", line 93, in get_frame
return self.make_frame(t)
File "C:\Users\kaman\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\moviepy\Clip.py", line 136, in
newclip = self.set_make_frame(lambda t: fun(self.get_frame, t))
File "C:\Users\kaman\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\moviepy\video\VideoClip.py", line 490, in
return self.fl(lambda gf, t: image_func(gf(t)), apply_to)
File "C:\Users\kaman\OneDrive\Desktop\btech_project\lane.py", line 597, in process_frame
detector(binary_sub, ploty, visualization)
File "C:\Users\kaman\OneDrive\Desktop\btech_project\lane.py", line 549, in detector
left_fit, right_fit = full_search(binary_sub, visualization=visualization)
File "C:\Users\kaman\OneDrive\Desktop\btech_project\lane.py", line 295, in full_search
right_fit = np.polyfit(righty, rightx, 2)
File "<array_function internals>", line 5, in polyfit
File "C:\Users\kaman\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\numpy\lib\polynomial.py", line 630, in polyfit
raise TypeError("expected non-empty vector for x")
TypeError: expected non-empty vector for x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant