@techstark/opencv-js 4.10.0-release.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.
- package/README.md +30 -3
- package/dist/opencv.js +11 -12
- package/dist/opencv.js.patch +4 -4
- package/dist/src/types/opencv/Feature2D.d.ts +1 -1
- package/dist/src/types/opencv/ORB.d.ts +1 -1
- package/dist/src/types/opencv/RotatedRect.d.ts +7 -8
- package/dist/src/types/opencv/_hacks.d.ts +1 -1
- package/package.json +6 -6
- package/src/types/opencv/Feature2D.ts +1 -1
- package/src/types/opencv/ORB.ts +1 -1
- package/src/types/opencv/RotatedRect.ts +6 -7
- package/src/types/opencv/_hacks.ts +5 -5
package/dist/opencv.js.patch
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
diff --git a/dist/opencv.js b/dist/opencv.js
|
|
2
|
-
index
|
|
2
|
+
index af4111b..3ba8a69 100644
|
|
3
3
|
--- a/dist/opencv.js
|
|
4
4
|
+++ b/dist/opencv.js
|
|
5
|
-
@@ -
|
|
6
|
-
|
|
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.
|
|
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.
|
|
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,
|
|
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():
|
|
54
|
+
static boundingRect(rect: RotatedRect): Rect;
|
|
55
|
+
static boundingRect2f(rect: RotatedRect): Rect;
|
|
56
56
|
/**
|
|
57
|
-
|
|
58
|
-
*
|
|
59
|
-
* @
|
|
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(
|
|
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(
|
|
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.
|
|
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",
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
"test": "jest"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@types/jest": "^29.5.
|
|
18
|
+
"@types/jest": "^29.5.14",
|
|
19
19
|
"jest": "^29.7.0",
|
|
20
|
-
"jimp": "^
|
|
21
|
-
"prettier": "^3.
|
|
22
|
-
"ts-jest": "^29.
|
|
23
|
-
"typescript": "^5.
|
|
20
|
+
"jimp": "^1.6.0",
|
|
21
|
+
"prettier": "^3.5.3",
|
|
22
|
+
"ts-jest": "^29.3.4",
|
|
23
|
+
"typescript": "^5.8.3"
|
|
24
24
|
},
|
|
25
25
|
"repository": {
|
|
26
26
|
"type": "git",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Algorithm, KeyPointVector, Mat, OutputArray } from "./_types";
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* https://docs.opencv.org/4.
|
|
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
|
/**
|
package/src/types/opencv/ORB.ts
CHANGED
|
@@ -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():
|
|
63
|
+
public static boundingRect2f(rect: RotatedRect): Rect;
|
|
64
64
|
|
|
65
65
|
/**
|
|
66
|
-
|
|
67
|
-
*
|
|
68
|
-
* @
|
|
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(
|
|
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
|
-
|
|
88
|
-
|
|
87
|
+
parent: string,
|
|
88
|
+
name: string,
|
|
89
89
|
data: Uint8Array,
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
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 ".";
|