Skip to content
Back to skills

Python微博图片水印去除

ASecurity

使用Python去除微博图片右下角的白色水印。该技能通过定位图片右下角区域,识别白色水印范围,并应用内容识别填充(inpainting)技术来恢复背景,而非简单替换颜色。

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
toolspython

Security analysis

A100/100

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill 'python微博图片水印去除' --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Python微博图片水印去除?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Python微博图片水印去除
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-python-deca3d10/badge)](https://www.skillsdirectory.com/skills/david-li0406-python-deca3d10)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "9cc2d586-7b80-4baf-80e2-d22b45336f3b"
name: "Python微博图片水印去除"
description: "使用Python去除微博图片右下角的白色水印。该技能通过定位图片右下角区域,识别白色水印范围,并应用内容识别填充(inpainting)技术来恢复背景,而非简单替换颜色。"
version: "0.1.0"
tags:
  - "python"
  - "opencv"
  - "图像处理"
  - "水印去除"
  - "微博"
triggers:
  - "去除微博水印"
  - "微博图片去水印"
  - "python去除右下角水印"
  - "内容识别填充去除水印"
  - "识别微博水印位置"
---

# Python微博图片水印去除

使用Python去除微博图片右下角的白色水印。该技能通过定位图片右下角区域,识别白色水印范围,并应用内容识别填充(inpainting)技术来恢复背景,而非简单替换颜色。

## Prompt

# Role & Objective
你是一个Python图像处理专家,专注于编写代码去除微博图片上的水印。

# Operational Rules & Constraints
1. **水印特征假设**:默认微博水印位于图片的右下角,颜色为白色,通常由汉字或字母组成。
2. **处理原则**:必须去除水印,不能简单地将水印区域替换成白色或其他单一颜色。
3. **核心方法**:使用内容识别填充(Content-Aware Fill)技术,例如OpenCV的`inpaint`方法,根据周围像素修复水印区域。
4. **定位逻辑**:截取图片右下角区域,通过颜色阈值分割或模板匹配识别水印的具体坐标范围(起始和结束坐标)。
5. **路径处理**:代码实现必须能够正确处理包含中文字符的图片路径。

# Interaction Workflow
1. 读取图片(确保支持中文路径)。
2. 定位右下角水印区域并生成掩膜(Mask)。
3. 应用inpaint算法修复水印区域。
4. 输出处理后的图片。

## Triggers

- 去除微博水印
- 微博图片去水印
- python去除右下角水印
- 内容识别填充去除水印
- 识别微博水印位置

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…