orbbec / pyorbbecsdk

OrbbecSDK python binding
https://orbbec.github.io/pyorbbecsdk/
Apache License 2.0
84 stars 21 forks source link

Windows python SDK 安装完之后运行案例报错 #12

Open zxecho opened 1 year ago

zxecho commented 1 year ago

如题,按照教程全程无问题编译安装完sdk,运行color_viewer.py案例报错: [11/12 15:17:14.314609][info][38524][Context.cpp:67] Context created with config: xxxxxx\orbbec\Gemini2\pyorbbecsdk\config\OrbbecSDKConfig_v1.0.xml [11/12 15:17:14.314719][info][38524][Context.cpp:72] Context workdir=xxxxxx\orbbec\Gemini2\pyorbbecsdk\examples [11/12 15:17:14.386905][info][38524][DeviceManager.cpp:15] Current found device(s): (1) [11/12 15:17:14.387088][info][38524][DeviceManager.cpp:24] - Name: DaBai DCL, PID: 0x0701, SN/ID: AUGS83P005P, Connection: USB2.0 [11/12 15:17:14.387389][info][38524][Pipeline.cpp:15] Try to create pipeline with default device. [11/12 15:17:14.484060][error][38524][WinHelpers.cpp:83] MFCreateDeviceSource(deviceAttrs, &deviceSource) returned: HResult 0x80070005: "拒绝访问。" [11/12 15:17:14.484185][warning][38524][ObException.hpp:40] MFCreateDeviceSource(deviceAttrs, &deviceSource_) returned: HResult 0x80070005: "拒绝访问。" [11/12 15:17:14.484317][warning][38524][Gemini2Device.cpp:296] Execute failure! A libobsensor_exception has occurred!

还请指点一下如何解决

hzcyf commented 1 year ago

系统MediaFoundation库返回「拒绝访问」 错误, 可能:

  1. 是不是设备已经被其他应用打开了?
  2. 是不是有安装一些安全软件限制了USB设备/摄像头访问权限?

另外,可以在相同条件下尝试使用OrbbecViewer看下能不能打开设备。