> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-mintlify-b90d3c69.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# RandomCropImages - ComfyUI Built-in Node Documentation

> Complete documentation for the RandomCropImages node in ComfyUI. Learn its inputs, outputs, parameters and usage.

随机裁剪图像节点从每张输入图像中随机选取一个矩形区域，并将其裁剪为指定的宽度和高度。该操作常用于数据增强，以生成训练图像的变体。裁剪的随机位置由种子值决定，确保相同的裁剪结果可以复现。

## 输入

| 参数      | 描述                    | 数据类型  | 是否必需 | 范围                       |
| ------- | --------------------- | ----- | ---- | ------------------------ |
| `image` | 待裁剪的图像。               | IMAGE | 是    | -                        |
| `宽度`    | 裁剪区域的宽度（默认值：512）。     | INT   | 否    | 1 - 8192                 |
| `高度`    | 裁剪区域的高度（默认值：512）。     | INT   | 否    | 1 - 8192                 |
| `随机种`   | 用于控制裁剪随机位置的数值（默认值：0）。 | INT   | 否    | 0 - 18446744073709551615 |

**注意：** `width` 和 `height` 参数必须小于或等于输入图像的尺寸。如果指定的尺寸大于图像，则裁剪范围将限制在图像边界内。

## 输出

| 输出名称    | 描述            | 数据类型  |
| ------- | ------------- | ----- |
| `image` | 应用随机裁剪后得到的图像。 | IMAGE |

> 本文档由 AI 生成。如果您发现任何错误或有改进建议，欢迎贡献！ [在 GitHub 上编辑](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/RandomCropImages/zh.md)

***

**Source fingerprint (SHA-256):** `bc4aca8cc63bde28fee906a92463b73436ba48ba69d7c1ff13881ac900e252a8`
