这是我的代码:
for ts, blob in izip(ts_list, blobs):
ts = simplecvimg.track("camshift", i, fgmask,b.boundingBox())
print(ts)
这是我得到的错误:
if not ts and not img:
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
虽然我从这里了解ValueError:具有多个元素的数组的真值是不明确的。使用 a.any() 或 a.all()为什么会出现此错误,我不知道在我的情况下如何处理此错误。任何帮助将不胜感激!