pyk4a
pyk4a copied to clipboard
cap.color and cap.transformed_depth are not sync
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~
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.
@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
I set config like below
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