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

orbbecsdk python 按照sample测试depth_viewer.py报错 #26

Open
202264642365 opened this issue Feb 4, 2024 · 1 comment
Open

orbbecsdk python 按照sample测试depth_viewer.py报错 #26

202264642365 opened this issue Feb 4, 2024 · 1 comment

Comments

@202264642365
Copy link

逐行解释输出:

[02/03 22:30:02.711120][info][6406][Context.cpp:67] Context created with config: /home/eli/下载/pyorbbecsdk/config/OrbbecSDKConfig_v1.0.xml:表示使用指定路径的配置文件创建了一个上下文(Context)。

[02/03 22:30:02.711177][info][6406][Context.cpp:72] Context work_dir=/home/eli/下载/pyorbbecsdk:指定了上下文的工作目录。

[02/03 22:30:02.713594][warning][6406][OpenNIDeviceInfo.cpp:122] New openni device matched.:警告表示检测到新的OpenNI设备。

[02/03 22:30:02.713807][info][6406][LinuxPal.cpp:112] Create PollingDeviceWatcher!:表示创建了一个设备监视器。

[02/03 22:30:02.713875][info][6406][DeviceManager.cpp:15] Current found device(s): (1):提供找到的设备数量。

[02/03 22:30:02.713900][info][6406][DeviceManager.cpp:24] - Name: Astra Mini Pro, PID: 0x065b, SN/ID: AD7J933002N, Connection: USB2.0:提供找到设备的详细信息,包括名称、产品ID、序列号和连接类型。

[02/03 22:30:02.713973][info][6406][Pipeline.cpp:15] Try to create pipeline with default device.:尝试使用默认设备创建管道。

[02/03 22:30:02.714782][info][6406][OpenNIHostProtocol.cpp:567] Hardware versions: FW=5.8.22 (14), HW=0, Chip=6, Sensor=0, SYS=12:显示硬件版本信息。

[02/03 22:30:02.715096][error][6406][OpenNIHostProtocol.cpp:584] Get usb core type failed!:指示获取USB核心类型失败的错误。

[02/03 22:30:02.717785][info][6406][OpenNISensorFirmware.cpp:1185] Sensor serial number:AD7J933002N:提供传感器的序列号。

[02/03 22:30:02.718513][info][6406][OpenNISensorFirmware.cpp:1213] Firmware version RD1007:指定固件版本。

[02/03 22:30:02.718803][info][6406][OpenNISensorFirmware.cpp:1219] Device frequency 50:指示设备频率。

[02/03 22:30:02.731780][error][6406][OpenNIHostProtocol.cpp:957] Host Protocol sub cmd not supported!:报告与不受支持的主机协议子命令相关的错误。

[02/03 22:30:02.731864][warning][6406][OpenNISensorFirmware.cpp:153] OpenNI2 camera don't support Watchdog function!:警告不支持看门狗功能。

[02/03 22:30:02.732454][info][6406][OpenNIDevice.cpp:33] OpenNI device created! PID: 0x065b, SN: AD7J933002N:确认创建了OpenNI设备。

[02/03 22:30:02.732502][info][6406][DeviceManager.cpp:157] Device created successfully! Name: Astra Mini Pro, PID: 0x065b, SN/ID: AD7J933002N:确认设备成功创建。

[02/03 22:30:02.732567][info][6406][Pipeline.cpp:44] Pipeline created with device: {name: Astra Mini Pro, sn: AD7J933002N}, @0x2D2FF450:确认使用指定设备创建了管道。

[02/03 22:30:02.734178][info][6406][OpenNIDevice.cpp:566] Depth sensor has been created!:确认深度传感器已创建。

[02/03 22:30:02.734752][warning][6406][ObException.cpp:5] Invalid input, No matched video stream profile found!:警告无效的输入,未找到匹配的视频流配置。

Error: Invalid input, No matched video stream profile found!:重申错误消息。

depth profile: <class 'pyorbbecsdk.VideoStreamProfile'>:提供深度配置的信息。

[02/03 22:30:02.736562][info][6406][Pipeline.cpp:239] Try to start streams!:尝试启动流。

[02/03 22:30:02.771924][info][6406][Pipeline.cpp:252] Start streams done!:表示启动流成功。

[02/03 22:30:02.771959][info][6406][Pipeline.cpp:235] Pipeline start done!:确认管道成功启动。

[02/03 22:30:02.872143][warning][6406][Pipeline.cpp:328] Wait for frame timeout, you can try to increase the wait time! current timeout=100:警告等待帧超时,建议增加等待时间。

Traceback (most recent call last)::标志着Python回溯的开始。

File "examples/depth_viewer.py", line 107, in :指定发生错误的文件和行号。

cv2.imshow("Depth Viewer", depth_image): 发生错误的实际代码行,试图使用OpenCV显示深度图像。

cv2.error: OpenCV(4.9.0) ... The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Cocoa support.:指示与函数未实现相关的OpenCV错误。建议使用适当的支持重新构建OpenCV库。

[02/03 22:30:02.999396][info][6406][Pipeline.cpp:362] Try to stop pipeline!:尝试停止管道。

`[02/03

22:30:02.999476][info][6406][Pipeline.cpp:334] Try to stop streams!`:尝试停止流。

[02/03 22:30:03.108704][error][6406][OpenNIVideoSensor.cpp:703] OpenNI Depth stream stop failed!:报告停止OpenNI深度流失败的错误。

[02/03 22:30:03.111180][error][6406][OpenNIVideoSensor.cpp:719] OpenNI Depth stream stop completed.:指示尽管之前发生错误,但深度流的停止已完成。

[02/03 22:30:03.111229][info][6406][Pipeline.cpp:347] Sensor stream stopped, sensorType=OB_SENSOR_DEPTH:确认深度传感器流已停止。

[02/03 22:30:03.111248][info][6406][Pipeline.cpp:353] Stop streams done!:表示停止流成功。

[02/03 22:30:03.115952][info][6406][Pipeline.cpp:391] Stop pipeline done!:确认管道停止成功。

[02/03 22:30:03.116005][info][6406][Pipeline.cpp:72] Pipeline destroyed! @0x2D2FF450:表示管道已销毁。

[02/03 22:30:03.116030][info][6406][OpenNIDevice.cpp:37] OpenNI device destroyed! PID: 0x065b, SN: AD7J933002N:确认OpenNI设备已销毁。

[02/03 22:30:03.116065][info][6406][OpenNIVideoSensor.cpp:1058] OpenNIVideoSensor destroyed! sensorType=OB_SENSOR_DEPTH:表示OpenNIVideoSensor已销毁。

[02/03 22:30:03.117573][info][6406][Context.cpp:83] Context destroyed:确认上下文已销毁。

此日志输出记录了使用Orbbec SDK处理Astra Mini Pro深度传感器的程序的初始化、配置和执行过程。程序在尝试显示深度图像时遇到了与OpenCV相关的错误,导致随后的资源清理和销毁。


进一步说明:调用hello_orbbec.py文件大致没问题,还是会反馈三个问题:

[error][6769][OpenNIHostProtocol.cpp:584] Get usb core type failed!:显示获取 USB 核心类型失败的错误信息。

[error][6769][OpenNIHostProtocol.cpp:957] Host Protocol sub cmd not supported!:显示主机协议子命令不受支持的错误。

[warning][6769][OpenNISensorFirmware.cpp:153] OpenNI2 camera don’t support Watchdog function!:显示 OpenNI2 相机不支持看门狗功能的警告。

@jian-dong
Copy link
Contributor

@202264642365 你把57行打印改成下面的

print("depth profile: ", depth_profile)

看看分辨率是什么

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

2 participants