> ## Documentation Index
> Fetch the complete documentation index at: https://docs.comfy.org/llms.txt
> Use this file to discover all available pages before exploring further.

# FluxProCannyNode - ComfyUI Built-in Node Documentation

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

使用控制图像（canny）生成图像。此节点接收一张控制图像，并根据提供的提示词，在遵循控制图像中检测到的边缘结构的同时生成新图像。

## 输入

| 参数                     | 描述                                                                          | 数据类型    | 是否必填 | 范围                       |
| ---------------------- | --------------------------------------------------------------------------- | ------- | ---- | ------------------------ |
| `control_image`        | 用于 Canny 边缘检测控制的输入图像                                                        | IMAGE   | 是    | -                        |
| `prompt`               | 图像生成的提示词（默认：空字符串）                                                           | STRING  | 否    | -                        |
| `prompt_upsampling`    | 是否对提示词进行上采样。若启用，会自动修改提示词以生成更具创意的结果，但结果具有非确定性（相同种子不会产生完全相同的结果）。（默认：False）    | BOOLEAN | 否    | -                        |
| `canny_low_threshold`  | Canny 边缘检测的低阈值；若 `skip_preprocessing` 为 True 则忽略此参数（默认：0.1）                 | FLOAT   | 否    | 0.01 - 0.99              |
| `canny_high_threshold` | Canny 边缘检测的高阈值；若 `skip_preprocessing` 为 True 则忽略此参数（默认：0.4）                 | FLOAT   | 否    | 0.01 - 0.99              |
| `skip_preprocessing`   | 是否跳过预处理；若 `control_image` 已经是 Canny 边缘图像则设为 True，若为原始图像则设为 False。（默认：False） | BOOLEAN | 否    | -                        |
| `guidance`             | 图像生成过程的引导强度（默认：30）                                                          | FLOAT   | 否    | 1 - 100                  |
| `steps`                | 图像生成过程的步数（默认：50）                                                            | INT     | 否    | 15 - 50                  |
| `seed`                 | 用于创建噪声的随机种子。（默认：0）                                                          | INT     | 否    | 0 - 18446744073709551615 |

**注意：** 当 `skip_preprocessing` 设置为 True 时，`canny_low_threshold` 和 `canny_high_threshold` 参数将被忽略，因为控制图像假定已处理为 Canny 边缘图像。此时 `control_image` 将直接作为预处理后的图像使用。

## 输出

| 输出名称           | 描述              | 数据类型  |
| -------------- | --------------- | ----- |
| `output_image` | 基于控制图像和提示词生成的图像 | IMAGE |

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

***

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