これが私のコードです:
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() を使用すると、このエラーが発生する理由がわかりません。私の状況では、このエラーをどうすればよいかわかりません。どんな助けでも大歓迎です!