-
Notifications
You must be signed in to change notification settings - Fork 329
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: AttributeError: module 'cv2' has no attribute 'dnn' #1
Comments
Hello @nullbyte91, May I know how did you install OpenCV Python bindings ? Did you compile it from source from the OpenCV master branch ? |
Yes. I compile it from source. But, I'm using the OpenCV 3.1.0 Version which doesn't have dnn module. Now I'm moving to 3.4. |
Yes. deep neural network available from OpenCV 3.3 V. So, I could able to this with the latest version. |
When I run my program I got this error(AttributeError: module 'cv2' has no attribute 'Dnn'). My opencv version is 4.5.4 still I got error. |
i have same issues |
When I execute the below command on Python openCV virtual environment, I am getting an error.
$ python yolo_opencv.py --image dog.jpg --config yolov3.cfg --weights yolov3.weights --classes yolov3.txt
Error Logs:
Traceback (most recent call last):
File "yolo_opencv.py", line 59, in
net = cv2.dnn.readNet(args.weights, args.config)
AttributeError: module 'cv2' has no attribute 'dnn'
The text was updated successfully, but these errors were encountered: