Objective

You will be creating a web application which will perform real time video processing of a webcam video stream consisting of a green screen and replace it with a background video or an image of your choice.

Project Context

Have you ever seen a movie in which a superhero flies through the sky? You can see all the skyscrapers whizzing by in the background, and it looks so cool. Have you ever WONDERed how movie makers film such shots?

The special effects created during weather forecasts and many, many television shows and movies utilize a special tool called a green screen. Why is it called a green screen? Mainly because it consists of a large screen that is green! The green screen is an integral part of the special effects process known formally as chromakey.

Chromakeying, sometimes known as color keying, is the process of singling out a particular color in an electronic image and then using computer software to make that color transparent. This allows another image, which can be just about anything you can imagine, to show through.

This project is a good start for beginners, a new idea for intermediates and a refreshing hobby project for professionals. It involves the basic use of all of HTML, CSS and JS languages. Reason for following this tech-stack is that these languages are easy to use and are also fast in terms of execution time.

Project Stages

The project consists of the following stages:

project_stages

High-Level Approach

  • Capture input video stream with green background.
  • Refine the captured stream.
  • Merge the processed input stream with another background video or image of your choice.

The desired end result of this project is like this:

Applications

Some of the applications of Green Screen Video Processing are:-

  • Personalized background for video meeting applications like Zoom
  • An important technique utilized for heavy computer graphics in film industry.

OVERVIEW

Realtime Video Processing using ChromaKey (GreenScreen) Effect

View Complete Project