义乌市弘达服装厂
Yiwu Hongda Garment Factory

服装·箱包·宠物服装 专业生产厂家 服装行业深耕20年
Professional Manufacturer of Apparel · Bags · Pet Wear 20 Years Professional Experience In Garment Manufacturing

FACTORY × AI TOOL

抠图像素图

物体分区改色工具:上传图片 → 本地 AI 抠图 → 分割线分区 → 自动编号 → 分区上色 → 本地导出。图片与数据完全在浏览器本地运算,绝不上传服务器。

Image Recolor Tool: Upload → AI Cutout (runs locally) → Draw Split Lines → Auto Numbering → Recolor Regions → Export. Everything runs in your browser — no data ever leaves your device.

1

上传图片

选择图片渲染到画布
Upload an image

2

执行抠图

本地 SAM 自动识别主体,可点选/涂抹微调
AI cutout, click to refine

3

绘制分割线

直线 / 曲线画分区线,支持撤销清空
Draw split lines

4

生成分区

自动计算闭合区域并编号
Generate & number regions

5

分区上色

纯色 / 渐变,羽化保留纹理光影
Recolor regions

6

本地导出

贴回背景 PNG / 透明 PNG 下载
Export locally

在线工具 / Online Tool

首次加载约需下载 14MB 模型与 WASM 运行时(自动缓存),之后可离线使用。The model and runtime load once and are cached, then the tool works offline.

全屏打开工具 / Open in Full Screen ↗

使用方法 / How to Use

Step-by-step guide — bilingual

分步流程 / Workflow

  1. 上传图片:选择本地图片,渲染到画布(仅读取,不处理)。
    Upload your image — it is only read into the canvas.
  2. 执行抠图:点击【开始抠图】,本地 SAM 自动识别主体;可左键点击物体补充前景提示点(绿色+)、Alt/右键点击为背景点(红色-)微调,也可手动涂抹蒙版(笔刷补前景、橡皮擦除)。
    Click “Start Cutout” — SAM detects the subject locally. Left-click on the object adds a foreground point (green +), Alt/right-click adds a background point (red −). You can also paint the mask by hand.
  3. 绘制分割线:用曲线 / 直线工具在画布上画分割线,支持撤销(Ctrl+Z)与清空。
    Draw split lines with the curve or line tool; Ctrl+Z to undo, one click to clear.
  4. 生成分区:点击【生成分区】,自动计算闭合区域并编号。竖向分割线从左往右编号,横向分割线从上往下编号。
    Click “Generate Regions” — closed areas are computed and numbered (vertical lines left→right, horizontal lines top→bottom).
  5. 上色:点击分区(画布或列表),选择纯色 / 线性渐变,羽化滑块 0–30px 只作用于交界处,颜色不会溢出物体轮廓,原图纹理光影完整保留。
    Click a region, pick a solid color or linear gradient. Feathering (0–30px) applies only at borders; colors never spill outside the cutout and the original texture stays intact.
  6. 导出:选择贴回原始背景 PNG 或透明背景 PNG,直接下载到本地。
    Export as PNG with the original background or a transparent background — downloaded straight to your device.

常用操作与快捷键 / Shortcuts & Tips

隐私说明 / Privacy:工具无任何后端接口,无外部网络请求;图片经本地读取后仅存在于浏览器内存与画布中,模型与运行时已内置,完全离线运行。 No backend, no uploads: the image exists only in your browser's memory and canvas. The AI model and runtime are bundled — the tool works fully offline.