D
doubao-watermark-remover
About doubao-watermark-remover
A Python CLI skill for removing the bottom-right “豆包AI生成” watermark from Doubao images. It captures an alpha map before processing and uses Pillow for image edits.
Key features
- 01Capture a watermark alpha map
- 02Remove watermarks from images
- 03Batch image processing
- 04Infer output format from extension
Use cases
- 01Preparing Doubao images without the watermark
- 02Processing multiple watermarked images
- 03Creating an alpha map for a watermark pattern
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ zhengsuanfa/ doubao-watermark-remover --skill doubao-watermark-removerAfter installing, type/doubao-watermark-removerin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
.gitignoreREADME.mdreferences/algorithm.mdscripts/requirements.txtcapture_alpha_map.pyremove_watermark.pyDetails
From the project READMEDoubao Watermark Remover
Dependencies
- Python 3.9+
- Pillow (install with
pip install -r requirements.txt)
Quick start
-
Install dependencies in the scripts folder:
cd doubao-watermark-remover/scripts && pip install -r requirements.txt
-
Run the CLI:
python remove_watermark.py <input-image> <output-image>
CLI usage
- Parameters:
input-image: path to the Doubao watermarked imageoutput-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/capture_alpha_map.py: Tool to capture Doubao watermark alpha map.references/algorithm.md: Math, detection rules, and usage guide.
Workflow
- First time: Generate alpha map using
capture_alpha_map.py - Use
remove_watermark.pyfor batch processing.
Capturing Alpha Map (First Time Required)
Since Doubao watermark pattern may vary, you need to capture the alpha map first:
-
Generate a pure black image (0,0,0) and have Doubao add watermark to it
-
Run the capture tool:
python capture_alpha_map.py <black-with-watermark.png> <width> <height>Size options: 140x35 (small images) or 180x40 (large images)
-
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
Comments
Markdown supported