Visit ComfyUI Online for ready-to-use ComfyUI environment
Versatile node capturing frames from various sources for real-time video processing and AI art projects.
The Stream Reader node is designed to capture frames from a variety of sources, including URLs, cameras, monitors, windows, and Spout streams. This node is highly versatile, supporting batch processing to capture multiple frames simultaneously. It offers extensive configuration options, allowing you to set the source, resolution, frame rate, zoom, orientation, and interpolation method. Additionally, it can capture frames from multiple monitors or windows at the same time. The captured frames are returned as tensors, making them ready for further processing in downstream nodes. This node is particularly useful for real-time video processing, live streaming, and integrating various video sources into your AI art projects.
The source parameter specifies the origin of the video stream. It can be a URL, a camera device, a monitor, a window, or a Spout stream. This parameter is crucial as it determines where the frames will be captured from. The available options include URL, CAMERA, MONITOR, WINDOW, and SPOUT.
The resolution parameter allows you to set the width and height of the captured frames. This is important for ensuring that the frames meet the desired quality and size requirements for your project. The default value is typically set to a standard resolution like 512x512, but it can be adjusted according to your needs.
The frame_rate parameter controls the number of frames captured per second. A higher frame rate results in smoother video but requires more processing power. The default value is usually set to a standard frame rate like 30 FPS, but it can be customized based on the performance and quality requirements of your project.
The zoom parameter allows you to zoom in or out on the captured frames. This can be useful for focusing on specific areas of the video stream. The zoom level can be adjusted to fit the needs of your project.
The orientation parameter lets you set the orientation of the captured frames. Options include NORMAL, FLIPX, FLIPY, and FLIPXY, allowing you to flip the frames horizontally, vertically, or both. This is useful for correcting the orientation of the video stream or creating specific visual effects.
The interpolation parameter determines the method used to resize the captured frames. Options include various interpolation methods like LANCZOS4, which provides high-quality resizing. This parameter is important for maintaining the visual quality of the frames when they are resized.
The IMAGE output parameter provides the captured frames as tensors. These tensors represent the raw image data and can be used for further processing in downstream nodes. This output is essential for integrating the captured frames into your AI art projects.
The RGB output parameter provides the captured frames in RGB format. This is useful for color-based processing and visualization tasks. The RGB format is widely used in image processing and computer vision applications.
The MASK output parameter provides a mask of the captured frames. This can be used for segmentation tasks, where specific regions of the frames need to be isolated for further processing. The mask is a binary image that highlights the areas of interest in the captured frames.
Β© Copyright 2024 RunComfy. All Rights Reserved.