@hophiphip/opencv-js
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

OpenCV JS

OpenCV for JavaScript compiled with Emscripten.

Installation

npm install @hophiphip/opencv-js

Example Usage

Import module and then wait for it to load.

// import module
import cv from '@hophiphip/opencv-js';

// await for wasm & script to load
await cv.ready;

// log build information
console.log(cv.getBuildInformation());

..or without top level await.

import cv from '@hophiphip/opencv-js';

cv.ready.then(cv => {
    console.log(cv.getBuildInformation());
});

Readme

Keywords

Package Sidebar

Install

npm i @hophiphip/opencv-js

Weekly Downloads

2

Version

0.0.6

License

MIT

Unpacked Size

9.1 MB

Total Files

5

Last publish

Collaborators

  • hophiphip