Remove, replace, or blur image backgrounds using AI-powered segmentation (rembg/U2-Net). Use when the user asks to: (1) remove image background / make transparent, (2) replace background with a color or another image, (3) blur background like portrait mode, (4) cut out / extract foreground subject from a photo. Triggers on keywords like 抠图, 去背景, 换背景, 背景模糊, 透明背景, remove background, replace background, blur background, cutout.
基于 rembg (U2-Net) 的本地 AI 抠图工具,支持去除背景、替换背景、背景模糊。
首次使用前运行安装脚本:
bash
bash {baseDir}/scripts/install.sh
或手动安装:pip install rembg Pillow numpy onnxruntime
所有操作通过 {baseDir}/scripts/bg_remove.py 执行:
bash
python3 {baseDir}/scripts/bg_remove.py remove [-o output.png]
bash
bash
python3 {baseDir}/scripts/bg_remove.py blur [-r 15] [-o output.png]
-r 控制模糊半径,值越大越模糊,默认 15。
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 bg-remover-1776127023 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 bg-remover-1776127023 技能
skillhub install bg-remover-1776127023
文件大小: 4.05 KB | 发布时间: 2026-4-17 14:12