Visit ComfyUI Online for ready-to-use ComfyUI environment
Capture images from webcam for AI art with resolution control and automatic triggering, enabling real-time visual data integration.
The WebcamCapture
node is designed to facilitate the capture of images directly from a webcam, making it an essential tool for AI artists who want to incorporate real-time visual data into their projects. This node allows you to specify the resolution of the captured image and whether the capture should be triggered automatically when queued. By leveraging this node, you can seamlessly integrate live webcam feeds into your creative workflows, enabling dynamic and interactive art generation.
This parameter specifies the source of the image, which in this case is set to "WEBCAM". It indicates that the image will be captured from a connected webcam.
This parameter defines the width of the captured image. It accepts integer values with a minimum of 0 and a maximum defined by MAX_RESOLUTION
. The default value is 0, which typically means the default resolution of the webcam will be used. Adjusting this value allows you to control the horizontal resolution of the image.
This parameter sets the height of the captured image. Similar to the width parameter, it accepts integer values ranging from 0 to MAX_RESOLUTION
, with a default value of 0. This allows you to control the vertical resolution of the image, ensuring it meets your specific requirements.
This boolean parameter determines whether the image capture should be triggered automatically when the node is queued. The default value is True
, meaning the capture will occur as soon as the node is processed. Setting this to False
would require manual triggering of the capture process.
The output of this node is an IMAGE
parameter, which contains the captured image from the webcam. This image can then be used in subsequent nodes for further processing, analysis, or creative manipulation. The captured image's resolution and quality will depend on the specified width and height parameters.
capture_on_queue
parameter to automate the capture process, especially in workflows that require continuous or repeated image captures.© Copyright 2024 RunComfy. All Rights Reserved.