https://github.com/arghyadeep-k/opencv4js
https://github.com/arghyadeep-k/opencv4js
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/arghyadeep-k/opencv4js
- Owner: arghyadeep-k
- License: apache-2.0
- Created: 2020-09-24T13:35:08.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-09-28T22:23:35.000Z (over 4 years ago)
- Last Synced: 2025-01-13T06:41:54.424Z (4 months ago)
- Size: 2.47 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OpenCV4js





## 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 3.0+ only)
## Installation
[](https://nodei.co/npm/opencv4js/)
### 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:
```javascript
cv = require('opencv4js');
```instead of
```javascript
cv = require('./opencv.js');
```Or
Replace
```javascript
global.cv = require('./opencv.js');
```
with
```javascript
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 Apache 2.0, same license as the official OpenCV.
For more information, see the accompanying LICENSE file.