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 add_1

ComfyUI Node: OpenCV add_1

Class Name

add_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 add_1 Description

The `add_1` node performs element-wise addition of two images or arrays using OpenCV.

OpenCV add_1:

The add_1 node is a part of the OpenCV image processing suite, designed to perform element-wise addition of two images or arrays. This node leverages the OpenCV library's add function, which is optimized for handling image data efficiently. The primary purpose of this node is to combine two images or arrays by adding their corresponding pixel values, which can be useful in various image processing tasks such as blending, enhancing brightness, or creating composite images. By utilizing this node, you can achieve seamless integration of image data, allowing for creative manipulation and enhancement of visual content. The node is particularly beneficial for AI artists and developers who wish to incorporate advanced image processing techniques into their workflows without delving into complex coding.

OpenCV add_1 Input Parameters:

src1

src1 is the first source image or array that you want to add. It serves as one of the primary inputs for the addition operation. The data type for this parameter is NPARRAY, which stands for a NumPy array, a common format for image data in Python. This parameter does not have a default value, as it is required for the operation.

src2

src2 is the second source image or array to be added to src1. Like src1, this parameter is also of type NPARRAY and is essential for the addition process. It allows you to specify the second set of pixel values that will be combined with those in src1.

dtype

dtype specifies the desired data type for the output array. This parameter is of type INT and determines how the resulting pixel values are stored. It is crucial for ensuring that the output image maintains the correct format and precision, especially when dealing with different image types or when specific data type constraints are required.

dst (optional)

dst is an optional parameter that allows you to specify a destination array where the result will be stored. If provided, this parameter should also be of type NPARRAY. Using this parameter can be beneficial for optimizing memory usage by reusing existing arrays.

mask (optional)

mask is another optional parameter of type NPARRAY. It acts as a binary mask that determines which pixels in the source images should be added. Only the pixels corresponding to non-zero mask values will be processed, allowing for selective addition and more control over the operation.

OpenCV add_1 Output Parameters:

nparray

The output parameter nparray is the result of the addition operation, returned as a NumPy array. This array contains the pixel values obtained by adding the corresponding elements of src1 and src2, potentially modified by the mask if provided. The output is crucial for further image processing tasks or for visualizing the combined result, offering a seamless way to integrate and manipulate image data.

OpenCV add_1 Usage Tips:

  • Ensure that src1 and src2 have the same dimensions and data type to avoid errors during the addition process.
  • Use the mask parameter to selectively add specific regions of the images, which can be useful for tasks like image blending or highlighting certain areas.
  • Consider specifying the dtype to match the data type of your input images to maintain consistency and avoid potential data type conversion issues.

OpenCV add_1 Common Errors and Solutions:

Dimension Mismatch Error

  • Explanation: This error occurs when src1 and src2 have different dimensions or shapes, preventing the element-wise addition.
  • Solution: Ensure that both input arrays have the same dimensions and data type before passing them to the node.

Invalid Data Type Error

  • Explanation: This error arises when the specified dtype is incompatible with the input arrays or the operation.
  • Solution: Verify that the dtype is appropriate for the input data and the desired output format, adjusting it if necessary to match the input arrays' data type.

OpenCV add_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 add_1