@techstark/opencv-js 4.5.5-release.1 → 4.5.5-release.2
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.
- package/README.md +9 -1
- package/dist/README.md +13 -0
- package/dist/opencv.js +1 -1
- package/dist/opencv.js.patch +14 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,18 +8,26 @@ TypeScript is supported (thanks to `mirada`).
|
|
|
8
8
|
|
|
9
9
|
## Using in react.js project
|
|
10
10
|
|
|
11
|
-
- See [live demo and code here](https://codesandbox.io/s/techstarkopencv-js-demo-page-f7gvk)
|
|
11
|
+
- See [live demo and code here](https://codesandbox.io/s/techstarkopencv-js-demo-page-f7gvk?file=/src/TestPage.jsx)
|
|
12
12
|
<img src="https://user-images.githubusercontent.com/132509/130320696-eaa3899b-2356-4e9f-bbc9-0a969465c58e.png" height="800px" alt="Live demo screenshot" />
|
|
13
13
|
- Get the test image from here [Lenna.png](test/Lenna.png)
|
|
14
14
|
|
|
15
|
+
## Using in Angular project
|
|
16
|
+
|
|
17
|
+
- See [code here](https://codesandbox.io/s/techstark-opencv-js-angular-demo-hkmc1n?file=/src/app/app.component.ts)
|
|
18
|
+
|
|
15
19
|
## Real-time face detection
|
|
16
20
|
|
|
17
21
|
- See [live demo and code here](https://codesandbox.io/s/opencv-js-face-detection-i1i3u)
|
|
18
22
|
|
|
23
|
+

|
|
24
|
+
|
|
19
25
|
# How to Use
|
|
20
26
|
|
|
21
27
|
- `npm install @techstark/opencv-js`
|
|
22
28
|
- or `yarn add @techstark/opencv-js`
|
|
29
|
+
- `import cv from "@techstark/opencv-js"`
|
|
30
|
+
- or `import * as cv from "@techstark/opencv-js"` for Angular
|
|
23
31
|
|
|
24
32
|
# Webpack Configuration (for browser usage)
|
|
25
33
|
|
package/dist/README.md
ADDED
package/dist/opencv.js
CHANGED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
diff --git a/dist/opencv.js b/dist/opencv.js
|
|
2
|
+
index b350408..29049b3 100644
|
|
3
|
+
--- a/dist/opencv.js
|
|
4
|
+
+++ b/dist/opencv.js
|
|
5
|
+
@@ -42,7 +42,7 @@ if (typeof exports === 'object' && typeof module === 'object')
|
|
6
|
+
exports["cv"] = cv;
|
|
7
|
+
|
|
8
|
+
if (typeof Module === 'undefined')
|
|
9
|
+
- Module = {};
|
|
10
|
+
+ var Module = {};
|
|
11
|
+
return cv(Module);
|
|
12
|
+
}));
|
|
13
|
+
|
|
14
|
+
|