TedHerman I was trying some of the examples in depthai/depthai_sdk/examples and while many worked as expected (for example, human pose estimation) I got an error trying PointcloudComponent (see below). I'm using an OAK-D and the point-cloud-projection example in gen2 experiments does work, so I would guess my hardware and lib setup is adequate. Closing OAK camera Traceback (most recent call last): File "pointcloud.py", line 4, in <module> color = oak.camera('color') AttributeError: 'OakCamera' object has no attribute 'camera'
jakaskerl Hi TedHerman Looks like you are using the old SDK version; the oak.create_camera() was changed to oak.camera(). python3 -m pip install depthai_sdk -U Hope this helps, Jaka
TedHerman Thanks! I tried this and here is the result: [2023-09-27 09:47:49] INFO [root.close:456] Closing OAK camera Traceback (most recent call last): File "pointcloud.py", line 8, in <module> oak.visualize(pcl, visualizer='depthai-viewer') File "/home/herman/anaconda3/lib/python3.8/site-packages/depthai_sdk/oak_camera.py", line 621, in visualize from depthai_sdk.visualize.visualizers.viewer_visualizer import DepthaiViewerVisualizer File "/home/herman/anaconda3/lib/python3.8/site-packages/depthai_sdk/visualize/visualizers/viewer_visualizer.py", line 5, in <module> import depthai_viewer as viewer ModuleNotFoundError: No module named 'depthai_viewer' Other examples in the depthai sdk worked except for IMUComponent, which also failed because it could not find depthai viewer.
jakaskerl Hi TedHerman python -m pip install depthai-viewer Then run the viewer with: python -m depthai_viewer Wait for the dependencies to install, then confirm the viewer works as expected. Then rerun the SDK script. Thanks, Jaka
TedHerman Thank you, that got the PointcloudComponent demo to working. The IMUComponent fails probably because my OAK-D is too old (firmware complaint). Not a problem since I wasn't planning on using IMU functions.