闲社服务运行正常AI智能体自动化平台
b

AI智能抠图

技能标识:bg-remover

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.

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.0.0
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

AI智能抠图

bg-remover — 图片背景处理

基于 rembg (U2-Net) 的本地 AI 抠图工具,支持去除背景、替换背景、背景模糊。

依赖安装

首次使用前运行安装脚本:

bash
bash {baseDir}/scripts/install.sh

或手动安装:pip install rembg Pillow numpy onnxruntime

命令

所有操作通过 {baseDir}/scripts/bg_remove.py 执行:

去除背景(输出透明 PNG)

bash
python3 {baseDir}/scripts/bg_remove.py remove [-o output.png]

替换背景

bash

纯色背景(支持 hex、rgb、颜色名)


python3 {baseDir}/scripts/bg_remove.py replace -c #FF0000 [-o output.png]
python3 {baseDir}/scripts/bg_remove.py replace -c white [-o output.png]

图片背景

python3 {baseDir}/scripts/bg_remove.py replace -i bg.jpg [-o output.png]

背景模糊(人像模式)

bash
python3 {baseDir}/scripts/bg_remove.py blur [-r 15] [-o output.png]

-r 控制模糊半径,值越大越模糊,默认 15。

输出

  • - 默认输出路径为原文件名加后缀:nobg.png(去除)、newbg.png(替换)、_blur.png(模糊)
  • 所有输出均为 PNG 格式
  • 使用 -o 参数自定义输出路径

注意事项

  • - 首次运行会自动下载 U2-Net 模型(约 170MB),需要网络
  • 处理大图可能较慢,建议先缩小再处理
  • 抠图效果取决于前景与背景的对比度,简洁背景效果更好

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 bg-remover-1776127023 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 bg-remover-1776127023 技能

通过命令行安装

skillhub install bg-remover-1776127023

下载

⬇ 下载 bg-remover v1.0.0(免费)

文件大小: 4.05 KB | 发布时间: 2026-4-17 14:12

v1.0.0 最新 2026-4-17 14:12
Initial release of bg-remover:

- AI-powered tool for removing, replacing, or blurring image backgrounds using rembg (U2-Net).
- Supports background removal, solid color or image background replacement, and portrait-style background blur.
- Command-line script with flexible color/image input options and adjustable blur radius.
- Outputs processed images as PNG files, with customizable output paths.
- Automatically downloads required model on first use; installation instructions provided.
返回顶部