Visit ComfyUI Online for ready-to-use ComfyUI environment
Versatile node for capturing webcam or window images, ideal for AI artists integrating real-time visual data.
CaptureWebcam is a versatile node designed to facilitate the capture of images directly from your webcam or a specified window. This node is particularly useful for AI artists who need to integrate real-time visual data into their projects. By leveraging this node, you can seamlessly capture high-resolution images, which can then be used for various creative and analytical purposes. The node supports capturing images either from a webcam or directly from a window, providing flexibility depending on your specific needs. It also includes features to manage the capture process, such as pausing and resuming captures, and setting the captured image format. This makes it an essential tool for those looking to incorporate live visual data into their AI-driven art projects.
This parameter specifies the source of the image capture. It can be set to "WEBCAM" to capture images from the webcam. This parameter is crucial as it determines the source of the visual data that will be processed by the node.
This integer parameter defines the width of the captured image. It has a default value of 0, which means the node will use the maximum resolution available. The minimum value is 0, and the maximum value is determined by the MAX_RESOLUTION
constant. Adjusting this parameter allows you to control the resolution of the captured image, which can be important for balancing quality and performance.
Similar to the width parameter, this integer parameter sets the height of the captured image. It also has a default value of 0, with a minimum value of 0 and a maximum value defined by MAX_RESOLUTION
. This parameter helps in defining the aspect ratio and resolution of the captured image, ensuring it meets your specific requirements.
This boolean parameter determines whether the capture should be initiated automatically when the node is queued. The default value is True. Setting this parameter to False would require manual initiation of the capture process. This feature is useful for controlling when the capture should occur, providing flexibility in automated workflows.
The output parameter is an image captured from the specified source. This image can be used in various downstream processes, such as image analysis, enhancement, or as input for AI models. The captured image's resolution and quality depend on the input parameters set for width and height.
MAX_RESOLUTION
.© Copyright 2024 RunComfy. All Rights Reserved.