PyImageSearch/imutils

Help in grab_contour

Closed this issue · 2 comments

hai..my name is arum I new in python
and i am recently trying your code, but my imutils.grab_contours modules is not found. I already upgrade to version 0.52.

Anything could I do wrong? Thank you for your time answering my question


image

And I also find this error. When I search for the function, drawContours is found but cannt be called in program
image

You're confusing OpenCV and imutils functions. The function you are looking for is imutils.grab_contours. The imutils.find_function is used to search the cv2 for function names.

Finally, it's cv2.drawContours.