# @paddlejs-mediapipe/opencv

> lightweight opencv.js

Latest version **0.0.4** (published 2022-03-08) · ISC license · 0 weekly downloads

## Install

```sh
npm install @paddlejs-mediapipe/opencv
pnpm add @paddlejs-mediapipe/opencv
yarn add @paddlejs-mediapipe/opencv
bun add @paddlejs-mediapipe/opencv
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2022-03-08 |
| First published | 2021-01-25 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 9.7 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | sukkee, changying01, yueshuangyan |
| Keywords | opencv, blur, core, ocr |

## Links

- npm: https://www.npmjs.com/package/@paddlejs-mediapipe/opencv
- npm.io page: https://npm.io/package/@paddlejs-mediapipe/opencv

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 0.0.4 (latest) — 2022-03-08
- 0.0.1 (beta) — 2021-01-25
- 0.0.3 — 2021-09-15
- 0.0.2 — 2021-06-02
- 1.0.0 — 2021-01-25

## README

[中文版](./README_cn.md)

# opencv_blur.js

A lightweight npm package which just includes modules **core imgproc js video**.
Modify the [opencv](/https://github.com/opencv/opencv) build_js script to package a few modules and api.

# opencv.js

Opencv3.4 contains most of the commonly used APIs, supporting cv.boxPoints api.

# opencv_ocr.js

Encapsulate the opencv API used by ocr module, Containing the following api:
```javascript
[
    'findContours', 
    'minAreaRect', 
    'boxPoints', 
    'fillPoly',
    'getPerspectiveTransform',
    'warpPerspective',
    'getRotationMatrix2D',
    'warpAffine',
    'resize'
]
```

# modules 
OpenCV modules:
--     To be built:                 **core imgproc js video**
--     Disabled:                    calib3d dnn features2d flann highgui imgcodecs ml photo stitching videoio world
--     Disabled by dependency:      objdetect
--     Unavailable:                 gapi java python2 python3 ts
--     Applications:                -
--     Documentation:               js
--     Non-free algorithms:         NO


# npm

```bash
npm install @paddlejs-mediapipe/opencv
```

# Usage

```javascript
import cv from '@paddlejs-mediapipe/opencv/library/opencv_blur';
let logit = cv.imread('canvas');
let dst = new cv.Mat();
let ksize = new cv.Size(5, 5);
let anchor = new cv.Point(-1, -1);
cv.blur(logit, dst, ksize, anchor, cv.BORDER_DEFAULT);
```

# tips

1、cv.mean api has precision error when calculating floating-point numbers

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