图层工具:图像自动裁剪 V2(高级)
节点功能:V2新增"original"比例模式以及可开关背景填充,还有4种缩放策略可选。LayerUtility: ImageAutoCrop V2(Advance)-
节点中英文对比
图层工具:图像自动裁剪 V2(高级)
fill_background
background_color
aspect_ratio
proportional_width
proportional_height
scale_to_side
scale_to_length
detect
border_reserve
ultra_detail_range
matting_method
sam_model
grounding_dino_model
sam_threshold
sam_prompt
LayerUtility: ImageAutoCrop V2(Advance)
fill_background
background_color
aspect_ratio
proportional_width
proportional_height
scale_to_side
scale_to_length
detect
border_reserve
ultra_detail_range
matting_method
sam_model
grounding_dino_model
sam_threshold
sam_prompt
图层工具:图像自动裁剪 V2(高级) - 参数说明
输入参数
image
输入的图像序列。
mask
可选的外部遮罩输入。
输出参数
cropped_image
自动裁剪后的图像序列。
box_preview
显示裁剪框的预览图。
cropped_mask
与裁剪图像一致的掩膜区域。
控件参数
fill_background
是否填充背景颜色。
background_color
填充背景的颜色值(HEX 格式)。
aspect_ratio
目标裁剪宽高比。可选值:1:1、3:2、4:3、16:9、2:3、3:4、9:16、custom、detect_mask、original。
proportional_width
自定义比例下的宽度值。
proportional_height
自定义比例下的高度值。
scale_to_side
裁剪结果是否缩放到指定边。可选值:None、longest、shortest、width、height。
scale_to_length
缩放边目标长度。
detect
检测掩膜边界方式。
min_bounding_rect 常用于精确裁边;max_inscribed_rect 保留更多主体区域;mask_area 用于整体掩膜区域定位。
border_reserve
在裁剪框基础上保留的边界像素。
ultra_detail_range
掩膜细节增强半径,0 表示禁用。
matting_method
前景分割算法。可选值:RMBG 1.4、SegmentAnything。RMBG 1.4 精度适中速度快;SegmentAnything 精度高但加载模型需时间。
sam_model
使用的 Segment Anything 模型。
grounding_dino_model
使用的 GroundingDINO 模型。
sam_threshold
SAM 区域检测阈值,范围 0~1。
sam_prompt
SAM 检测的提示词。
暂无节点说明