Skip to content

A Blemish Removal tool in OpenCV that replicates the Heal Brush tool from Photoshop. The Heal Brush is used to remove blemishes, spots, and unwanted objects from an image.

Notifications You must be signed in to change notification settings

CzJLee/Blemish-Removal

Repository files navigation

Blemish Removal Tool in OpenCV

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.

How To Use

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.

Requirements

pip3 install opencv-python

Examples

Before After Blemish

Before After Birds

Image Credits

Silhouette of Person Standing on Field by luisclaz

Acne Pores Skin Pimple Female by Kjerstin_Michaela

About

A Blemish Removal tool in OpenCV that replicates the Heal Brush tool from Photoshop. The Heal Brush is used to remove blemishes, spots, and unwanted objects from an image.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages