@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 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
+ ![Real-time face detection](https://user-images.githubusercontent.com/132509/160820773-cdb023a6-77a2-4f2e-a0e9-fb06931c8f9f.gif)
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
@@ -0,0 +1,13 @@
1
+ ## Patch opencv.js
2
+
3
+ - To create a patch for the current version of opencv.js, run:
4
+
5
+ ```
6
+ git diff > dist/opencv.js.patch
7
+ ```
8
+
9
+ - To apply the patch, run:
10
+
11
+ ```
12
+ git apply dist/opencv.js.patch
13
+ ```
package/dist/opencv.js CHANGED
@@ -42,7 +42,7 @@ if (typeof exports === 'object' && typeof module === 'object')
42
42
  exports["cv"] = cv;
43
43
 
44
44
  if (typeof Module === 'undefined')
45
- Module = {};
45
+ var Module = {};
46
46
  return cv(Module);
47
47
  }));
48
48
 
@@ -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
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@techstark/opencv-js",
3
- "version": "4.5.5-release.1",
3
+ "version": "4.5.5-release.2",
4
4
  "description": "OpenCV JavaScript version for node.js or browser",
5
5
  "main": "dist/opencv.js",
6
6
  "types": "dist/types/index.d.ts",