modelscope.cn

doubao-watermark-remover

Remove the visible Doubao (豆?

Installation

$ npx skills add https://modelscope.cn

Also in this package

Other skills from modelscope.cn · top by installs.

npx skills add https://modelscope.cn

Browse all from modelscope.cn

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,826 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

Doubao Watermark Remover

Dependencies

  • Python 3.9+
  • Pillow (install with pip install -r requirements.txt)

Quick start

  1. Install dependencies in the scripts folder:

- cd doubao-watermark-remover/scripts && pip install -r requirements.txt

  1. Run the CLI:

- python remove_watermark.py <input-image> <output-image>

CLI usage

  • Parameters:

- input-image: path to the Doubao watermarked image - output-image: path for the cleaned image (format inferred from extension)

Example:

python remove_watermark.py ./in.png ./out.png

What this skill provides

  • scripts/remove_watermark.py: CLI entry point and core algorithm.
  • scripts/capturealphamap.py: Tool to capture Doubao watermark alpha map.
  • references/algorithm.md: Math, detection rules, and usage guide.

Workflow

  1. First time: Generate alpha map using capturealphamap.py
  2. Use remove_watermark.py for batch processing.

Capturing Alpha Map (First Time Required)

Since Doubao watermark pattern may vary, you need to capture the alpha map first:

  1. Generate a pure black image (0,0,0) and have Doubao add watermark to it
  2. Run the capture tool:

`` python capturealphamap.py <black-with-watermark.png> <width> <height> `` Size options: 140x35 (small images) or 180x40 (large images)

  1. The tool will save the alpha map to assets/ folder

Notes

  • Doubao watermark "豆包AI生成" appears in the bottom-right corner
  • Script uses Pillow for image IO and per-pixel edits
  • Output format is inferred from the output file extension