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

getting error as #6

Open
ammu11 opened this issue Jul 6, 2018 · 1 comment
Open

getting error as #6

ammu11 opened this issue Jul 6, 2018 · 1 comment

Comments

@ammu11
Copy link

ammu11 commented Jul 6, 2018

Traceback (most recent call last):
File "C:\lane_direction\main.py", line 34, in
clip = clip1.fl_image(process_frame) #NOTE: it should be in BGR format
File "C:\Users\araparthi\AppData\Local\Programs\Python\Python35\lib\site-packages\moviepy\video\VideoClip.py", line 506, in fl_image
return self.fl(lambda gf, t: image_func(gf(t)), apply_to)
File "C:\Users\araparthi\AppData\Local\Programs\Python\Python35\lib\site-packages\moviepy\Clip.py", line 137, in fl
newclip = self.set_make_frame(lambda t: fun(self.get_frame, t))
File "", line 2, in set_make_frame
File "C:\Users\araparthi\AppData\Local\Programs\Python\Python35\lib\site-packages\moviepy\decorators.py", line 14, in outplace
f(newclip, *a, **k)
File "C:\Users\araparthi\AppData\Local\Programs\Python\Python35\lib\site-packages\moviepy\video\VideoClip.py", line 661, in set_make_frame
self.size = self.get_frame(0).shape[:2][::-1]
File "", line 2, in get_frame
File "C:\Users\araparthi\AppData\Local\Programs\Python\Python35\lib\site-packages\moviepy\decorators.py", line 89, in wrapper
return f(*new_a, **new_kw)
File "C:\Users\araparthi\AppData\Local\Programs\Python\Python35\lib\site-packages\moviepy\Clip.py", line 94, in get_frame
return self.make_frame(t)
File "C:\Users\araparthi\AppData\Local\Programs\Python\Python35\lib\site-packages\moviepy\Clip.py", line 137, in
newclip = self.set_make_frame(lambda t: fun(self.get_frame, t))
File "C:\Users\araparthi\AppData\Local\Programs\Python\Python35\lib\site-packages\moviepy\video\VideoClip.py", line 506, in
return self.fl(lambda gf, t: image_func(gf(t)), apply_to)
File "C:\lane_direction\lane.py", line 592, in process_frame
detector(binary_sub, ploty, visualization)
File "C:\lane_direction\lane.py", line 544, in detector
left_fit, right_fit = full_search(binary_sub, visualization=visualization)
File "C:\lane_direction\lane.py", line 286, in full_search
left_fit = np.polyfit(lefty, leftx, 2)
File "C:\Users\araparthi\AppData\Local\Programs\Python\Python35\lib\site-packages\numpy\lib\polynomial.py", line 555, in polyfit
raise TypeError("expected non-empty vector for x")
TypeError: expected non-empty vector for x

@RamaManiKamana21
Copy link

i am too getting the same error. Did u fix it!!... If yes please help me in fixing that : )

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

2 participants