Skip to content

ImportError: DLL load failed while importing cv2 #978

Open
@qiaoqiaobangya

Description

@qiaoqiaobangya

I have a problem "ImportError: DLL load failed while importing cv2: The specified module could not be found"

Information about my attempted installation
Python 3.8.10 (tags/v3.8.10:3d8993a, May 3 2021, 11:48:03) [MSC v.1928 64 bit (AMD64)] on win32
MSVC: Microsoft Visual Studio 2019
OS: Win 10
CMake gui: 3.29.2
Source cv2 files version: 4.5.0

I'm compiling opencv from source and it's all working fine, but when instantiating cv2, I get the "Import DLL .... " error occurred.
Python 3.8.10 opencv 4.5.0 opencv_contrib-4.5.0

What is the DLL file that failed to load? Why is this happening?
Also I would like to know if it is possible to make opencv implement CUDA acceleration by compiling opencv source code in the python case. If it is possible how to implement it?

Thank you,
Anthony of Sydney

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions