Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > opencv-comfyui > OpenCV accumulateWeighted_1

ComfyUI Node: OpenCV accumulateWeighted_1

Class Name

accumulateWeighted_1

Category
image/OpenCV
Author
geroldmeisinger (Account age: 1432days)
Extension
opencv-comfyui
Latest Updated
2026-07-22
Github Stars
0.04K

How to Install opencv-comfyui

Install this extension via the ComfyUI Manager by searching for opencv-comfyui
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter opencv-comfyui in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

OpenCV accumulateWeighted_1 Description

The `accumulateWeighted_1` node performs weighted image accumulation for blending and noise reduction.

OpenCV accumulateWeighted_1:

The accumulateWeighted_1 node is a powerful tool in image processing that leverages the OpenCV library's accumulateWeighted function. This node is designed to perform a weighted accumulation of images, which is particularly useful for tasks such as background subtraction, image blending, and noise reduction. By applying a weighted average to the input image (src) and the destination image (dst), it updates the destination image to reflect a blend of the two, controlled by the alpha parameter. This process allows for gradual changes in the image, making it ideal for applications where smooth transitions or gradual updates are needed. The optional mask parameter can be used to specify regions of interest, ensuring that only certain parts of the image are affected by the accumulation process. Overall, this node provides a flexible and efficient way to manage image data over time, enhancing the quality and consistency of visual outputs.

OpenCV accumulateWeighted_1 Input Parameters:

src

The src parameter represents the source image, which is a NumPy array (NPARRAY) that serves as the input for the accumulation process. This image is combined with the destination image (dst) using a weighted average. The quality and characteristics of the source image directly influence the outcome of the accumulation, as it contributes to the new state of the destination image.

dst

The dst parameter is the destination image, also a NumPy array (NPARRAY), which is updated with the weighted accumulation of itself and the source image (src). This parameter holds the accumulated result and is continuously modified as the node processes new input images. The initial state of dst can significantly affect the accumulation results, especially in the early stages of processing.

alpha

The alpha parameter is a floating-point value (FLOAT) that determines the weight of the source image in the accumulation process. It ranges from 0 to 1, where a value closer to 1 gives more weight to the source image, and a value closer to 0 gives more weight to the destination image. This parameter is crucial for controlling the rate of change in the accumulated image, allowing for fine-tuning of the blending effect.

mask

The mask parameter is an optional NumPy array (NPARRAY) that specifies which parts of the image should be affected by the accumulation. If provided, only the regions of the image where the mask is non-zero will be updated. This allows for selective processing, enabling you to focus on specific areas of interest while leaving other parts of the image unchanged.

OpenCV accumulateWeighted_1 Output Parameters:

nparray

The output parameter nparray is a NumPy array that contains the result of the weighted accumulation process. This array represents the updated destination image (dst) after applying the weighted average with the source image (src). The output reflects the cumulative effect of the accumulation over time, providing a smooth transition between image states and capturing gradual changes effectively.

OpenCV accumulateWeighted_1 Usage Tips:

  • To achieve a smooth transition effect, adjust the alpha parameter to a value that balances the influence of the source and destination images. A smaller alpha results in slower changes, while a larger alpha allows for quicker updates.
  • Use the mask parameter to focus the accumulation on specific areas of the image, which can be particularly useful for applications like background subtraction where only certain regions need to be updated.

OpenCV accumulateWeighted_1 Common Errors and Solutions:

TypeError: Expected Ptr<cv::UMat> for argument 'src'

  • Explanation: This error occurs when the input images are not in the expected format, typically a NumPy array.
  • Solution: Ensure that both src and dst are properly formatted as NumPy arrays before passing them to the node.

ValueError: Alpha must be between 0 and 1

  • Explanation: The alpha parameter is outside the valid range.
  • Solution: Adjust the alpha value to be within the range of 0 to 1 to ensure proper weighting in the accumulation process.

OpenCV accumulateWeighted_1 Related Nodes

Go back to the extension to check out more related nodes.
opencv-comfyui
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

OpenCV accumulateWeighted_1