keijiro / NNCam

Virtual background with Unity Barracuda
Apache License 2.0
249 stars 35 forks source link

Detecting only a single person #18

Closed DutchRose-Jochem closed 2 years ago

DutchRose-Jochem commented 2 years ago

Hi,

I have another question: Would it be possible to just detect one person for the background removal? So there is one person standing in front of the webcam and people that happen to walk past, for the most part, get left out.

keijiro commented 2 years ago

The short answer is no. BodyPix doesn't support identification. You have to implement special algorithm for it by yourself.

DutchRose-Jochem commented 2 years ago

Okay, thanks for your answer! So the things described here won't work: https://github.com/tensorflow/tfjs/issues/2547 ?

keijiro commented 2 years ago

It would work. (The things described there is "It can detect multiple people". Identifying them is another problem.)