且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

动作触发视频录制

更新时间:2022-10-15 09:10:44

不是真的,但我想你需要的是:


1-当检测到骨架时触发记录(如果通过动作你的意思是人类运动)。这很容易,只是在SkeletalViewer示例中的nui_SkeletonFrameReady事件中触发记录。


或:


2-在图像上做自己的运动检测器您从Kinect获得的帧。在这种情况下,您可以使用随OpenCV下载包附带的OpenCV基本运动检测示例(易于与kinect集成在c ++代码中)


希望这会有所帮助。


So I have done some searching around the internets for a way to have the kinect start recording video when it detects motion in the room to no avail. It seems like a very simple concept and I feel like I have the programming experience to figure it out. I have just never used the Kinect SDK before.

Has anybody seen online anywhere a motion triggered video recording?

Not really, but I guess what you need is either:

1- trigger recording when a skeleton has been detected (if by motion you mean human motion). This is easy, just trigger recording in the nui_SkeletonFrameReady event in the SkeletalViewer example.

or:

2- do your own motion detector on the image frames you get from Kinect. In that case you can perhaps use the OpenCV basic motion detection examples that come with OpenCV download package (easy to integrate in the c++ code with kinect)

hope this helps.