/Background-Changer

These python Jupyter notebooks are a step by step Tutorials to illustrate how to create an automatic background changer for images and videos that has a Green Screen background using NumPy, MatplotLib, OpenCv and MoviePy libraries.

Primary LanguageJupyter NotebookMIT LicenseMIT

Background Changer

  1. First, you need to read this notebook image_mask_using_numpy.ipynb which has an explanation of how masks in NumPy images (matrices) are manipulated and made.
  2. Second, read this notebook change_greenscreen.ipynb which explain how to change the background of an image that has a green screen as a background with any other image. Example: The image that we want to change its background Vandamme The background image background The new image after changing its background new image with its background changed
  3. Third, read this notebook automatic_video_background_changer.ipynb that explains how to change the background of a video with a fixed image as a background. In the example explained in the notebook we used this video Vandamme Video and changed its background with this image background to create this new video new video with its background changed.
  4. Fourth, read this notebook automatic_video_background_changer_with_video_as_background.ipynb that explains how to change the background of a video with another video. So basically the new generated video will be a combination of the two videos. In this notebook we used the same vandamme video and used this video as a background New York Streets and got this new generated video vandamme background changed with a video. Take a look at this composed video that shows all results.