Comments (4)
This is indeed peculiar. For what it's worth, I can't reproduce it on my end.
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.
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.
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.
Alright, I will close it, but do reopen if you encounter it again. Thanks
from d3dshot.
Related Issues (20)
- Support OpenCV Mat as a capture format HOT 2
- Code doesn't work HOT 2
- No way to delete D3DShot instance. HOT 1
- 1,000,000+ fps in screen capture HOT 2
- Slow performance HOT 3
- Support for resizing (downscaling) the output HOT 2
- It randomly raises an indexerror. HOT 1
- Create an anaconda package
- Bump pillow version for Python 3.9 support on Windows HOT 9
- Sceenshot active monitor
- Is this maintained? feature query HOT 1
- monitor resolution not detected properly HOT 2
- Errors in Virtual Machines
- Feature to wait for any change
- Does not work with games HOT 2
- Screenshot from wrong display is sometimes returned
- pip install d3dshot isn't working HOT 1
- Bug? D3Dshot continously giving lower frames when benchmarked HOT 1
- d3dshot.create() cant work HOT 1
- can't capture full screen game
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from d3dshot.