Chroma Keying
Chroma Keying is the process by which a specific colour element (chroma) is removed from a video scene and replaced (keyed) with a different element.

Step-1
Capture input video stream/photo with green background on a HTML canvas.
.png)
Step-2
Remove the green pixels from the canvas and replace them with white pixels.Merged the processed canvas with the desired background. Replce the green pixels of the canvas with the pixels of the background.