python - TypeError: 'NoneType' object has no attribute '__getitem__15' -
hello every one, want ro run camshift algorithm error created during running time. error is:
traceback (most recent call last): file "c:\python27\code\extra algorithms\camshift in opencv.py", line 11, in <module> roi = frame[r:r+h, c:c+w] typeerror: 'nonetype' object has no attribute '__getitem__10'
`
probably frame
none. can't index you're doing in frame[r:r+h, c:c+w]
. should initialize variable or handle case when it's none.
Comments
Post a Comment