【发布时间】:2014-07-04 09:01:17
【问题描述】:
这是我的代码:
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: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all() 为什么会出现此错误,但我不知道在我的情况下如何处理此错误。任何帮助将不胜感激!
【问题讨论】:
标签: python python-2.7 simplecv