Image-Upscaler-Deep-Learning icon indicating copy to clipboard operation
Image-Upscaler-Deep-Learning copied to clipboard

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

Open sparkmobi opened this issue 2 years ago • 1 comments
trafficstars

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'

sparkmobi avatar Mar 14 '23 07:03 sparkmobi

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!

mehrdad-dev avatar Mar 14 '23 13:03 mehrdad-dev