Python Forum
imutils.grab_contours() error - reg - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/Forum-Python-Coding)
+--- Forum: General Coding Help (https://python-forum.io/Forum-General-Coding-Help)
+--- Thread: imutils.grab_contours() error - reg (/Thread-imutils-grab-contours-error-reg)



imutils.grab_contours() error - reg - ignatius80 - Dec-18-2018

Hi,

I am new to Python. Started to develop coding for image processing. I came across an example code for object detection(https://www.pyimagesearch.com/2015/01/19/find-distance-camera-objectmarker-using-python-opencv/) and tried to run the same in my PC installed with Python. When I run this code, I get the below error.
AttributeError: module 'imutils has no attribute 'grab_contours'

I have installed python through Anaconda.
The versions of different modules installed are
1. OpenCV 3.4.1
2. Python 3.6.7

Request someone to give us the solution to this problem.

Regards,
X. Ignatius


RE: imutils.grab_contours() error - reg - scidam - Dec-18-2018

Hi,
From the official repository of imutils package it follows that grab_contours was added to imutils 15 days ago.
It is likely, that your (installed) version of imutils doesn't include this function; So, you need to install the newest version of imutils from its github repository.