【发布时间】:2019-12-17 13:45:34
【问题描述】:
我在python中有这个代码sn-p:
for i in range(N_SLICES):
np.append(Image())
if frame is not None:
t1 = time.clock()
SlicePart(frame, Images, N_SLICES)
for i in range(N_SLICES):
print (i)
我收到此错误:
np.append(Image())
TypeError: __init__() missing 1 required positional argument: 'imgtype'
之前有一个错误!但是我发现了一个类似的,但是我该如何解决它呢
这是我复制并添加到名为“vision race”的github存储库中的一个项目,但我已将三个文件统一为一个
【问题讨论】:
-
Image()与其文档不匹配。但是np.append的使用也是错误的。
标签: python image numpy processing