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 Laplacian_1

ComfyUI Node: OpenCV Laplacian_1

Class Name

Laplacian_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 Laplacian_1 Description

Laplacian_1 applies the Laplacian operator for edge detection, enhancing image details and contours.

OpenCV Laplacian_1:

The Laplacian_1 node is designed to apply the Laplacian operator to an image, which is a common technique in image processing used to highlight regions of rapid intensity change. This operator is particularly useful for edge detection, as it emphasizes areas where the intensity of the image changes sharply, making it easier to identify boundaries and contours within the image. By using the Laplacian_1 node, you can enhance the details and edges in your images, which can be beneficial for various artistic and analytical applications. The node leverages the OpenCV library's Laplacian function, ensuring efficient and reliable processing of image data.

OpenCV Laplacian_1 Input Parameters:

src

The src parameter represents the source image to which the Laplacian operator will be applied. It is expected to be in the form of a NumPy array (NPARRAY). This parameter is crucial as it serves as the input image that will undergo edge detection.

ddepth

The ddepth parameter specifies the desired depth of the destination image. It is an integer value that determines the precision of the output image. A typical value is -1, which indicates that the output image will have the same depth as the source image.

ksize

The ksize parameter defines the size of the extended Sobel kernel used to compute the second derivatives. It is an integer value, and a common choice is 1, which means a 3x3 kernel. Larger values can be used for more smoothing, but they may also reduce the accuracy of edge detection.

scale

The scale parameter is a floating-point value that scales the computed Laplacian values. It allows you to adjust the intensity of the detected edges. A default value is typically 1.0, meaning no scaling is applied.

delta

The delta parameter is a floating-point value added to the results prior to storing them in the destination image. It can be used to adjust the brightness of the output image. A default value is usually 0.0.

borderType

The borderType parameter is an integer that defines the method used to extrapolate pixels outside of the image boundaries. Common options include cv2.BORDER_DEFAULT, which uses the default border handling method.

dst

The dst parameter is an optional NumPy array (NPARRAY) that can be used to store the output image. If not provided, a new array will be created to hold the results.

OpenCV Laplacian_1 Output Parameters:

nparray

The nparray output parameter is a NumPy array that contains the result of applying the Laplacian operator to the input image. This array highlights the edges and regions of rapid intensity change, making it useful for further image analysis or artistic effects.

OpenCV Laplacian_1 Usage Tips:

  • To achieve sharper edge detection, consider using a smaller ksize value, such as 1, which will apply less smoothing to the image.
  • Adjust the scale parameter to control the intensity of the edges in the output image. A higher scale can make edges more pronounced.

OpenCV Laplacian_1 Common Errors and Solutions:

Invalid depth of output image

  • Explanation: This error occurs when the ddepth parameter is set to a value that is not compatible with the source image's depth.
  • Solution: Ensure that the ddepth parameter is set to -1 or a valid depth value that matches the source image's depth.

Unsupported border type

  • Explanation: This error arises when an invalid borderType is specified.
  • Solution: Use a valid borderType such as cv2.BORDER_DEFAULT to handle image borders correctly.

OpenCV Laplacian_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 Laplacian_1