# opencv-ts

> This package is a work in progress to translate opecv with a typescript definition

Latest version **1.3.6** (published 2022-05-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install opencv-ts
pnpm add opencv-ts
yarn add opencv-ts
bun add opencv-ts
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.3.6 |
| Published | 2022-05-24 |
| First published | 2021-03-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 8.5 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 60 |
| Author | Grant Davidson |
| Maintainers | theothergrantdavidson |
| Keywords | typescript, opencvjs, opencv |

## Links

- npm: https://www.npmjs.com/package/opencv-ts
- Repository: https://github.com/theothergrantdavidson/opencv-ts
- Homepage: https://github.com/theothergrantdavidson/opencv-ts#readme
- Issues: https://github.com/theothergrantdavidson/opencv-ts/issues
- npm.io page: https://npm.io/package/opencv-ts

## Dependencies (1)

- [typescript](https://npm.io/package/typescript.md) ^4.2.3

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.3.6 (latest) — 2022-05-24
- 1.3.5 — 2022-05-03
- 1.3.4 — 2022-05-03
- 1.3.3 — 2022-05-02
- 1.3.2 — 2022-04-29
- 1.3.1 — 2022-04-29
- 1.3.0 — 2022-04-26
- 1.2.27 — 2022-04-26
- 1.2.26 — 2022-01-17
- 1.2.25 — 2022-01-10
- 1.2.24 — 2022-01-10
- 1.2.23 — 2022-01-10
- 1.2.22 — 2021-11-16
- 1.2.21 — 2021-11-12
- 1.2.20 — 2021-10-10
- … 24 more at https://npm.io/package/opencv-ts/versions

## README

# opencv-ts
Package for opencvjs in typescript (WIP), adding class and function definiitons progresssively.

## compatibility

Compatible with OpenCV 4.5 version

## example use

```typescript
import cv, { Mat, Rect } from "opencv-ts";

cv.onRuntimeInitialized = () => {
    const src = cv.imread("inputCanvas");
    const dst: Mat = new cv.Mat(src.cols, src.rows, cv.CV_8UC4);

    cv.resize(src, dst, new cv.Size(500, 500), 0, 0, cv.INTER_AREA);

    const roiRect: Rect = new cv.Rect(0, 0, 200, 200);

    const roi = dst.roi(roiRect);

    cv.imshow('outputCanvas', roi);
};

```

## Typings Progress
* Modules
  * Core
    * ~~Basic Structures~~
    * ~~Operations on Arrays~~
  * Image Processing
    * ~~Image Filtering~~
    * ~~Geometric Image Transformations~~
    * ~~Drawing Functions~~
    * ~~Color Space Conversions~~
    * ~~ColorMaps in OpenCV~~
    * ~~Planar Subdivision~~
    * ~~Histograms~~
    * ~~Miscellaneous Image Transformations~~
    * ~~Structural Analysis and Shape Descriptors~~
    * ~~Feature Detection~~
    * ~~Object Detection~~
    * ~~Image Segmentation~~
    * ~~Video: Object Tracking~~
    * 2D Features Framework
    * Computational Photography
      * Inpainting
    * Camera Calibration and 3D Reconstruction
      * Fisheye camera model

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