Comments (14)
I will suggest you properly set your process to run on GPU which displays
Sorry about my language if you cannot understand me
In my case i do the following settings
There should be similar options in Windows 11 too
from dxcam.
I have same problem, any additional information you need - hit me up.
from dxcam.
from dxcam.
from dxcam.
On Wed, 2 Nov 2022 at 10:33 PM AI-M-BOT @.> wrote: I will suggest you properly set your process to run on GPU which displays Sorry about my language if you cannot understand me In my case i do the following settings [image: image] https://user-images.githubusercontent.com/93147937/199585781-a1ec316d-c6dd-48e8-bf35-1dec1b725071.png There should be similar options in Windows 11 too — Reply to this email directly, view it on GitHub <#38 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/APM6BZK2VRFXHL4YZPVAAFLWGK6X7ANCNFSM6AAAAAARVHQLJQ . You are receiving this because you authored the thread.Message ID: @.>
ive already tried doing this and it hasn’t helped.
didn't work, please help
from dxcam.
On Wed, 2 Nov 2022 at 10:33 PM AI-M-BOT @.> wrote: I will suggest you properly set your process to run on GPU which displays Sorry about my language if you cannot understand me In my case i do the following settings [image: image] https://user-images.githubusercontent.com/93147937/199585781-a1ec316d-c6dd-48e8-bf35-1dec1b725071.png There should be similar options in Windows 11 too — Reply to this email directly, view it on GitHub <#38 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/APM6BZK2VRFXHL4YZPVAAFLWGK6X7ANCNFSM6AAAAAARVHQLJQ . You are receiving this because you authored the thread.Message ID: @.>
ive already tried doing this and it hasn’t helped.
i found it, you have to use nvidia control panel to change the preferred gpu. you can find how to do that in youtube
from dxcam.
hello, I'm having problems like this, I'm using windows 7, any solution?
from dxcam.
hello, I'm having problems like this, I'm using windows 7, any solution?
use the nvidia control panel to change python 3.10 to integrated graphics. there are tutoriald online on how to do that
from dxcam.
Do you have any solution?
from dxcam.
Do you have any solution?
read what I said above
from dxcam.
I'm trying, but still no solution
from dxcam.
it's fixed my ctypes.COMError: (-2005270524]
Try change GPU for python, as it's recomended @AI-M-BOT
Try run .py or Pycharm as adminstrator. If you are going to use pyautogui, you will need this anyway.
Use camera.get_latest_frame() instead camera.grab()
camera.grab() quite often but randomly causes an errors in both dxcam and dxshot.
- Sometimes return None
- ctypes.COMError: (-2005270524]
- RuntimeError: cannot join current thread
box = (100,100,300,300)
camera = dxcam.create(output_color="BGR")
# You can use region here instead .grab()
camera.start(target_fps=30, region=box)
# Sometimes camera return None.
# Stupid function to avoid this
def get_screen():
screen = None
while screen is None:
screen = camera.get_latest_frame()
return screen
get_screen()
from dxcam.
Had the same problem.
My solution was changing
this:
frame = camera.grab()
to this:
frame = camera.get_latest_frame()
Im also thinking about putting this function into a try exept wrapper, at the same time i know you should avoid try wrappers,
for now it works.
from dxcam.
I am on Windows 10 and have tried updating graphics settings, NVidia Control panel, and now using camera.get_latest_frame() instead of camera.grab. None of these seem to fix the error which happens in my case when dxcam.create() is called.
import dxcam
print(dxcam.device_info())
print(dxcam.output_info())
Device[0]:'(Device Name:NVIDIA RTX A4000 Dedicated VRAM:15172Mb VendorId:4318)'
Device[0] Output[0]: Res:(1920, 1080) Rot:0 Primary:True
from dxcam.
Related Issues (20)
- AttributeError: 'DXCamera' object has no attribute 'is_capturing' HOT 1
- TypeError: 'float' object cannot be interpreted as an integer
- PyPI 站没有了
- Capturing on HDR display has very bright output HOT 1
- Helllo win 7 doesn't work
- feedback BUG:camera.grab() Resolution error
- feedback BUG:camera.grab() Resolution error HOT 5
- [NOT-ISSUE] [TUTORIAL] Adding Cursor To Screen Capture HOT 1
- Is there any way to have the captured screenshots include the mouse cursor? HOT 1
- All frames taken from camera.get_latest_frame() are glitchy in a weird way!
- ValueError: could not broadcast input array from shape (640,640,3) into shape (1080,1920,3)
- How can I take screenshots based on the specified hwnd
- Capturing a screen screenshot of a virtual desktop in Windows 10
- Dxcam has no attribute 'create'
- Dxcam can't find gpu?
- access violation writing 0x4DBAF26F
- DXCAM does not respond
- numpy processor
- Please give an option to not return None if theres a duplicate. HOT 1
- 咨询
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 dxcam.