SirLynix / obs-kinect

OBS Plugin to use a Kinect (all models supported) in OBS (and setup a virtual green screen based on depth and/or body detection).
GNU General Public License v2.0
425 stars 29 forks source link

Hey! Is there a way to to make it so that with the greenscreen effect there is no minimum distance required? #54

Closed L3-NR closed 3 years ago

L3-NR commented 3 years ago

Currently the greenscreen effect makes everything thats under the kinects detection range transparent. Is there a way or planned feature that would make it so that stuff outside its detection range doesn't get keyed?

SirLynix commented 3 years ago

Hello.

Each Kinect model has a minimum depth range below which it cannot read depth (tell how far the pixel is), theses values are reported as invalid (exactly the same as objects too far away from the sensor, or in "depth shadow"), this is an hardware limitation and I cannot do anything about it.

The only thing I can do is to try to filter out the result, which isn't an easy task to do (especially in realtime).

L3-NR commented 3 years ago

hm.

Would an option to make invalid value depths not be keyed be possible? Or would it just cause problems?

SirLynix commented 3 years ago

Considering invalid depth values in the greenscreen effect would look very bad, as it would include the flickering background/foreground as well. Which is why I didn't leave this option in the plugin.

L3-NR commented 3 years ago

Yeah thats understandable. Guess i'll have to put the kinect a little bit further away then.

Thanks!