gemini-watermark-remover

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Gemini 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

快速开始

  1. Install dependencies in the scripts folder:
    • cd skills/gemini-watermark-remover/scripts && pip install -r requirements.txt
  2. Run the CLI:
    • python remove_watermark.py <input-image> <output-image>
  1. 在脚本目录中安装依赖项:
    • cd skills/gemini-watermark-remover/scripts && pip install -r requirements.txt
  2. 运行CLI:
    • python remove_watermark.py <input-image> <output-image>

CLI usage

CLI使用说明

  • Parameters:
    • input-image
      : path to the Gemini watermarked image
    • output-image
      : path for the cleaned image (format inferred from extension)
Example:
python remove_watermark.py ./in.png ./out.png
  • 参数:
    • input-image
      : 带有Gemini水印的图片路径
    • output-image
      : 处理后图片的保存路径(格式由文件扩展名推断)
示例:
python remove_watermark.py ./in.png ./out.png

What this skill provides

本工具包含的内容

  • scripts/remove_watermark.py
    : CLI entry point and core algorithm.
  • assets/bg_48.png
    ,
    assets/bg_96.png
    : Pre-captured watermark alpha maps.
  • references/algorithm.md
    : Math, detection rules, and limits.
  • scripts/remove_watermark.py
    : CLI入口文件及核心算法。
  • assets/bg_48.png
    ,
    assets/bg_96.png
    : 预先捕获的水印alpha映射图。
  • references/algorithm.md
    : 算法原理、检测规则及限制说明。

Workflow

工作流程

  1. Use
    remove_watermark.py
    for one-off processing.
  2. If you need to adjust detection rules or alpha logic, read
    references/algorithm.md
    .
  1. 使用
    remove_watermark.py
    进行单次处理。
  2. 如需调整检测规则或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根据输出文件的扩展名自动推断。