Skip to content

SDC-P5-master problems #4

@ZRQ1991

Description

@ZRQ1991

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!

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