etiennedub / pyk4a

Python 3 wrapper for Azure-Kinect-Sensor-SDK
MIT License
287 stars 81 forks source link

cap.color and cap.transformed_depth are not sync #218

Open visonpon opened 10 months ago

visonpon commented 10 months ago

Hi @etiennedub , after get the aligned rgb and depth, i tried to save them, but there exist sync problem between them, the depth seems always slow than rgb, but the saved rgb/depth videos have same frames rate and frames. Hope you can give can advice, thanks~

lpasselin commented 10 months ago

Can you share the images and the script used to configure the device? They are supposed to be sync, unless you didn't configure it properly. Also since they are not using the same cameras, there is a slight difference.

etiennedub commented 10 months ago

@visonpon Is there a fixed time offset between the RGB and depth frames? Or the time difference increase with the video duration? The former would be expected, but not the latter

visonpon commented 10 months ago

I set config like below 21

after overlap the dilated depth(processed as a mask ) to rgb, and you can see that in first frame the depth can overlap suitable, but in second frame the depth not in the proper position and lead to unnatural seg

11