January 12, 2021

Rotoscoping with OpenCV/C++

One of the most basic problems in VFX is separating an object in a video from its background. The object then composited back into new environment or scene. This task has different names such as matting, keying or more popular term rotoscoping. In this demo you can see how a church in the foreground is separated from the background blue sky, which was later replaced with a sky full of stars. Read more

October 14, 2020

Chroma Keying with OpenCV/C++

Chroma keying - or blue/green screen matting - is a process of removing a specific color from the video to be replaced with another picture or video. Historically green or blue colors were used as a background because they are not dominant in human skin or clothes. However, when a weather forecaster puts on a green skirt it can lead to funny situations: Chroma keying became very popular technique not only on TV but in the movies. Read more

© Alexey Smirnov 2023