Socket
Book a DemoInstallSign in
Socket

n8n-nodes-opencv

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

n8n-nodes-opencv

An n8n package that provides access to OpenCV operations via OpenCV.js

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
6
-88%
Maintainers
0
Weekly downloads
 
Created
Source

n8n-nodes-opencv

This is an N8N community node. It lets you use OpenCV.js (a version of OpenCV that can run in browsers and Node.JS environments) in your N8N workflows.

OpenCV is an open-source image processing library that contains lots of computer vision algorithms. This node exposes some common OpenCV operations so they can be used in N8N workflows.

For example:

  • Image binarization/thresholding: simple binarization
  • Binary operations (e.g. NOT): bitwise NOT on binary image
  • Morphological operators (erosion, dilation, opening, closing): erosion performed on a binary image
  • Histogram computation a grayscale histogram computed on a color image
  • Various blurring algorithms an image being blurred with a Gaussian blur
  • Edge detection algorithms (e.g. Canny, Laplacian) the Canny algorithm used to detect the edges in an image
  • Contour detection an image with contours drawn on top of it

Installation
Resources
Development

Installation

Follow the installation guide in the n8n community nodes documentation.

Resources

Development

  • Clone the repo:
    git clone https://github.com/jreyesr/n8n-nodes-opencv.git
    
  • Run pnpm i to install dependencies.
  • Open the project in your editor.
  • Make changes, fix bugs, or add new operations. To add a new operation:
    • If adding a new operation on an existing module (e.g. another thresholding algorithm), add it on nodes/OpenCvNode/actions/<module_name>/<new_operation_name>.operation.ts, and register it on nodes/OpenCvNode/actions/<module_name>/index.ts
    • If adding an entirely new module (a broad set of OpenCV functionality, e.g. "object tracking" or "DNNs"), add it on nodes/OpenCvNode/actions/<new_module_name>, and register the new module on nodes/OpenCvNode/OpenCvNode.node.ts
  • Run pnpm lint to check for errors or pnpm lintfix to automatically fix errors when possible.
  • Test the node locally. Refer to Run your node locally for guidance.
  • (jreyesr only) Publish the package to npm.

Changelog

v1.0.0

Initial release

  • Binary operations (multiple thresholding algorithms, including adaptive algs)
  • Morphological operations (erosion, dilation, opening, closing)
  • Blurs (box, gaussian, bilateral, ...)
  • Convert a color image to grayscale
  • Contours and connected components: CC detection, contour drawing
  • Edge detection (Canny, Sobel, laplacian, ...)

License

Apache License v2.0

Keywords

n8n-community-node-package

FAQs

Package last updated on 15 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.