gemini-watermark-remover
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseGemini Watermark Remover
Gemini水印移除工具
Dependencies
依赖项
- Python 3.9+
- Pillow (install with )
pip install -r requirements.txt
- Python 3.9+
- Pillow(通过安装)
pip install -r requirements.txt
Quick start
快速开始
- Install dependencies in the scripts folder:
cd skills/gemini-watermark-remover/scripts && pip install -r requirements.txt
- Run the CLI:
python remove_watermark.py <input-image> <output-image>
- 在脚本目录中安装依赖项:
cd skills/gemini-watermark-remover/scripts && pip install -r requirements.txt
- 运行CLI:
python remove_watermark.py <input-image> <output-image>
CLI usage
CLI使用说明
- Parameters:
- : path to the Gemini watermarked image
input-image - : path for the cleaned image (format inferred from extension)
output-image
Example:
python remove_watermark.py ./in.png ./out.png- 参数:
- : 带有Gemini水印的图片路径
input-image - : 处理后图片的保存路径(格式由文件扩展名推断)
output-image
示例:
python remove_watermark.py ./in.png ./out.pngWhat this skill provides
本工具包含的内容
- : CLI entry point and core algorithm.
scripts/remove_watermark.py - ,
assets/bg_48.png: Pre-captured watermark alpha maps.assets/bg_96.png - : Math, detection rules, and limits.
references/algorithm.md
- : CLI入口文件及核心算法。
scripts/remove_watermark.py - ,
assets/bg_48.png: 预先捕获的水印alpha映射图。assets/bg_96.png - : 算法原理、检测规则及限制说明。
references/algorithm.md
Workflow
工作流程
- Use for one-off processing.
remove_watermark.py - If you need to adjust detection rules or alpha logic, read .
references/algorithm.md
- 使用进行单次处理。
remove_watermark.py - 如需调整检测规则或alpha逻辑,请查阅。
references/algorithm.md
Notes
注意事项
- The script uses Pillow for image IO and per-pixel edits.
- Output format is inferred from the output file extension by Pillow.
- 本脚本使用Pillow进行图片IO和逐像素编辑。
- 输出格式由Pillow根据输出文件的扩展名自动推断。