Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I encountered some problems with dxcam when starting the project #29

Closed
kerryethu opened this issue Aug 30, 2022 · 9 comments
Closed

I encountered some problems with dxcam when starting the project #29

kerryethu opened this issue Aug 30, 2022 · 9 comments

Comments

@kerryethu
Copy link

Traceback (most recent call last):
File "main.py", line 201, in
main()
File "main.py", line 72, in main
camera = dxcam.create(region=region)
File "F:\conda\envs\yolo2\lib\site-packages\dxcam_init_.py", line 110, in create
return _factory.create(
File "F:\conda\envs\yolo2\lib\site-packages\dxcam_init
.py", line 70, in create
camera = DXCamera(
File "F:\conda\envs\yolo2\lib\site-packages\dxcam\dxcam.py", line 33, in init
self._duplicator: Duplicator = Duplicator(
File "", line 6, in init
File "F:\conda\envs\yolo2\lib\site-packages\dxcam\core\duplicator.py", line 19, in post_init
output.output.DuplicateOutput(device.device, ctypes.byref(self.duplicator))
_ctypes.COMError: (-2005270524, '指定的设备接口或功能级别在此系统上不受支持。', (None, None, None, 0, None))
Exception ignored in: <function DXCamera.del at 0x000001EA142683A0>
Traceback (most recent call last):
File "F:\conda\envs\yolo2\lib\site-packages\dxcam\dxcam.py", line 243, in del
self.release()
File "F:\conda\envs\yolo2\lib\site-packages\dxcam\dxcam.py", line 238, in release
self.stop()
File "F:\conda\envs\yolo2\lib\site-packages\dxcam\dxcam.py", line 138, in stop
if self.is_capturing:
AttributeError: 'DXCamera' object has no attribute 'is_capturing'

I'm a novice from China, just started learning this project, requesting detailed pointers
Thank you very much

@Apathy929
Copy link

I'm in the same situation as you.

@Qfc9
Copy link
Member

Qfc9 commented Sep 3, 2022

Umm I think the fix for that is just to rerun it acouple times till it works. Ill keep my eye open for the solultion

@blackzhangwei
Copy link

I'm in the same situation as you.i try to find solution

@Hyphonic
Copy link

^Doesnt work

@iceeburr
Copy link

Has anyone found a solution? If you did reply here or contact me on Discord - iceeburr#0746. Thanks!

@DDGay
Copy link

DDGay commented Feb 8, 2023

Same problem was solved by this SerpentAI/D3DShot#27

@Qfc9 Qfc9 pinned this issue Feb 12, 2023
@AI-M-BOT
Copy link

AI-M-BOT commented Apr 7, 2023

Another solution is to modify code
cam = dxcam.create(device_idx=0, output_idx=0)
Change device_idx and output_idx values (0, 1, 2, ...)
Your device info can be saw by:

dxcam.device_info()
dxcam.output_info()

@SKRecreated
Copy link

Another soloution that may work is making it windowed fullscreen/fullscreen windowed or windows

@Qfc9 Qfc9 closed this as completed Apr 11, 2023
@Alexandros444
Copy link

Another solution is to modify code cam = dxcam.create(device_idx=0, output_idx=0) Change device_idx and output_idx values (0, 1, 2, ...) Your device info can be saw by:

dxcam.device_info()
dxcam.output_info()

Does not change anything for me, there is only one Device[0] available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

11 participants