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

一个问题2 #19

Closed
AsadaFutaba opened this issue Sep 12, 2023 · 8 comments
Closed

一个问题2 #19

AsadaFutaba opened this issue Sep 12, 2023 · 8 comments
Labels
bug Something isn't working

Comments

@AsadaFutaba
Copy link

File "D:\python\AL_Yolo-master\apex.py", line 34, in
detector.work()
File "D:\python\AL_Yolo-master\detect.py", line 168, in work
self.run(self)
File "D:\python\AL_Yolo-master\detect.py", line 67, in run
dataset = LoadScreen(stride=stride, auto=pt)
File "D:\python\AL_Yolo-master\Capture.py", line 28, in init
self.camera = dxshot.create(region=REGION, output_color="BGR")
File "D:\python\AL_Yolo-master\dxshot.py", line 115, in create
File "D:\python\AL_Yolo-master\dxshot.py", line 73, in create
File "D:\python\AL_Yolo-master\dxcam\dxcam.py", line 34, in init
File "", line 6, in init
File "D:\python\AL_Yolo-master\dxcam\core\duplicator.py", line 20, in post_init
_ctypes.COMError: (-2005270524, '指定的设备接口或功能级别在此系统上不受支持。', (None, None, None, 0, None))

@EthanH3514
Copy link
Owner

报错信息显示与系统不支持(?),是否以管理员身份运行?还有你是使用的什么操作系统

@AsadaFutaba
Copy link
Author

从命令行启动的程序 使用了虚拟环境 win10的操作系统是否会导致不支持?

@EthanH3514
Copy link
Owner

在赋予管理员权限的终端内用命令行启动程序试试

虚拟环境是指的虚拟机吗?如果用的虚拟机 可能 会有这样的问题

@AsadaFutaba
Copy link
Author

虚拟环境是anaconda里 我尝试一下赋予管理员权限

@AsadaFutaba
Copy link
Author

当我使用管理员权限也出现了相同的状况

@EthanH3514
Copy link
Owner

可能是系统兼容性问题了,对于底层的问题我不知道怎么解决

@dzh200311
Copy link

这个问题我也遇到了,我的解决方法是在NVIDIA控制面板把Python.exe的图形处理器改成集成显卡,不要用默认的。应该是电脑有集显和独显混合的时候会有这个问题

@EthanH3514 EthanH3514 closed this as not planned Won't fix, can't repro, duplicate, stale Jan 7, 2024
@EthanH3514 EthanH3514 added bug Something isn't working wontfix This will not be worked on labels Jan 14, 2024
@EthanH3514
Copy link
Owner

这个应该是dxcam的问题,我在本地无法复现这个问题,但在dxcam的issue中找到了类似的问题,可以看一下他们是如何解决的:_ctypes.COMError: (-2005270524, 'The specified device interface or feature level is not supported on this system.', (None, None, None, 0, None)) (might be a Windows 11 error?) #38

@EthanH3514 EthanH3514 removed the wontfix This will not be worked on label Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants