CLI tool for removing watermarks and unwanted objects from images using OpenCV inpainting.
⚠️ Ethical Note: Use this tool responsibly. Respect copyright and intellectual property rights. Only remove watermarks from images you own or have explicit permission to modify.
- 🤖 Automatic mask generation - Detects white/gray areas automatically
- ⚡ Fast processing - Uses efficient TELEA inpainting algorithm
- 🪶 Lightweight - Minimal dependencies, no heavy ML models required
- 🎯 Custom mask support - Use your own precise masks for better results
- 📦 Batch processing - Process entire directories of images at once
| Original (Con marca de agua) | Resultado (Procesado) |
|---|---|
![]() |
![]() |
💡 Nota: Para ver el resultado, agrega tus propias imágenes de prueba en la carpeta
examples/y actualiza las rutas.
Si no quieres instalar Python, puedes compilar la herramienta en un ejecutable .exe (Windows) o binario (Mac/Linux):
- Instala PyInstaller:
pip install pyinstaller - Genera el ejecutable:
pyinstaller --noconsole --onefile gui.py - El archivo portable estará en la carpeta
dist/.
(Próximamente: Descarga directa del ejecutable en la sección Releases)
git clone https://github.com/Mak01L/Mark-Water-Clean.git
cd Mark-Water-Clean
pip install -r requirements.txtpython main.py -i input.jpg -o output.jpgpython main.py -i input.jpg -o output.jpg -m mask.pngpython main.py -i ./images/input -o ./images/outputpython main.py -i ./images/input -o ./images/output -m mask.pngpython gui.py| Argument | Description | Required |
|---|---|---|
-i, --input |
Path to input image or directory | Yes |
-o, --output |
Path to save output image or directory | Yes |
-m, --mask |
Path to custom mask (white = remove) | No |
.jpg,.jpeg.png.bmp
For best results, create a PNG mask where:
- White pixels (255) = areas to remove
- Black pixels (0) = areas to keep
You can create masks using image editors like Photoshop, GIMP, or Paint.NET.
- 🎬 Video support (process entire video files)
- 🧠 Advanced AI inpainting (LaMa, MAT)
- 🖥️ GUI & Portable executable support
- 📦 Batch processing for multiple images
- 🔧 Interactive mask editor
MIT License - See LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request.

