Skip to content

convertFromD3D11Texture2D is not working in OpenCV 4.5.3 with NVIDIA GPU #20517

@masa-iwm

Description

@masa-iwm
System information (version)
  • OpenCV => 4.5.3
  • Operating System / Platform => Windows 64 Bit
  • Compiler => Visual Studio 2019
  • GPU => NVIDIA GeForce GTX 1060 6GB
Detailed description

I'm using UMat on an NVIDIA GPU.
When I change the OpenCV version from 4.5.2 to 4.5.3 with my software, I get the following exception.
OpenCV(4.5.3) Error: Unknown error code -220 (OpenCL: Context initilized without DirectX interoperability) in cv::directx::convertFromD3D11Texture2D, file ..\..\..\modules\core\src\directx.cpp, line 1395
And I have seen the same exception in the sample program (example_directx_d3d11_interop.exe).

Steps to reproduce
  1. Run example_directx_d3d11_interop.exe
  2. Press 2 key. (switch to GPU processing)
  3. I get an exception, and abnormal termination.
Issue submission checklist
  • I report the issue, it's not a question
  • I checked the problem with documentation, FAQ, open issues,
    forum.opencv.org, Stack Overflow, etc and have not found solution
  • I updated to latest OpenCV version and the issue is still there
  • There is reproducer code and related data files: videos, images, onnx, etc

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions