obs-kinect icon indicating copy to clipboard operation
obs-kinect copied to clipboard

Clipping via world coordinates

Open ScottSWu opened this issue 6 years ago • 2 comments

Hi, thanks for writing this plugin! Just wanted to drop an idea based on how I was using the kinect.

A neat feature would be to use the Kinect's accelerometer or do some floor plane detection to determine real world XYZ coordinates, then clip the image using those coordinates.

For example, you could remove the floor from the scene, or a wall.

ScottSWu avatar Feb 09 '20 03:02 ScottSWu

Hey, thank you for your suggestion!

I can see how to get the floor clip plane (using IBodyFrame::get_FloorClipPlane), which may require a calibration step (since the floor is only detected when the body feet are), and deriving the wall from there (just asking the user to set their distance), and sure, that could be useful. I'll keep it in mind. Thanks for the idea!

About the accelerometer, I just got no idea how to even access it from the Kinect SDK API :-/

SirLynix avatar Feb 09 '20 09:02 SirLynix

I started to use NuiSensorLib.lib (for KinectV2) which gives a lot more control and info about the sensor, including its accelerometer.

Which means I now have access to the accelerometer value for every Kinect model!

SirLynix avatar Dec 05 '20 16:12 SirLynix