object-detection-opencv icon indicating copy to clipboard operation
object-detection-opencv copied to clipboard

'module' object has no attribute 'dnn'

Open hmenarges opened this issue 7 years ago • 4 comments

i want to run your code but this error accuring :{

hmenarges avatar Apr 22 '19 08:04 hmenarges

May I know the Python and OpenCV version you are working with ?

arunponnusamy avatar Apr 23 '19 07:04 arunponnusamy

@arunponnusamy Hello I have the same problem my version is 3.2... how to upgrade it

sujayalaspure avatar Aug 23 '19 04:08 sujayalaspure

You can upgrade opencv using the below command

pip install --upgrade opencv-python

arunponnusamy avatar Aug 27 '19 07:08 arunponnusamy

pip install opencv-contrib-python Type it in ur terminal and everything will be sorted out.

Danish-ctrl avatar Oct 15 '20 20:10 Danish-ctrl