open-index/open-npm huggingface dataset:
npm package: @opencvjs/node
Description: [OpenCV.js](https://docs.opencv.org/4.x/d0/d84/tutorial_js_usage.html) for Node.js.
Author: ocavue
Latest version: 4.13.0-release.1

# @opencvjs/node

[OpenCV.js](https://docs.opencv.org/4.x/d0/d84/tutorial_js_usage.html) for Node.js.

## Installation

```bash
npm install @opencvjs/node
```

## Usage

`@opencvjs/node` exports a `loadOpenCV` function that returns a Promise that resolves to the OpenCV.js API.

```js
const { loadOpenCV } = require("@opencvjs/node");

const cv = await loadOpenCV();
const mat = new cv.Mat();
```

## TypeScript

`@opencvjs/node` exports a type `OpenCV` for the OpenCV.js API.

```ts
import { loadOpenCV, type OpenCV } from "@opencvjs/node";

const cv: typeof OpenCV = await loadOpenCV();
const mat: OpenCV.Mat = new cv.Mat();
```

## Example

[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/fork/github/ocavue/opencvjs/tree/master/examples/node)

## Credits

TypeScript definitions are based on the [@techstark/opencv-js](https://github.com/TechStark/opencv-js) and [mirada](https://github.com/cancerberoSgx/mirada) projects.

## License

Apache-2.0
npm package: @opencvjs/types
Description: This package contains the TypeScript definitions for the [OpenCV.js](https://docs.opencv.org/4.x/d0/d84/tutorial_js_usage.html) library.
Author: ocavue
Latest version: 4.13.0-release.1

# @opencvjs/types

This package contains the TypeScript definitions for the [OpenCV.js](https://docs.opencv.org/4.x/d0/d84/tutorial_js_usage.html) library.

## Installation

```bash
npm install @opencvjs/types
```

## Usage

```ts
import type { OpenCV } from "@opencvjs/types";
```

## Credits

TypeScript definitions are based on the [@techstark/opencv-js](https://github.com/TechStark/opencv-js) and [mirada](https://github.com/cancerberoSgx/mirada) projects.

## License

Apache-2.0
npm package: @opencvjs/web
Description: [OpenCV.js](https://docs.opencv.org/4.x/d0/d84/tutorial_js_usage.html) for browser.
Author: ocavue
Latest version: 4.13.0-release.1

# @opencvjs/web

[OpenCV.js](https://docs.opencv.org/4.x/d0/d84/tutorial_js_usage.html) for browser.

## Installation

```bash
npm install @opencvjs/web
```

## Usage

`@opencvjs/web` exports a `loadOpenCV` function that returns a Promise that resolves to the OpenCV.js API.

```js
import { loadOpenCV } from "@opencvjs/web";

const cv = await loadOpenCV();
const mat = new cv.Mat();
```

## TypeScript

`@opencvjs/web` exports a type `OpenCV` for the OpenCV.js API.

```ts
import { loadOpenCV, type OpenCV } from "@opencvjs/web";

const cv: typeof OpenCV = await loadOpenCV();
const mat: OpenCV.Mat = new cv.Mat();
```

## Example

[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/fork/github/ocavue/opencvjs/tree/master/examples/web-vite)

## Credits

TypeScript definitions are based on the [@techstark/opencv-js](https://github.com/TechStark/opencv-js) and [mirada](https://github.com/cancerberoSgx/mirada) projects.

## License

Apache-2.0
npm package: @opencvjs/worker
Description: [OpenCV.js](https://docs.opencv.org/4.x/d0/d84/tutorial_js_usage.html) for web worker.
Author: ocavue
Latest version: 4.13.0-release.1

# @opencvjs/worker

[OpenCV.js](https://docs.opencv.org/4.x/d0/d84/tutorial_js_usage.html) for web worker.

## Installation

```bash
npm install @opencvjs/worker
```

## Usage

`@opencvjs/worker` exports a `loadOpenCV` function that returns a Promise that resolves to the OpenCV.js API.

```js
import { loadOpenCV } from "@opencvjs/worker";

const cv = await loadOpenCV();
const mat = new cv.Mat();
```

## TypeScript

`@opencvjs/worker` exports a type `OpenCV` for the OpenCV.js API.

```ts
import { loadOpenCV, type OpenCV } from "@opencvjs/worker";

const cv: typeof OpenCV = await loadOpenCV();
const mat: OpenCV.Mat = new cv.Mat();
```

## Example

[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/fork/github/ocavue/opencvjs/tree/master/examples/worker-vite)

## Credits

TypeScript definitions are based on the [@techstark/opencv-js](https://github.com/TechStark/opencv-js) and [mirada](https://github.com/cancerberoSgx/mirada) projects.

## License

Apache-2.0