You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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' ".
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.
The text was updated successfully, but these errors were encountered:
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' ".
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.
The text was updated successfully, but these errors were encountered: