orbbec / OrbbecSDK-K4A-Wrapper

This repo is forked from Azure-kinect-Sensor-SDK,contain the K4A wrapper for OrbbecSDK.
https://www.orbbec.com/
MIT License
31 stars 7 forks source link

pyk4a.depth_image_to_point_cloud Fails #13

Open jbrownkramer opened 10 months ago

jbrownkramer commented 10 months ago

Describe the bug Calling pyk4a.depth_image_to_point_cloud kills the python kernel.

To Reproduce Run the following code

import os
os.environ["K4A_DLL_DIR"] = r"C:\Users\jbrownkramer\projects\OrbbecSDK-K4A-Wrapper\build\bin"
import pyk4a

config = pyk4a.Config(depth_mode = pyk4a.DepthMode.WFOV_2X2BINNED, camera_fps = pyk4a.FPS.FPS_15)
k4a = pyk4a.PyK4A(config)
k4a.start()

capture = k4a.get_capture()
pyk4a.depth_image_to_point_cloud(capture.depth,k4a.calibration,thread_safe=False)

Expected behavior I expect it to produce a pointcloud. However, instead it takes down the python kernel.

Screenshots

image

Desktop (please complete the following information):

zhonghong322 commented 8 months ago

Are you using a self-packaged python SDK or an open source one? You can use the azure kinect python version provided by us.

https://github.com/orbbec/pyKinectAzure

jbrownkramer commented 8 months ago

Are you using a self-packaged python SDK or an open source one? You can use the azure kinect python version provided by us.

https://github.com/orbbec/pyKinectAzure

I am using pyk4a, which is open source.

I was not aware of pyKinectAzure, so that's interesting! Looking at the front page, it looks like it was inspired by pyKinectAzure.