Tim M 57b5cefde5 Updated all `.md` files to contain newest image 2 년 전
..
data 59339d228a Add files via upload 4 년 전
FunnyMirrorsImages.py 59339d228a Add files via upload 4 년 전
FunnyMirrorsVideo.py 59339d228a Add files via upload 4 년 전
Mirror-effect-1-image-3.jpg c5fdaf3530 Add files via upload 4 년 전
Mirror-effect-5-image-3.jpg c5fdaf3530 Add files via upload 4 년 전
README.md 57b5cefde5 Updated all `.md` files to contain newest image 2 년 전

README.md

Funny Mirrors using OpenCV

This repository contains code for Funny Mirrors using OpenCV blog post.

download

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.

Installing additional library

pip3 install vcam

How to run the code

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>. The MODE_NUMBER ranges from 0 to 7. It determines which funny mirror effect will be applied.

Some funny mirrors generated

AI Courses by OpenCV

Want to become an expert in AI? AI Courses by OpenCV is a great place to start.