crop data CoordinateSmooth
crop_data_CoordinateSmooth
功能:平滑crop_data中的坐标数据,使裁剪区域的移动更加平滑 输入: crop_data:包含裁剪数据的字典 frame_range:平滑窗口大小,用于计算相邻帧的范围 smooth_strength:平滑强度,控制平滑效果的强度 smooth_threshold:坐标变化阈值,只有当坐标变化超过阈值时才进行平滑 输出: crop_data:平滑后的裁剪数据 images:原始图像 masks:原始遮罩 Function: Smooth the coordinate data in crop_data to make the movement of the cropping area smoother Input: crop_data: Dictionary containing cropping data frame_range: Smoothing window size, used to calculate the range of adjacent frames smooth_strength: Smoothing strength, controls the intensity of smoothing effect smooth_threshold: Coordinate change threshold, smoothing is only applied when coordinate changes exceed the threshold Output: crop_data: Smoothed cropping data images: Original images masks: Original masks
Pack: ComfyUI-WJNodes
custom_nodes.ComfyUI-WJNodes
Inputs (5)
Outputs (1)
| Name | Type |
|---|---|
| crop_data | crop_data |