Giter VIP home page Giter VIP logo

Comments (14)

AI-M-BOT avatar AI-M-BOT commented on May 30, 2024 2

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
There should be similar options in Windows 11 too

from dxcam.

Ochmar avatar Ochmar commented on May 30, 2024 1

I have same problem, any additional information you need - hit me up.

from dxcam.

Arm-0001 avatar Arm-0001 commented on May 30, 2024

from dxcam.

AI-M-BOT avatar AI-M-BOT commented on May 30, 2024

#55

from dxcam.

alpgithubx avatar alpgithubx commented on May 30, 2024

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.

alpgithubx avatar alpgithubx commented on May 30, 2024

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.

eusolobehe1898 avatar eusolobehe1898 commented on May 30, 2024

hello, I'm having problems like this, I'm using windows 7, any solution?

from dxcam.

alpgithubx avatar alpgithubx commented on May 30, 2024

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.

lucasmonstrox avatar lucasmonstrox commented on May 30, 2024

Do you have any solution?

from dxcam.

alpgithubx avatar alpgithubx commented on May 30, 2024

Do you have any solution?

read what I said above

from dxcam.

eusolobehe1898 avatar eusolobehe1898 commented on May 30, 2024

I'm trying, but still no solution

from dxcam.

TON14 avatar TON14 commented on May 30, 2024

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.

  1. Sometimes return None
  2. ctypes.COMError: (-2005270524]
  3. 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.

Fleischkuechle avatar Fleischkuechle commented on May 30, 2024

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.

JoaoCarlinho avatar JoaoCarlinho commented on May 30, 2024

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)

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.