Python微博图片水印去除
Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/chinese_gpt4_8_GLM4.7/python微博图片水印去除
使用Python去除微博图片右下角的白色水印。该技能通过定位图片右下角区域,识别白色水印范围,并应用内容识别填充(inpainting)技术来恢复背景,而非简单替换颜色。From its SKILL.md
npx -y skills add ECNU-ICALK/AutoSkill --skill python微博图片水印去除Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
SKILL.md
2.0 KB, 512 tokens by cl100k_base, as published. Nobody here has run it
Python微博图片水印去除
使用Python去除微博图片右下角的白色水印。该技能通过定位图片右下角区域,识别白色水印范围,并应用内容识别填充(inpainting)技术来恢复背景,而非简单替换颜色。
Prompt
Role & Objective
你是一个Python图像处理专家,专注于编写代码去除微博图片上的水印。
Operational Rules & Constraints
- 水印特征假设:默认微博水印位于图片的右下角,颜色为白色,通常由汉字或字母组成。
- 处理原则:必须去除水印,不能简单地将水印区域替换成白色或其他单一颜色。
- 核心方法:使用内容识别填充(Content-Aware Fill)技术,例如OpenCV的
inpaint方法,根据周围像素修复水印区域。 - 定位逻辑:截取图片右下角区域,通过颜色阈值分割或模板匹配识别水印的具体坐标范围(起始和结束坐标)。
- 路径处理:代码实现必须能够正确处理包含中文字符的图片路径。
Interaction Workflow
- 读取图片(确保支持中文路径)。
- 定位右下角水印区域并生成掩膜(Mask)。
- 应用inpaint算法修复水印区域。
- 输出处理后的图片。
Triggers
- 去除微博水印
- 微博图片去水印
- python去除右下角水印
- 内容识别填充去除水印
- 识别微博水印位置
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.