> ## 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.

# WebcamCapture - ComfyUI Built-in Node Documentation

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

WebcamCapture 节点用于从摄像头设备捕获图像，并将其转换为可在 ComfyUI 工作流中使用的格式。该节点继承自 LoadImage 节点，并提供控制捕获尺寸和时机的选项。启用后，每次处理工作流队列时，节点都会捕获新图像。

## 输入

| 参数      | 描述                              | 数据类型    | 是否必填 | 范围                  |
| ------- | ------------------------------- | ------- | ---- | ------------------- |
| `图像`    | 用于捕获图像的摄像头输入源                   | WEBCAM  | 是    | -                   |
| `宽度`    | 捕获图像的期望宽度（默认值：0，使用摄像头原始分辨率）     | INT     | 是    | 0 至 MAX\_RESOLUTION |
| `高度`    | 捕获图像的期望高度（默认值：0，使用摄像头原始分辨率）     | INT     | 是    | 0 至 MAX\_RESOLUTION |
| `执行时捕获` | 启用后，每次处理工作流队列时都会捕获新图像（默认值：True） | BOOLEAN | 是    | -                   |

**注意：** 当 `width` 和 `height` 均设置为 0 时，节点将使用摄像头的原始分辨率。将任一维度设置为非零值将相应地调整捕获图像的大小。

## 输出

| 输出名称    | 描述                          | 数据类型  |
| ------- | --------------------------- | ----- |
| `IMAGE` | 捕获的摄像头图像，已转换为 ComfyUI 的图像格式 | IMAGE |

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

***

**Source fingerprint (SHA-256):** `551368150fc293309f917eabaa066f223b1fa1a016ffd3643b57b80c83f812cc`
