# opencv4js

> Open Source Computer Vision Library compiled into a npm package

Latest version **3.4.3** (published 2020-10-05) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install opencv4js
pnpm add opencv4js
yarn add opencv4js
bun add opencv4js
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; large bundle.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.4.3 |
| Published | 2020-10-05 |
| First published | 2020-09-24 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 11.6 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Arghyadeep |
| Maintainers | arghyadeep |
| Keywords | opencv, image, video, processing, computer_vision |

## Links

- npm: https://www.npmjs.com/package/opencv4js
- Repository: https://codeberg.org/arghyadeep/opencv4js
- Homepage: https://codeberg.org/arghyadeep/opencv4js#readme
- Issues: https://codeberg.org/arghyadeep/opencv4js/issues
- npm.io page: https://npm.io/package/opencv4js

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 3.4.3 (latest) — 2020-10-05
- 3.4.2 — 2020-10-05
- 3.4.1 — 2020-10-05
- 3.4.0 — 2020-10-05
- 3.3.1 — 2020-10-05
- 0.0.1 — 2020-09-24

## README

# OpenCV4js

![npm](https://img.shields.io/npm/v/opencv4js)
![npm bundle size](https://img.shields.io/bundlephobia/min/opencv4js)
![Libraries.io SourceRank](https://img.shields.io/librariesio/sourcerank/npm/opencv4js) <!-- ![Depfu](https://img.shields.io/depfu/arghyadeep-k/opencv4js) --> 
![Snyk Vulnerabilities for npm package](https://img.shields.io/snyk/vulnerabilities/npm/opencv4js)
![npm](https://img.shields.io/npm/dt/opencv4js)
![NPM](https://img.shields.io/npm/l/opencv4js?color=blue)

## 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. 

<br>

## 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+)

<br>


## Installation

[![NPM](https://nodei.co/npm/opencv4js.png)](https://nodei.co/npm/opencv4js/)

### Install from command line
`npm i --save opencv4js`

<br>

## 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');
```
<br>

Rest of the usage will be similar to the official <a href="https://docs.opencv.org/master/dc/de6/tutorial_js_nodejs.html">docs</a> and no other changes are required.

<br>

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

For more information, see the accompanying LICENSE file.

---
_Source: https://npm.io/package/opencv4js · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
