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