Matting

通过独立 matting-api 为本地图片抠图、去背景并输出透明 PNG。每次先读取服务状态、队列、实时算法和模型能力,再检查输入图的 alpha、边框颜色、均匀度与亮度特征,自动选择可用的 BiRefNet、InSPyReNet、Luma 或 CorridorKey 组合;也支持显式算法/模型。用户提到抠图、去背景、透明底、绿幕/蓝幕、人物/产品/Logo/特效分离,或 image-generation 生成图需要透明化时都应使用。配置缺失或服务不可用时,由调用方明确回退到现有本地方法,不能伪装成 matting-api 成功。

zrong 88a3e76 20 files · 60.6 KB Updated

File contents

zrong/skills/tree/main/matting commit 88a3e7610e

Frequently asked questions

npx skillmds add zrong/matting