Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: object of type 'NoneType' has no len() #8

Open
riefquer opened this issue Jan 26, 2020 · 3 comments
Open

TypeError: object of type 'NoneType' has no len() #8

riefquer opened this issue Jan 26, 2020 · 3 comments

Comments

@riefquer
Copy link

Dear All,

i have try to running code by command promp and below error has been occured.

==================
(cv) pi@raspberrypi:~/Documents/LatOpenCV $ python object_detection_position.py
[INFO] waiting for camera to warmup...

Positioning servos to initial position ==> Press 'q' to quit Program

Traceback (most recent call last):
File "object_detection_position.py", line 111, in
if len(cnts) > 0:

File "objectDetectCoord.py", line 69, in
if len(cnts) > 0:
TypeError: object of type 'NoneType' has no len()

But while running py file by Mu python editor, no error was found.

looking forward any advices, thank you

Arief (Beginner raspberry hobbyist)

@DarthDemon
Copy link

I have the same problem. I'm going to try and figure out why this error occurs. I will keep you updated.

@davgonzalvo
Copy link

I have the same problem, any advice?

@SaadAhmed1122
Copy link

i have also same error accurs please guide us how to resolve it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants