← 返回
未分类

Watermark Remover

Automatically detects and removes watermarks from images using AI-powered inpainting. Use when user asks to "remove watermark", "clean image", or "去水印".
自动检测并使用AI驱动的图像修复技术去除图片中的水印,适用于“去除水印”“清理图片”“去水印”等请求。
fusae fusae 来源
未分类 clawhub v0.1.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 306
下载
💾 0
安装
1
版本
#latest

概述

Watermark Remover

Automatically detects watermarks in image corners and removes them using LaMa AI model.

Installation

This skill requires the watermark-remover Python package. Install it first:

# Install from PyPI (when published)
pip install watermark-remover

# Or install from source
git clone https://github.com/yourusername/watermark-remover.git
cd watermark-remover
pip install -e .

Dependencies: Python 3.9+, opencv-python, numpy, Pillow, iopaint

Script Directory

Scripts in scripts/ subdirectory. Replace ${SKILL_DIR} with this SKILL.md's directory path.

ScriptPurpose
-----------------
scripts/main.pyWatermark removal CLI wrapper

Usage

python ${SKILL_DIR}/scripts/main.py <input> [options]

Options

OptionDescriptionDefault
------------------------------
Image file or directoryRequired
--outputOutput path/no_watermark
--corner-ratioCorner area ratio (0-1)0.15
--thresholdDetection sensitivity (lower = more sensitive)30
--paddingMask dilation pixels10
--previewGenerate mask preview onlyfalse
--no-lamaUse OpenCV instead of LaMafalse

Examples

# Single image
python ${SKILL_DIR}/scripts/main.py image.jpg

# Directory with custom output
python ${SKILL_DIR}/scripts/main.py ./photos/ --output ./cleaned/

# Preview detection (shows red marks on watermarks)
python ${SKILL_DIR}/scripts/main.py ./photos/ --preview

# Adjust detection sensitivity
python ${SKILL_DIR}/scripts/main.py image.jpg --corner-ratio 0.2 --threshold 20

# Use OpenCV inpaint (faster but lower quality)
python ${SKILL_DIR}/scripts/main.py image.jpg --no-lama

How It Works

  1. Scans image corners (default 15% area)
  2. Detects watermarks using edge detection + high-frequency analysis
  3. Generates precise mask
  4. Removes watermark using LaMa AI model (auto-downloads on first run)
  5. Falls back to OpenCV inpaint if LaMa fails

Supported Formats

JPG, JPEG, PNG, BMP, TIFF, WEBP

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-05-07 17:39 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

design-media

Nano Banana Pro

steipete
使用 Nano Banana Pro (Gemini 3 Pro Image) 生成或编辑图像。支持文生图、图生图及 1K/2K/4K 分辨率,适用于图像创建、修改及编辑请求,使用 --input-image 指定输入图像。
★ 429 📥 116,724
knowledge-management

Moonshot Web Search

fusae
通过Moonshot内置的$web_search工具搜索实时网络并返回简洁答案。优先使用此技能进行OpenClaw实时网络搜索,而非调用其他方式。
★ 0 📥 604
design-media

Openai Whisper

steipete
使用 Whisper CLI 进行本地语音转文字(无需 API 密钥)
★ 330 📥 93,608