Skip to content
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

No DNN module in 4.6? #336

Open
apatsekin opened this issue Dec 2, 2022 · 3 comments
Open

No DNN module in 4.6? #336

apatsekin opened this issue Dec 2, 2022 · 3 comments
Labels

Comments

@apatsekin
Copy link

apatsekin commented Dec 2, 2022

Comment:

I noticed that starting 4.6.x this build misses DNN module, that used to be there.
Was it intentional drop or am I missing something?

Python 3.8.15 (default, Nov 24 2022, 09:04:07) 
[Clang 14.0.6 ] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
>>> cv2.dnn
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'cv2' has no attribute 'dnn'
  run:
    - python 3.8.*
    - py-opencv 4.6.*
    - libopencv 4.6.*

platform: apple arm64

@hmaarrfk
Copy link
Contributor

hmaarrfk commented Dec 2, 2022

I'm not aware that we ever compiled the dnn modules for opencv at conda-forge.

can you please provide the output of

conda info

and

conda list

for the affected environment.

@mshabunin
Copy link
Contributor

Works on Linux x86_64 with python 3.11:

Python 3.11.0 | packaged by conda-forge | (main, Oct 25 2022, 06:24:40) [GCC 10.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
>>> cv2.__file__
'/home/user/miniconda3/envs/opencv/lib/python3.11/site-packages/cv2.cpython-311-x86_64-linux-gnu.so'
>>> cv2.__version__
'4.6.0'
>>> cv2.dnn
<module 'cv2.dnn'>

@hmaarrfk
Copy link
Contributor

hmaarrfk commented Dec 6, 2022

Same for me. I guess we have it included.

My hung is that @apatsekin is using the pacakge from anaconda (due to the line Anaconda, Inc. in his output) and not conda-forge's.

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

No branches or pull requests

3 participants