|
2 gadi atpakaļ | |
---|---|---|
.. | ||
data | 4 gadi atpakaļ | |
FunnyMirrorsImages.py | 4 gadi atpakaļ | |
FunnyMirrorsVideo.py | 4 gadi atpakaļ | |
Mirror-effect-1-image-3.jpg | 4 gadi atpakaļ | |
Mirror-effect-5-image-3.jpg | 4 gadi atpakaļ | |
README.md | 2 gadi atpakaļ |
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
python3 FunnyMirrorsImages.py
python3 FunnyMirrorsVideo.py ./data/Video3.mp4 0
The syntax here is python3 FunnyMirrorsVideo.py <VIDEO_FILE_PATH> <MODE_NUMBER>
. The MODE_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.