A Blemish Removal tool in OpenCV that replicates the Healing Brush tool from Photoshop. The Healing Brush is used to remove blemishes, spots, and unwanted objects from an image.
The Healing Brush is used by first selecting the unwanted object. A target region is then selected to clone from and replace the unwanted object. The patch is then blended to create a seamless image with the object removed.
The Blemish Removal tool is great at removing pimples, unwanted objects or animals, or sensor dust.
python3 blemish.py -i <input_path> -o <output_path>
<input_path>
: Pathname of image to touchup. If no input path is given, a sample image will be used.
<output_path>
: (optional) The file name to save the final image.
Keyboard Shortcuts:
-
Press
ESC
to exit the program. -
Press
'z'
to undo. -
Press
's'
to save the image. -
Press
'['
or']'
to change the brush size, or move the brush size slider.
pip3 install opencv-python
Silhouette of Person Standing on Field by luisclaz
Acne Pores Skin Pimple Female by Kjerstin_Michaela