Tim M 57b5cefde5 Updated all `.md` files to contain newest image il y a 2 ans
..
CMakeLists.txt e0624f6679 added image inpainting il y a 5 ans
FMM-eye.png e0624f6679 added image inpainting il y a 5 ans
LICENSE e0624f6679 added image inpainting il y a 5 ans
LearnOpenCV.com.png e0624f6679 added image inpainting il y a 5 ans
Lincoln.jpg 320a0d854f image inpainting images il y a 5 ans
NS-eye.png e0624f6679 added image inpainting il y a 5 ans
README.md 57b5cefde5 Updated all `.md` files to contain newest image il y a 2 ans
eye.jpg e0624f6679 added image inpainting il y a 5 ans
flower-garden.jpg 320a0d854f image inpainting images il y a 5 ans
inpaint-time.py e0624f6679 added image inpainting il y a 5 ans
inpaint.cpp e0624f6679 added image inpainting il y a 5 ans
inpaint.py e0624f6679 added image inpainting il y a 5 ans
sample.jpeg e0624f6679 added image inpainting il y a 5 ans
thresholdimage.png e0624f6679 added image inpainting il y a 5 ans

README.md

Image Inpainting with OpenCV (C++/Python)

This repository contains the code for Image Inpainting with OpenCV (C++/Python) blog post.

download

Usage

Python

python3 inpaint.py sample.jpeg

C++

g++ inpaint.cpp `pkg-config opencv --cflags --libs` -o inpaint
./inpaint sample.jpeg

You can also cmake as follows:

mkdir build && cd build
cmake ..
cmake --build . --config Release

The built code can then be used as follows:

./build/inpaint sample.jpeg

Performance Comparison

Time: FMM = 194445.94073295593 ms
Time: NS = 179731.82344436646 ms

AI Courses by OpenCV

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