AttributeError: module 'cv2.cv2' has no attribute 'samples' [closed]

asked 2019-03-03 13:21:33 -0500

adityak2920 gravatar image

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

berak gravatar image

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

File "", line 114, in <module>
img = cv.imread(cv.samples.findFile(filename))

AttributeError: module 'cv2.cv2' has no attribute 'samples'
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by adityak2920
close date 2019-03-03 15:24:26.847170


After cloning the GitHub repo

what did you do then ? can you try a:


? (your python is probably using a different / older version, than you try to install right now)

berak gravatar imageberak ( 2019-03-03 13:56:04 -0500 )edit