maitreyastark / Raspberry-Pi-Autonomous-Car

Raspberry Pi controlled autonomous car to follow a Person
1 stars 0 forks source link

Getting an AttributeError at line 166 #2

Open datadrian opened 6 years ago

datadrian commented 6 years ago

on start I'm getting :

[INFO] loading model... Traceback (most recent call last): File "Main.py", line 166, in net = cv2.dnn.readNetFromCaffe(args["prototxt"], args["model"]) AttributeError: 'module' object has no attribute 'dnn'

any easy fix? what version of open cv are you using?

maitreyastark commented 6 years ago

i am using opencv 3.4.0... if the error occurs you may try using cv.dnn in place of cv2 based on the import statement used