如何增加使用opencv捕获视频的时间

2skhul33  于 2021-07-12  发布在  Java
关注(0)|答案(0)|浏览(227)

这是一个输出错误,表明它无法解压不可iterable numpy.float 64对象

[Command: python -u C:\Users\Owner\Desktop\finding-lanes\lane.py]
C:\Users\Owner\AppData\Local\Programs\Python\Python38-32\lib\site-packages\numpy\lib\function_base.py:380: RuntimeWarning: Mean of empty slice.
  avg = a.mean(axis)
C:\Users\Owner\AppData\Local\Programs\Python\Python38-32\lib\site-packages\numpy\core\_methods.py:170: RuntimeWarning: invalid value encountered in double_scalars
  ret = ret.dtype.type(ret / rcount)
Traceback (most recent call last):
  File "C:\Users\Owner\Desktop\finding-lanes\lane.py", line 76, in <module>
    frame = process(frame)
  File "C:\Users\Owner\Desktop\finding-lanes\lane.py", line 68, in process
    averaged_lines = average_slope_intercept(frame, lines)
  File "C:\Users\Owner\Desktop\finding-lanes\lane.py", line 26, in average_slope_intercept
    left_line = make_coordinates(image, left_fit_average) # Specify coordinates of image and slope and intercept of left line
  File "C:\Users\Owner\Desktop\finding-lanes\lane.py", line 5, in make_coordinates
    slope, intercept = line_parameters
TypeError: cannot unpack non-iterable numpy.float64 object
[Finished in 14.483s]

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题