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

'NoneType' error in QuickDrawApp.py #10

Open
gautamkumarjaiswal opened this issue Jun 8, 2019 · 1 comment
Open

'NoneType' error in QuickDrawApp.py #10

gautamkumarjaiswal opened this issue Jun 8, 2019 · 1 comment

Comments

@gautamkumarjaiswal
Copy link

gautamkumarjaiswal commented Jun 8, 2019

In line 55 of QuickDrawApp.py (changed it to runCam.py) i was getting error "Object of type 'NoneType' has no len()". Even after modification as suggested in #6 i am getting another error "Descriptor 'len' requires a list object but received 'NoneType' ".

error1
error2

Solution:
I found the solution that in Opencv 4.1.0, findContours() function is returning two parameters.

changing line 54 to the following:
blackboard_cnts= cv2.findContours(thresh1.copy(), cv2.RETR_TREE, cv2.CHAIN_APPROX_NONE)[0]
solved my problem.

One suggestion: please mention the versions of the packages you are using in the requirements.

@jaehwlee
Copy link

It works at opencv 4.3.1.
thanks :)

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

2 participants