You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
we are trying to replace our Azure Kinects with Femto Bolts.
We use pyk4a as an easy to use python interface to connect to the kinects. Code is running since months with the kinects without problems.
After installing the Femto Bolt wrapper (copy dlls and libs into ..\Program... \Azure Kinect SDK v1.4.1\sdk\windows-desktop\amd64\release\lib and ...\bin) the standard Azure Kinect Viewer is working with the Femto Bolt (except (sometimes) some latency between color/depth - but this seems to be another issue). For now: lets say this works.
Now we try our python script to get the registered images (color2depth). This is a stripped down code:
import numpy as np
import pyk4a
from pyk4a import Config, PyK4A
def main():
k4a = PyK4A(
Config(
color_resolution=pyk4a.ColorResolution.RES_720P,
depth_mode=pyk4a.DepthMode.NFOV_UNBINNED,
synchronized_images_only=True,
camera_fps=pyk4a.FPS.FPS_30
)
)
k4a.start()
while True:
# Capture a frame
capture = k4a.get_capture()
# Get the depth and color images
depth_image = capture.depth
color_image = capture.color
depth_image_transformed = capture.transformed_depth ## <<<< femto bolt (wrapper?) problem
#... do stuff with transformed image
k4a.stop()
if __name__ == "__main__":
main()
It seems to be a mismatch of the format between K4A_IMAGE_FORMAT_CUSTOM16 and K4A_IMAGE_FORMAT_DEPTH16. I naively tried to fix it by hardcoding depth16 in the wrapper but it seems to be a bit more complex than that.
Hi!
we are trying to replace our Azure Kinects with Femto Bolts.
We use pyk4a as an easy to use python interface to connect to the kinects. Code is running since months with the kinects without problems.
After installing the Femto Bolt wrapper (copy dlls and libs into ..\Program... \Azure Kinect SDK v1.4.1\sdk\windows-desktop\amd64\release\lib and ...\bin) the standard Azure Kinect Viewer is working with the Femto Bolt (except (sometimes) some latency between color/depth - but this seems to be another issue). For now: lets say this works.
Now we try our python script to get the registered images (color2depth). This is a stripped down code:
... and this is the output:
So in rgbz.c the error because of the type mismatch occurs:
It seems to be a mismatch of the format between K4A_IMAGE_FORMAT_CUSTOM16 and K4A_IMAGE_FORMAT_DEPTH16. I naively tried to fix it by hardcoding depth16 in the wrapper but it seems to be a bit more complex than that.
Used versions:
pyk4a Version 1.5 (https://github.com/etiennedub/pyk4a/releases/tag/1.5.0),
python 3.9.16
orbbecsdk-k4a-wrapper: 1.93
windows 10
Thanks for any help with this!
The text was updated successfully, but these errors were encountered: