Skip to content

AttributeError: module 'cv2' has no attribute 'dnn_superres' #1

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

Open
sparkmobi opened this issue Mar 14, 2023 · 1 comment
Open

AttributeError: module 'cv2' has no attribute 'dnn_superres' #1

sparkmobi opened this issue Mar 14, 2023 · 1 comment

Comments

@sparkmobi
Copy link

Hello

i have got this error when i opened the localhost link in my browser

2023-03-14 09:40:16.314 Uncaught app exception
Traceback (most recent call last):
File "C:\Python39\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 565, in _run_script
exec(code, module.dict)
File "G:\Image-Upscaler-Deep-Learning\streamlit_app.py", line 8, in
sr = cv2.dnn_superres.DnnSuperResImpl_create()
AttributeError: module 'cv2' has no attribute 'dnn_superres'

@mehrdad-dev
Copy link
Owner

mehrdad-dev commented Mar 14, 2023

Hey!
See this link: https://stackoverflow.com/questions/64763274/module-cv2-cv2-has-no-attribute-dnn-superres
It is about a package that you need to install, called "opencv-contrib-python".
Install it like this: pip uninstall opencv-contrib-python

And tell me if your issue is resolved!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants