PyPatchMatch is a Cython wrapper of inpainting technique based on PatchMatch for restoring the miss area in an image.
The porject mainly based on a C implementation of PatchMatch and a cython wrapper of np.array <-> cv::Mat.
SYS_PREFIX
in setup.py
is the correct path of OpenCV libraries To build, run sh build.sh
.
PyPatchMatch_inpaint(input, mask, radius)
Args:
numpy.array
)numpy.array
)Return:
numpy.array
) demo.ipynb
is an example of inpainting images via PyPatchMatch.