pigo icon indicating copy to clipboard operation
pigo copied to clipboard

Can this be somehow used to smart-detect background image and replace it in realtime?

Open s3rj1k opened this issue 2 years ago • 2 comments

Can this be somehow used to smart-detect background image and replace it in realtime?

s3rj1k avatar Nov 17 '21 14:11 s3rj1k

You want something like what zoom or skype offer? I mean to retain the face unaltered but replace the background with a custom image? I suppose you tried the wasm version...

esimov avatar Nov 17 '21 16:11 esimov

@esimov yea, exactly, did not try anything yet, first thing that came to my mind when I saw this lib, was can I do smart background replacement with it :)

I know it can be done using python, but I like that this is golang lib :)

s3rj1k avatar Nov 17 '21 17:11 s3rj1k

I somehow forgot about this ticket, but to answer your question, I created a few WASM demos using the Pigo library and one of them is tackling exactly the same situation, only I'm not replacing the background image but blurring it out. To replace the background image with a custom one is possible, but it's not quite appealing because of limited facial landmark points supported by the library.

esimov avatar Sep 30 '22 08:09 esimov