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

SDC-P5-master problems #4

Open
GitHub-ZRQ opened this issue Jun 28, 2018 · 4 comments
Open

SDC-P5-master problems #4

GitHub-ZRQ opened this issue Jun 28, 2018 · 4 comments

Comments

@GitHub-ZRQ
Copy link

Hi,
for "python3 P5pipeline.py test_image/test1.jpg output_image/test1.jpg"
it is successful.

but for "python3 P5pipeline.py test_video/test1.mp4 output_video/test1.mp4"

Camera Calibration data restored from camera_cal/calibrationdata.p
video processing test_video/test1.mp4...
Traceback (most recent call last):
File "P5pipeline.py", line 238, in
video_clip = clip1.fl_image(process_image)
File "/usr/local/lib/python3.5/dist-packages/moviepy/video/VideoClip.py", line 514, in fl_image
return self.fl(lambda gf, t: image_func(gf(t)), apply_to)
File "/usr/local/lib/python3.5/dist-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 "/usr/local/lib/python3.5/dist-packages/moviepy/decorators.py", line 14, in outplace
f(newclip, *a, **k)
File "/usr/local/lib/python3.5/dist-packages/moviepy/video/VideoClip.py", line 669, in set_make_frame
self.size = self.get_frame(0).shape[:2][::-1]
File "", line 2, in get_frame
File "/usr/local/lib/python3.5/dist-packages/moviepy/decorators.py", line 89, in wrapper
return f(*new_a, **new_kw)
File "/usr/local/lib/python3.5/dist-packages/moviepy/Clip.py", line 94, in get_frame
return self.make_frame(t)
File "/usr/local/lib/python3.5/dist-packages/moviepy/Clip.py", line 137, in
newclip = self.set_make_frame(lambda t: fun(self.get_frame, t))
File "/usr/local/lib/python3.5/dist-packages/moviepy/video/VideoClip.py", line 514, in
return self.fl(lambda gf, t: image_func(gf(t)), apply_to)
File "P5pipeline.py", line 115, in process_image
image, roadMgr, diagMgr, scrType=scrType, debug=debug, resized=resized)
File "P5pipeline.py", line 63, in process_road_image
roadMgr.findLanes(img, resized=resized)
File "/home/cetc28/Program/SDC-P5-master/p5lib/roadManager.py", line 361, in findLanes
self.addLaneLeft(curLane)
File "/home/cetc28/Program/SDC-P5-master/p5lib/roadManager.py", line 172, in addLaneLeft
self.curImgFtr, curLane, faint=faint, resized=self.resized)
File "/home/cetc28/Program/SDC-P5-master/p5lib/line.py", line 102, in createPolyFitLeft
rightLane.lines[rightLane.right].currentFit)
File "/usr/local/lib/python3.5/dist-packages/numpy/lib/polynomial.py", line 778, in polysub
val = a1 - a2
TypeError: unsupported operand type(s) for -: 'NoneType' and 'NoneType'

Tank you!

@harshuljain13
Copy link

@diyjac did you get the answer to this? i am facing the same issue. :)

@GitHub-ZRQ
Copy link
Author

@diyjac did you get the answer to this? i am facing the same issue
maybe you can change the parameters about curSrcRoadCorners, curDstRoadCorners, projection mask area and so on (in ProjectionManager.py) for try according to your videos.

@oussa055
Copy link

oussa055 commented Apr 8, 2019

i have the same issue here , so please guys if u fixied this problem get me the answer

@pirate-lofy
Copy link

pirate-lofy commented Jun 20, 2020

@GitHub-ZRQ what python version do you use?

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

4 participants