Skip to content

This repo includes a pipeline for green chromakey detection and masking using OpenCV.

License

Notifications You must be signed in to change notification settings

githubartema/Chromakey-detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Green chromakey detection

Abstract: this repo includes a pipeline for green chromakey detection and masking.

Description

The main idea is to use computationally efficient OpenCV methods. (yeah, C++ is so good😎)

Also, in some cases it can be fruitful to use some of YOLOs models in order to bound laptop zone and then to find the chromakey zone.

However, in this case we do not really need as there are no other green zones and it requires more computations.

Additionally, I believe we can compute running average for coordinates to make the masking smoother.

Installation

OpenCV library is required.

Installation:

pip install opencv-python

Usage

The directory tree should be:

.
├── main.py
├── person
│   └── person.jpeg
├── readme.md
├── result
│   └── result_video.mp4
├── utils
│   └── utils.py
└── video
    └── green.mp4

Usage example:

python3 main.py

About

This repo includes a pipeline for green chromakey detection and masking using OpenCV.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages