Socket
Socket
Sign inDemoInstall

opencv-bindings

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    opencv-bindings

opencv.js node bindings, source directly retrieved from https://docs.opencv.org/ and tested


Version published
Maintainers
1
Install size
8.01 MB
Created

Readme

Source

opencvjs

Node bindings for opencv.js (https://docs.opencv.org/4.5.3/d5/d10/tutorial_js_root.html)

Current version = 4.5.4

Development

Runs as a simple node.js container (built from vscode). Specify the environment variable OPENCV_VERSION and run the command fetch-opencv-js.sh. This will download the opencv version available at https://github.com/opencv/opencv/releases/tag/4.5.4

Once downloaded, run the commands:

npm install # make sure you're in the project directory
npm run test

Tests are based off the opencv.js node.js tutorial https://docs.opencv.org/4.5.4/dc/de6/tutorial_js_nodejs.html

Example usage

const cv = require('opencv-bindings');

// set a timeout, it takes some time for opencv.js to load since it's just one massive file
setTimeout(() => {
    console.log(cv.getBuildInformation());
}, 1000);

FAQs

Last updated on 06 Nov 2021

Did you know?

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc