@techstark/opencv-js 4.5.3-release.3 → 4.5.4-release.1
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 +14 -5
- package/dist/opencv.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,21 +1,30 @@
|
|
|
1
1
|
# opencv-js
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
OpenCV JavaScript version (NPM package) for node.js or browser. The file `opencv.js` was downloaded from https://docs.opencv.org/4.5.4/opencv.js
|
|
3
4
|
|
|
4
5
|
TypeScript is supported (thanks to `mirada`).
|
|
5
6
|
|
|
6
7
|
# Examples & Live Demo
|
|
8
|
+
|
|
7
9
|
## Using in react.js project
|
|
8
|
-
- See [live demo here](https://codesandbox.io/s/techstarkopencv-js-demo-page-f7gvk)
|
|
9
|
-
<img src="https://user-images.githubusercontent.com/132509/129300228-89955128-d852-4020-9ad5-30c69cc0c569.png" height="800px" alt="Live demo screenshot" />
|
|
10
10
|
|
|
11
|
-
- See
|
|
11
|
+
- See [live demo and code here](https://codesandbox.io/s/techstarkopencv-js-demo-page-f7gvk)
|
|
12
|
+
<img src="https://user-images.githubusercontent.com/132509/130320696-eaa3899b-2356-4e9f-bbc9-0a969465c58e.png" height="800px" alt="Live demo screenshot" />
|
|
13
|
+
- Get the test image from here [Lenna.png](test/Lenna.png)
|
|
14
|
+
|
|
15
|
+
## Real-time face detection
|
|
16
|
+
|
|
17
|
+
- See [live demo and code here](https://codesandbox.io/s/opencv-js-face-detection-i1i3u)
|
|
12
18
|
|
|
13
19
|
# How to Use
|
|
20
|
+
|
|
14
21
|
- `npm install @techstark/opencv-js`
|
|
15
22
|
- or `yarn add @techstark/opencv-js`
|
|
16
23
|
|
|
17
24
|
# Webpack Configuration (for browser usage)
|
|
18
|
-
|
|
25
|
+
|
|
26
|
+
If you use this package for browsers, you need to set some polyfills. In the file "webpack.config.js", set
|
|
27
|
+
|
|
19
28
|
```js
|
|
20
29
|
module.exports = {
|
|
21
30
|
resolve: {
|