抠图
精准前后景分离。标准四类主体(人物/宠物/商品/图形印章)输出透明底 PNG;非标准主体(建筑/植物/车辆等)输出白底图(RGB 255,255,255)。
meitu image-cutout
使用示例
# 场景一:基础抠图(仅必填参数)
meitu image-cutout \
--image_url ./sample.jpg \
--prompt "人物" \
--json
# 场景二:完整参数 + 下载结果
meitu image-cutout \
--image_url ./sample.jpg \
--prompt "人物" \
--json \
--download-dir ./output参数说明
| 参数 | 必需 | 说明 |
|---|---|---|
--image_url | 是 | 别名:--image;类型:string;需要抠图的图片 |
--prompt | 是 | 类型:string;主体描述(如人物/宠物/商品等) |
--download-dir | 否 | 类型:string;将结果文件下载到指定本地目录 |
--output | 否 | 类型:string[];指定输出文件路径,按 data.result.urls 顺序映射 |
--json | 否 | 以 JSON 格式输出结果,便于脚本或 Agent 解析 |