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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: cannot import name '_registerMatType' from 'cv2.cv2' #18

Open
Yewon-dev opened this issue Mar 5, 2022 · 0 comments
Open
Labels
bug Something isn't working

Comments

@Yewon-dev
Copy link
Contributor

馃悰 Bug Description

I try to import albumentations library.
It gives me the following error:

ImportError: cannot import name '_registerMatType' from 'cv2.cv2' 

To Reproduce

import albumentations.pytorch
import torch

鉁旓笍Solution Description

Download the headless open-cv and of a version below 4.3 because backward compatibility was dropped since 4.3.0.

pip install "opencv-python-headless<4.3"

@Yewon-dev Yewon-dev added the bug Something isn't working label Mar 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant