Kinect streaming Color/Depth sync with IMAQ
显示 更早的评论
Hi,
I'm trying to capture color and depth image at the 30FPS (Kinect default) and to save it on the disk.
The problem is to capture have the synchronization between both device and the same number of frames. Right now, I'm not able to achieve that really good.
Always have less frame or time sync problem or can only do it on a really short acquisition like 2 second. But I would like to do it like for a minute and maybe more.
Anyone have something to point ?
% code
colorVid = videoinput('kinect',1);
depthVid = videoinput('kinect',2);
colorVid.FramesPerTrigger = inf;
depthVid.FramesPerTrigger = inf;
Code for the disk logger and after I just to something like that :
% code
start([colorVid depthVid]);
wait([colorVid depthVid], 10);
stop([colorVid depthVid]);
and this is simple but still doesn't work well. I want to change the wait(...,10) with a GUI button start/stop later on, but first I would like to make it work well like that.
On disk, I took .avi for color and .mj2 for depth as specify by the doc.
thanks in advance,
Alex
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Kinect For Windows Sensor 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!