Timeline for Detect objects with OpenCV Python
Current License: CC BY-SA 3.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Dec 13, 2016 at 13:34 | history | edited | RMS | CC BY-SA 3.0 | added 290 characters in body |
| Dec 13, 2016 at 13:23 | comment | added | user6051274 | Strange because I'm using the same version as you. I will try some things and return the result if I get a solution ;) | |
| Dec 13, 2016 at 13:22 | comment | added | Vijay Kalmath | @Andro Use this to overcome that error contours, hierarchy = cv2.findContours(thresh,cv2.RETR_TREE,cv2.CHAIN_APPROX_SIMPLE)[-2:] | |
| Dec 13, 2016 at 13:19 | comment | added | RMS | which version pf Python are you using? try calling it with 3 arguments as in your initial example. e.g: image, contours, hierarchy = cv2... in my Python 2.7 i can only use cv2.findContours with 2 arguments contours, hierarchy = cv2.findContours() | |
| Dec 13, 2016 at 13:16 | comment | added | user6051274 | I understand pretty well your script thank you ! I tried it with few modifications but I get this error : Traceback (most recent call last): File "image.py", line 17, in <module> contours, hierarchy = cv2.findContours(img_th, cv2.RETR_LIST, cv2.CHAIN_APPROX_SIMPLE) ValueError: too many values to unpack | |
| Dec 13, 2016 at 13:10 | history | answered | RMS | CC BY-SA 3.0 |