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

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -