返回顶部
b

bg-removerAI智能抠图

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
安全检测
已通过
155
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

bg-remover

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.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部