|Arghyadeep Kundu 3cc8abf6e4||1 month ago|
|.gitignore||2 months ago|
|LICENSE||2 months ago|
|README.md||1 month ago|
|opencv.js||1 month ago|
|package.json||1 month ago|
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.
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+)
npm i --save opencv4js
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');
cv = require('./opencv.js');
global.cv = require('./opencv.js');
global.cv = require('opencv4js');
Rest of the usage will be similar to the official docs and no other changes are required.
OpenCV4js is published under the same license as the official OpenCV software, Apache-2.0.
For more information, see the accompanying LICENSE file.