Ask Your Question

Revision history [back]

AttributeError: module 'cv2.cv2' has no attribute 'samples'

After cloning the GitHub repo, I am trying to run grabcut.py but I am getting error : Traceback (most recent call last): File "grabcut.py", line 114, in <module> img = cv.imread(cv.samples.findFile(filename)) AttributeError: module 'cv2.cv2' has no attribute 'samples'

click to hide/show revision 2
None

updated 2019-03-03 13:53:55 -0500

berak gravatar image

AttributeError: module 'cv2.cv2' has no attribute 'samples'

After cloning the GitHub repo, I am trying to run grabcut.py but I am getting error : Traceback (most recent call last): last):

File "grabcut.py", line 114, in <module>
 img = cv.imread(cv.samples.findFile(filename))
 AttributeError: module 'cv2.cv2' has no attribute 'samples'

'samples'