This repository contains code for Funny Mirrors using OpenCV blog post.
We show how to create some funny mirror effects using OpenCV. The blog is based on fundamental concepts like camera projection, intrinsic and extrinsic camera parameters and mesh-based image warping.
pip3 install vcam
Command line usage for running the code
-
Python
-
Running on sample images:
python3 FunnyMirrorsImages.py
-
Running on a video file:
python3 FunnyMirrorsVideo.py ./data/Video3.mp4 0
The syntax here is
python3 FunnyMirrorsVideo.py <VIDEO_FILE_PATH> <MODE_NUMBER>
. TheMODE_NUMBER
ranges from 0 to 7. It determines which funny mirror effect will be applied.
-
Want to become an expert in AI? AI Courses by OpenCV is a great place to start.