@techstark/opencv-js 4.7.0-release.1 → 4.8.0-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
@@ -1,6 +1,6 @@
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.7.0/opencv.js
3
+ OpenCV JavaScript version (NPM package) for node.js or browser. The file `opencv.js` was downloaded from https://docs.opencv.org/4.8.0/opencv.js
4
4
 
5
5
  TypeScript is supported (thanks to `mirada`).
6
6
 
package/dist/README.md CHANGED
@@ -1,13 +1,33 @@
1
+ ## Build opencv.js
2
+
3
+ - see https://github.com/opencv/opencv/blob/4.x/platforms/js/README.md
4
+ - also https://docs.opencv.org/4.7.0/d4/da1/tutorial_js_setup.html
5
+
6
+ ```sh
7
+ cd ~/apps/emsdk
8
+ ./emsdk update
9
+ ./emsdk install 2.0.10
10
+ ./emsdk activate 2.0.10
11
+ ```
12
+
13
+ - build
14
+
15
+ ```sh
16
+ source ~/apps/emsdk/emsdk_env.sh
17
+ emcmake python ./platforms/js/build_js.py build_js --build_wasm
18
+ ```
19
+
1
20
  ## Patch opencv.js
2
21
 
3
22
  - To create a patch for the current version of opencv.js, run:
4
23
 
5
24
  ```
6
- git diff > dist/opencv.js.patch
25
+ git diff > temp.patch
26
+ mv temp.patch dist/opencv.js.patch
7
27
  ```
8
28
 
9
29
  - To apply the patch, run:
10
30
 
11
- ```
31
+ ```sh
12
32
  git apply dist/opencv.js.patch
13
33
  ```