@techstark/opencv-js 4.10.0-beta.1 → 4.11.0-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.
@@ -1,10 +1,10 @@
1
1
  diff --git a/dist/opencv.js b/dist/opencv.js
2
- index 1be6d42..9971ab6 100644
2
+ index af4111b..3ba8a69 100644
3
3
  --- a/dist/opencv.js
4
4
  +++ b/dist/opencv.js
5
- @@ -42,7 +42,7 @@ if (typeof exports === 'object' && typeof module === 'object')
6
- exports["cv"] = cv;
7
-
5
+ @@ -41,7 +41,7 @@ else if (typeof define === 'function' && define['amd'])
6
+ define([], () => cv);
7
+
8
8
  if (typeof Module === 'undefined')
9
9
  - Module = {};
10
10
  + var Module = {};
@@ -1,6 +1,6 @@
1
1
  import type { Algorithm, KeyPointVector, Mat, OutputArray } from "./_types";
2
2
  /**
3
- * https://docs.opencv.org/4.10.0/d0/d13/classcv_1_1Feature2D.html
3
+ * https://docs.opencv.org/4.11.0/d0/d13/classcv_1_1Feature2D.html
4
4
  */
5
5
  export declare class Feature2D extends Algorithm {
6
6
  /**
@@ -1,6 +1,6 @@
1
1
  import type { Feature2D, float, int } from "./_types";
2
2
  /**
3
- * https://docs.opencv.org/4.10.0/db/d95/classcv_1_1ORB.html
3
+ * https://docs.opencv.org/4.11.0/db/d95/classcv_1_1ORB.html
4
4
  */
5
5
  export declare class ORB extends Feature2D {
6
6
  constructor(nfeatures?: int, scaleFactor?: float, nlevels?: int, edgeThreshold?: int, firstLevel?: int, WTA_K?: int, scoreType?: ORBScoreType, patchSize?: int, fastThreshold?: int);
@@ -1,4 +1,4 @@
1
- import type { float, Point2f, Rect, Rect_, Size2f } from "./_types";
1
+ import type { float, Point2f, Rect, Size2f } from "./_types";
2
2
  /**
3
3
  * Each rectangle is specified by the center point (mass center), length of each side (represented by
4
4
  * [Size2f](#dc/d84/group__core__basic_1gab34496d2466b5f69930ab74c70f117d4}) structure) and the
@@ -51,13 +51,12 @@ export declare class RotatedRect {
51
51
  * anticlockwise).
52
52
  */
53
53
  constructor(point1: Point2f, point2: Point2f, point3: Point2f);
54
- boundingRect(): Rect;
55
- boundingRect2f(): Rect_;
54
+ static boundingRect(rect: RotatedRect): Rect;
55
+ static boundingRect2f(rect: RotatedRect): Rect;
56
56
  /**
57
- * returns 4 vertices of the rectangle
58
- *
59
- * @param pts The points array for storing rectangle vertices. The order is bottomLeft, topLeft,
60
- * topRight, bottomRight.
57
+ returns 4 vertices of the rectangle
58
+ * @param rect The rotated rectangle
59
+ * @returns Array of 4 points in order: bottomLeft, topLeft, topRight, bottomRight
61
60
  */
62
- points(pts: Point2f): Point2f;
61
+ static points(rect: RotatedRect): Point2f[];
63
62
  }
@@ -65,7 +65,7 @@ export declare class MinMaxLoc {
65
65
  }
66
66
  export declare function exceptionFromPtr(err: number): any;
67
67
  export declare function onRuntimeInitialized(): any;
68
- export declare function FS_createDataFile(arg0: string, path: string, data: Uint8Array, arg3: boolean, arg4: boolean, arg5: boolean): any;
68
+ export declare function FS_createDataFile(parent: string, name: string, data: Uint8Array, canRead: boolean, canWrite: boolean, canOwn: boolean): any;
69
69
  import { Algorithm, type LineTypes, Mat, type NormTypes, RotatedRect } from ".";
70
70
  import "../_cv";
71
71
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@techstark/opencv-js",
3
- "version": "4.10.0-beta.1",
3
+ "version": "4.11.0-release.1",
4
4
  "description": "OpenCV JavaScript version for node.js or browser",
5
5
  "main": "dist/opencv.js",
6
6
  "types": "dist/src/index.d.ts",
@@ -14,6 +14,14 @@
14
14
  "format": "prettier --write \"src/**/*.ts\"",
15
15
  "test": "jest"
16
16
  },
17
+ "devDependencies": {
18
+ "@types/jest": "^29.5.14",
19
+ "jest": "^29.7.0",
20
+ "jimp": "^1.6.0",
21
+ "prettier": "^3.5.3",
22
+ "ts-jest": "^29.3.4",
23
+ "typescript": "^5.8.3"
24
+ },
17
25
  "repository": {
18
26
  "type": "git",
19
27
  "url": "git+https://github.com/TechStark/opencv-js.git"
@@ -28,13 +36,5 @@
28
36
  "bugs": {
29
37
  "url": "https://github.com/TechStark/opencv-js/issues"
30
38
  },
31
- "homepage": "https://github.com/TechStark/opencv-js#readme",
32
- "devDependencies": {
33
- "@types/jest": "^29.5.6",
34
- "jest": "^29.7.0",
35
- "jimp": "^0.22.10",
36
- "prettier": "^3.0.3",
37
- "ts-jest": "^29.1.1",
38
- "typescript": "^5.1.6"
39
- }
39
+ "homepage": "https://github.com/TechStark/opencv-js#readme"
40
40
  }
@@ -1,7 +1,7 @@
1
1
  import type { Algorithm, KeyPointVector, Mat, OutputArray } from "./_types";
2
2
 
3
3
  /**
4
- * https://docs.opencv.org/4.10.0/d0/d13/classcv_1_1Feature2D.html
4
+ * https://docs.opencv.org/4.11.0/d0/d13/classcv_1_1Feature2D.html
5
5
  */
6
6
  export declare class Feature2D extends Algorithm {
7
7
  /**
@@ -1,7 +1,7 @@
1
1
  import type { Feature2D, float, int } from "./_types";
2
2
 
3
3
  /**
4
- * https://docs.opencv.org/4.10.0/db/d95/classcv_1_1ORB.html
4
+ * https://docs.opencv.org/4.11.0/db/d95/classcv_1_1ORB.html
5
5
  */
6
6
  export declare class ORB extends Feature2D {
7
7
  public constructor(
@@ -58,15 +58,14 @@ export declare class RotatedRect {
58
58
  */
59
59
  public constructor(point1: Point2f, point2: Point2f, point3: Point2f);
60
60
 
61
- public boundingRect(): Rect;
61
+ public static boundingRect(rect: RotatedRect): Rect;
62
62
 
63
- public boundingRect2f(): Rect_;
63
+ public static boundingRect2f(rect: RotatedRect): Rect;
64
64
 
65
65
  /**
66
- * returns 4 vertices of the rectangle
67
- *
68
- * @param pts The points array for storing rectangle vertices. The order is bottomLeft, topLeft,
69
- * topRight, bottomRight.
66
+ returns 4 vertices of the rectangle
67
+ * @param rect The rotated rectangle
68
+ * @returns Array of 4 points in order: bottomLeft, topLeft, topRight, bottomRight
70
69
  */
71
- public points(pts: Point2f): Point2f;
70
+ public static points(rect: RotatedRect): Point2f[];
72
71
  }
@@ -84,12 +84,12 @@ export declare class MinMaxLoc {
84
84
  export declare function exceptionFromPtr(err: number): any;
85
85
  export declare function onRuntimeInitialized(): any;
86
86
  export declare function FS_createDataFile(
87
- arg0: string,
88
- path: string,
87
+ parent: string,
88
+ name: string,
89
89
  data: Uint8Array,
90
- arg3: boolean,
91
- arg4: boolean,
92
- arg5: boolean,
90
+ canRead: boolean,
91
+ canWrite: boolean,
92
+ canOwn: boolean,
93
93
  ): any;
94
94
 
95
95
  import { Algorithm, type LineTypes, Mat, type NormTypes, RotatedRect } from ".";