jasonmayes / Real-Time-Person-Removal

Removing people from complex backgrounds in real time using TensorFlow.js in the web browser
Apache License 2.0
5.17k stars 651 forks source link

How about using the mask provided in official BodyPix model? #4

Closed futrime closed 4 years ago

futrime commented 4 years ago

BodyPix officially contains a mask function, which could straightly returns a mask of the image. How about using it instead?

jasonmayes commented 4 years ago

I am already using Bodypix but the mask alone is not enough to make it robust.

james4388 commented 4 years ago

Sorry for late comment but you can you alpha channel of the mask and canvas globalCompositeOperation to blend it without for loop