Mimic Zoom webcam background feature run on browser
-
Read image from webcam
-
Run
bodyPix.segmentPerson
to get estimate person segments -
Turn segments into mask
bodyPix.toMask
-
Clip webcam image with mask using offscreenCanvas
-
Draw background image
-
Draw offCanvas on top of background
-
Done
No compile needed, from the folder, run:
# python 3
python -m http.server
# python 2
python -m SimpleHTTPServer
then access
http://localhost:8000