> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-docs-recommend-assets-api.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.

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

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

## 输入参数

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

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

## 输出参数

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