https://github.com/hophiphip/opencv-js
OpenCV for JavaScript compiled with Emscripten.
https://github.com/hophiphip/opencv-js
javascript opencv
Last synced: 2 months ago
JSON representation
OpenCV for JavaScript compiled with Emscripten.
- Host: GitHub
- URL: https://github.com/hophiphip/opencv-js
- Owner: hophiphip
- License: mit
- Created: 2022-04-25T17:21:54.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-08-28T17:53:40.000Z (almost 4 years ago)
- Last Synced: 2025-03-10T02:04:43.261Z (over 1 year ago)
- Topics: javascript, opencv
- Language: Shell
- Homepage:
- Size: 4.73 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OpenCV JS
OpenCV for JavaScript compiled with Emscripten.
## Installation
```sh
npm install @hophiphip/opencv-js
```
## Example Usage
Import module and then wait for it to load.
```js
// 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`.
```js
import cv from '@hophiphip/opencv-js';
cv.ready.then(cv => {
console.log(cv.getBuildInformation());
});
```