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

c# - Unity IoC Lifetime per HttpRequest for UserStore -

Change the color of an oval at click in Java AWT -

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -