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
使用方法 / How to Use
Step-by-step guide — bilingual
分步流程 / Workflow
- 上传图片:选择本地图片,渲染到画布(仅读取,不处理)。
Upload your image — it is only read into the canvas.
- 执行抠图:点击【开始抠图】,本地 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.
- 绘制分割线:用曲线 / 直线工具在画布上画分割线,支持撤销(Ctrl+Z)与清空。
Draw split lines with the curve or line tool; Ctrl+Z to undo, one click to clear.
- 生成分区:点击【生成分区】,自动计算闭合区域并编号。竖向分割线从左往右编号,横向分割线从上往下编号。
Click “Generate Regions” — closed areas are computed and numbered (vertical lines left→right, horizontal lines top→bottom).
- 上色:点击分区(画布或列表),选择纯色 / 线性渐变,羽化滑块 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.
- 导出:选择贴回原始背景 PNG 或透明背景 PNG,直接下载到本地。
Export as PNG with the original background or a transparent background — downloaded straight to your device.
常用操作与快捷键 / Shortcuts & Tips
- 滚轮:缩放画布;Alt / 右键拖拽:平移。
Mouse wheel zooms; Alt / right-drag pans.
- Ctrl+Z:撤销分割线;Esc:退出微调 / 涂抹模式。
Ctrl+Z undoes a line; Esc exits refine/brush mode.
- 画布左上角可开关:蒙版、轮廓、编号、交界线显示。
Toggle mask, outline, numbering and border-line display from the top-left corner.
- 超大图(长边 > 3000px)会自动等比缩小以保证性能。
Very large images (long side > 3000px) are auto-scaled down for performance.
- 抠图后不满意?可返回上一步重新微调蒙版,修改会保留。
Not happy with the cutout? Go back and refine the mask — your changes are kept.
隐私说明 / 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.