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 addText_0

ComfyUI Node: OpenCV addText_0

Class Name

addText_0

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 addText_0 Description

Overlays text on images using OpenCV, allowing control over font, size, color, and style.

OpenCV addText_0:

The addText_0 node is designed to overlay text onto an image using OpenCV's addText function. This node is particularly useful for AI artists who want to annotate images with text, such as adding captions, labels, or any textual information directly onto the visual content. By leveraging OpenCV's capabilities, this node allows for precise control over the text's appearance, including its font, size, color, and style. This functionality is essential for creating visually appealing and informative images, enhancing the storytelling aspect of your artwork.

OpenCV addText_0 Input Parameters:

img

This parameter represents the image onto which the text will be added. It is expected to be in the form of a NumPy array (NPARRAY), which is a common format for images in OpenCV. The image serves as the canvas for the text overlay.

text

The text parameter specifies the string of characters that you want to overlay on the image. This can be any text you wish to display, such as a title, label, or annotation.

org

The org parameter defines the starting point (origin) for the text on the image. It is specified as a string, typically representing coordinates in the format (x, y), where x and y are the horizontal and vertical positions, respectively.

nameFont

This parameter indicates the font name to be used for the text. It is a string that specifies the desired font style, allowing you to choose from various font options available in your system or application.

pointSize

The pointSize parameter determines the size of the text in points. It is an integer value that affects how large or small the text appears on the image.

color

The color parameter specifies the color of the text. It is a string that typically represents a color in a format such as RGB or hexadecimal, allowing you to customize the text's appearance to match your design.

weight

This parameter controls the weight (or thickness) of the text. It is an integer value that can be adjusted to make the text bolder or lighter, depending on your preference.

style

The style parameter defines the style of the text, such as italic or normal. It is an integer value that corresponds to different text styles available in the font.

spacing

The spacing parameter specifies the spacing between characters in the text. It is an integer value that allows you to adjust the distance between each character, providing flexibility in text layout.

OpenCV addText_0 Output Parameters:

unknown

The output parameter is labeled as unknown, indicating that the function does not return a specific value. Instead, the primary effect of the node is the modification of the input image by adding the specified text onto it.

OpenCV addText_0 Usage Tips:

  • Ensure that the org parameter is set correctly to position the text where you want it on the image. Experiment with different coordinates to achieve the desired placement.
  • Choose a color that contrasts well with the background of your image to ensure the text is readable. Consider using complementary colors for better visibility.
  • Adjust the pointSize and weight parameters to make the text stand out without overwhelming the image. Finding the right balance can enhance the overall aesthetic of your artwork.

OpenCV addText_0 Common Errors and Solutions:

Invalid image format

  • Explanation: The img parameter is not in the expected NumPy array format.
  • Solution: Ensure that the image is correctly loaded and converted to a NumPy array before passing it to the node.

Incorrect origin format

  • Explanation: The org parameter is not specified in the correct format.
  • Solution: Use a string format like (x, y) to define the text's starting position on the image.

Unsupported font name

  • Explanation: The nameFont parameter specifies a font that is not available.
  • Solution: Verify that the font name is correct and available in your system or application. Consider using a default font if necessary.

OpenCV addText_0 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 addText_0