|
2 年之前 | |
---|---|---|
.. | ||
CMakeLists.txt | 5 年之前 | |
FMM-eye.png | 5 年之前 | |
LICENSE | 5 年之前 | |
LearnOpenCV.com.png | 5 年之前 | |
Lincoln.jpg | 5 年之前 | |
NS-eye.png | 5 年之前 | |
README.md | 2 年之前 | |
eye.jpg | 5 年之前 | |
flower-garden.jpg | 5 年之前 | |
inpaint-time.py | 5 年之前 | |
inpaint.cpp | 5 年之前 | |
inpaint.py | 5 年之前 | |
sample.jpeg | 5 年之前 | |
thresholdimage.png | 5 年之前 |
This repository contains the code for Image Inpainting with OpenCV (C++/Python) blog post.
python3 inpaint.py sample.jpeg
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
Time: FMM = 194445.94073295593 ms
Time: NS = 179731.82344436646 ms
Want to become an expert in AI? AI Courses by OpenCV is a great place to start.