Socket
Socket
Sign inDemoInstall

opencv4js

Package Overview
Dependencies
0
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    opencv4js

Open Source Computer Vision Library compiled into a npm package


Version published
Weekly downloads
34
decreased by-5.56%
Maintainers
1
Install size
11.6 MB
Created
Weekly downloads
 

Readme

Source

OpenCV4js

npm npm bundle size Libraries.io SourceRank Snyk Vulnerabilities for npm package npm NPM

Description

This is the official OpenCV.js file packaged into a npm package for ease of use with no modifications in code whatsoever.

Please note that this package is not maintained by the OpenCV team/contributors.


Why OpenCV4js?

This package is updated whenever a new OpenCV version is released officially. By using the package in your OpenCV based Node.js project, you don't need to manually place the opencv.js file or worry about keeping it up to date later.

npm update will automatically fetch the updates, if any, just like any other package.

Also, the release numbers are synced with the official OpenCV releases for easy tracking. (Available v3.3.1+)


Installation

NPM

Install from command line

npm i --save opencv4js


Usage

With this package, you can skip placing the opencv.js file (as mentioned in the tutorials) and use the following code to import it:

cv = require('opencv4js');

instead of

cv = require('./opencv.js');

Or

replace

global.cv = require('./opencv.js');

with

global.cv = require('opencv4js');

Rest of the usage will be similar to the official docs and no other changes are required.


License

OpenCV4js is published under the same license as the official OpenCV software, Apache-2.0.

For more information, see the accompanying LICENSE file.

Keywords

FAQs

Last updated on 05 Oct 2020

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