Skip to content

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

Closed
@alexjbusch

Description

@alexjbusch

Trying to import cv2 in python 3.9.2 gives me the following error:

File "C:\Users\My Name\AppData\Local\Programs\Python\Python39\lib\site-packages\cv2_init_.py", line 9, in
from .cv2 import _registerMatType
ImportError: cannot import name '_registerMatType' from 'cv2.cv2' (C:\Users\My Name\AppData\Local\Programs\Python\Python39\lib\site-packages\cv2\cv2.cp39-win_amd64.pyd)

This is on Windows 10, with x86 architecture using opencv version (4.5.1.48)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions