@ningh-o/opencv-js 4.11.0-default.1 → 4.12.0-core.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of @ningh-o/opencv-js might be problematic. Click here for more details.
- package/README.md +8 -14
- package/opencv.js +0 -0
- package/package.json +2 -4
- package/index.d.ts +0 -1535
package/README.md
CHANGED
|
@@ -1,25 +1,19 @@
|
|
|
1
1
|
# @ningh-o/opencv-js
|
|
2
2
|
|
|
3
|
-
Self-built [OpenCV.js](https://docs.opencv.org/4.
|
|
3
|
+
Self-built [OpenCV.js](https://docs.opencv.org/4.12.0/) 4.12.0 (core variant), packaged for npm by the [opencv-js build pipeline](https://github.com/ningh-o/opencv-js).
|
|
4
4
|
|
|
5
5
|
## Usage
|
|
6
6
|
|
|
7
7
|
```js
|
|
8
|
-
import
|
|
9
|
-
//
|
|
10
|
-
const cv = await cvModule;
|
|
11
|
-
console.log(cv.getBuildInformation());
|
|
12
|
-
```
|
|
13
|
-
|
|
14
|
-
CommonJS: `require("@ningh-o/opencv-js")` returns the same Promise:
|
|
8
|
+
import cv from "@ningh-o/opencv-js";
|
|
9
|
+
// or: const cv = require("@ningh-o/opencv-js");
|
|
15
10
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
11
|
+
// OpenCV.js initializes asynchronously:
|
|
12
|
+
await new Promise((resolve) => { cv.onRuntimeInitialized = resolve; });
|
|
13
|
+
console.log(cv.getBuildInformation());
|
|
19
14
|
```
|
|
20
15
|
|
|
21
|
-
- OpenCV version: **4.
|
|
22
|
-
- Variant: **
|
|
16
|
+
- OpenCV version: **4.12.0**
|
|
17
|
+
- Variant: **core**
|
|
23
18
|
- Built with Emscripten from the official OpenCV sources (WebAssembly + SIMD).
|
|
24
|
-
- TypeScript declarations included (`index.d.ts`).
|
|
25
19
|
- License: Apache-2.0 (see LICENSE).
|
package/opencv.js
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ningh-o/opencv-js",
|
|
3
|
-
"version": "4.
|
|
4
|
-
"description": "OpenCV.js 4.
|
|
3
|
+
"version": "4.12.0-core.0",
|
|
4
|
+
"description": "OpenCV.js 4.12.0 (core variant) — WebAssembly build of OpenCV for JavaScript",
|
|
5
5
|
"main": "./opencv.js",
|
|
6
|
-
"types": "./index.d.ts",
|
|
7
6
|
"files": [
|
|
8
7
|
"opencv.js",
|
|
9
|
-
"index.d.ts",
|
|
10
8
|
"LICENSE",
|
|
11
9
|
"README.md"
|
|
12
10
|
],
|