0

Chroma-keying using javascript is possible or not.

How to use JavaScript for green screen effect.

13th May 2019, 1:24 PM
Pratik Mohite
Pratik Mohite - avatar
1 Answer
+ 1
You can read the content of a HTML <video> using <canvas>. So you want to take a "screenshot" 30 or 60 times per second and then chroma key the canvas manually. It's not too difficult but it depends on how well you know the canvas. An easy way to chroma key is to check whether the red, green, blue channels of a pixel are in some range (roughly the color of your greenscreen).
13th May 2019, 2:08 PM
Schindlabua
Schindlabua - avatar