Giter VIP home page Giter VIP logo

Comments (4)

nbrochu avatar nbrochu commented on May 27, 2024

This is indeed peculiar. For what it's worth, I can't reproduce it on my end.

Annotation 2019-08-13 120849 PNG

This is with opencv-python==4.1.0.25 and D3DShot==0.1.3 on Windows 10 64 bit.

The error message you are getting essentially means that it's impossible to create a DirectX 11 Device that can do desktop duplication with the loaded DLLs. Your system DLLs are clearly fine since it all works without OpenCV.

My wild guess: OpenCV has its own capture routines and on Windows it does so by hooking into Direct3D using a shim DLL that doesn't have the feature level required to create a DirectX 11 Device that can do desktop duplication (i.e. it's an older DLL than the system one). When I bootstrap D3DShot, If the shim is loaded, the ctypes module finds that instead when I request a DLL by name.

What version of OpenCV are you using? How was it built? If you didn't compile it, are you using the most appropriate wheel for your system? Just trying to think of reasons why it works on my system and not yours.

from d3dshot.

nbrochu avatar nbrochu commented on May 27, 2024

Any update on this? I don't want to close the issue because there is definitely something interesting lying here but I can't reproduce it as shown above.

from d3dshot.

UsaidPro avatar UsaidPro commented on May 27, 2024

It has been so long that I do not recall if I solved the issue before halting my project. I have plans to continue working on my project that uses both OpenCV and D3DShot later this year (and might rerun into the issue). So I guess this issue can be closed and I will comment on this issue if I run into the same error again later.

from d3dshot.

nbrochu avatar nbrochu commented on May 27, 2024

Alright, I will close it, but do reopen if you encounter it again. Thanks

from d3dshot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.