Skip to content

A college project in Python using OpenCV. A simple app that takes two images, one with green areas and one background image, and replaces the green regions with the background.

License

Notifications You must be signed in to change notification settings

ElenaChes/python-chroma-key-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Chroma Key App

A college project in Python using OpenCV.
A simple app that takes two images, one with green areas and one background image, and replaces the green regions with the background.

Content


Dependencies

  1. Python 3.7.0

The app may work with other versions, but this is the version that was used during development.

Installation

  1. Create a new directory, for example chromakey, and place app.py inside it.
  2. Open the directory in your terminal:
cd chromakey
  1. Create a virtual environment:
python -m venv opencv-env
  1. Activate the environment:
.\opencv-env\Scripts\activate
  1. Install required packages:
pip install opencv-contrib-python matplotlib

Usage

  1. Run the app using the following syntax:
python app.py img_filename bk_filename ofilename

Where:

  • img_filename - path to an image with a green screen.
  • bk_filename - path to the background image.
  • ofilename - path to save the edited image. If none is provided, it will be displayed instead.

About

A college project in Python using OpenCV. A simple app that takes two images, one with green areas and one background image, and replaces the green regions with the background.

Topics

Resources

License

Stars

Watchers

Forks

Languages