@techstark/opencv-js 4.8.0-release.7 → 4.8.0-release.9
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/dist/src/index.d.ts +1 -0
- package/dist/src/index.js +18 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/types/_cv.d.ts +7 -0
- package/dist/src/types/_cv.js +3 -0
- package/dist/src/types/_cv.js.map +1 -0
- package/dist/src/types/emscripten.d.ts +166 -0
- package/dist/src/types/emscripten.js +4 -0
- package/dist/src/types/emscripten.js.map +1 -0
- package/dist/src/types/opencv/Affine3.d.ts +183 -0
- package/dist/src/types/opencv/Affine3.js +3 -0
- package/dist/src/types/opencv/Affine3.js.map +1 -0
- package/dist/src/types/opencv/Algorithm.d.ts +105 -0
- package/dist/src/types/opencv/Algorithm.js +4 -0
- package/dist/src/types/opencv/Algorithm.js.map +1 -0
- package/dist/src/types/opencv/AutoBuffer.d.ts +41 -0
- package/dist/src/types/opencv/AutoBuffer.js +3 -0
- package/dist/src/types/opencv/AutoBuffer.js.map +1 -0
- package/dist/src/types/opencv/BFMatcher.d.ts +33 -0
- package/dist/src/types/opencv/BFMatcher.js +3 -0
- package/dist/src/types/opencv/BFMatcher.js.map +1 -0
- package/dist/src/types/opencv/BOWTrainer.d.ts +36 -0
- package/dist/src/types/opencv/BOWTrainer.js +3 -0
- package/dist/src/types/opencv/BOWTrainer.js.map +1 -0
- package/dist/src/types/opencv/CascadeClassifier.d.ts +100 -0
- package/dist/src/types/opencv/CascadeClassifier.js +4 -0
- package/dist/src/types/opencv/CascadeClassifier.js.map +1 -0
- package/dist/src/types/opencv/DescriptorMatcher.d.ts +172 -0
- package/dist/src/types/opencv/DescriptorMatcher.js +3 -0
- package/dist/src/types/opencv/DescriptorMatcher.js.map +1 -0
- package/dist/src/types/opencv/DynamicBitset.d.ts +57 -0
- package/dist/src/types/opencv/DynamicBitset.js +3 -0
- package/dist/src/types/opencv/DynamicBitset.js.map +1 -0
- package/dist/src/types/opencv/Exception.d.ts +38 -0
- package/dist/src/types/opencv/Exception.js +3 -0
- package/dist/src/types/opencv/Exception.js.map +1 -0
- package/dist/src/types/opencv/Feature2D.d.ts +14 -0
- package/dist/src/types/opencv/Feature2D.js +4 -0
- package/dist/src/types/opencv/Feature2D.js.map +1 -0
- package/dist/src/types/opencv/FlannBasedMatcher.d.ts +41 -0
- package/dist/src/types/opencv/FlannBasedMatcher.js +3 -0
- package/dist/src/types/opencv/FlannBasedMatcher.js.map +1 -0
- package/dist/src/types/opencv/HOGDescriptor.d.ts +265 -0
- package/dist/src/types/opencv/HOGDescriptor.js +3 -0
- package/dist/src/types/opencv/HOGDescriptor.js.map +1 -0
- package/dist/src/types/opencv/Logger.d.ts +27 -0
- package/dist/src/types/opencv/Logger.js +3 -0
- package/dist/src/types/opencv/Logger.js.map +1 -0
- package/dist/src/types/opencv/LshTable.d.ts +67 -0
- package/dist/src/types/opencv/LshTable.js +3 -0
- package/dist/src/types/opencv/LshTable.js.map +1 -0
- package/dist/src/types/opencv/Mat.d.ts +1589 -0
- package/dist/src/types/opencv/Mat.js +4 -0
- package/dist/src/types/opencv/Mat.js.map +1 -0
- package/dist/src/types/opencv/MatExpr.d.ts +78 -0
- package/dist/src/types/opencv/MatExpr.js +4 -0
- package/dist/src/types/opencv/MatExpr.js.map +1 -0
- package/dist/src/types/opencv/MatOp.d.ts +29 -0
- package/dist/src/types/opencv/MatOp.js +3 -0
- package/dist/src/types/opencv/MatOp.js.map +1 -0
- package/dist/src/types/opencv/Matx.d.ts +84 -0
- package/dist/src/types/opencv/Matx.js +3 -0
- package/dist/src/types/opencv/Matx.js.map +1 -0
- package/dist/src/types/opencv/Node.d.ts +25 -0
- package/dist/src/types/opencv/Node.js +3 -0
- package/dist/src/types/opencv/Node.js.map +1 -0
- package/dist/src/types/opencv/ORB.d.ts +11 -0
- package/dist/src/types/opencv/ORB.js +4 -0
- package/dist/src/types/opencv/ORB.js.map +1 -0
- package/dist/src/types/opencv/PCA.d.ts +170 -0
- package/dist/src/types/opencv/PCA.js +3 -0
- package/dist/src/types/opencv/PCA.js.map +1 -0
- package/dist/src/types/opencv/RotatedRect.d.ts +63 -0
- package/dist/src/types/opencv/RotatedRect.js +3 -0
- package/dist/src/types/opencv/RotatedRect.js.map +1 -0
- package/dist/src/types/opencv/_hacks.d.ts +265 -0
- package/dist/src/types/opencv/_hacks.js +15 -0
- package/dist/src/types/opencv/_hacks.js.map +1 -0
- package/dist/src/types/opencv/_types.d.ts +44 -0
- package/dist/src/types/opencv/_types.js +61 -0
- package/dist/src/types/opencv/_types.js.map +1 -0
- package/dist/src/types/opencv/calib3d.d.ts +2180 -0
- package/dist/src/types/opencv/calib3d.js +3 -0
- package/dist/src/types/opencv/calib3d.js.map +1 -0
- package/dist/src/types/opencv/core_array.d.ts +2513 -0
- package/dist/src/types/opencv/core_array.js +3 -0
- package/dist/src/types/opencv/core_array.js.map +1 -0
- package/dist/src/types/opencv/core_cluster.d.ts +54 -0
- package/dist/src/types/opencv/core_cluster.js +3 -0
- package/dist/src/types/opencv/core_cluster.js.map +1 -0
- package/dist/src/types/opencv/core_hal_interface.d.ts +92 -0
- package/dist/src/types/opencv/core_hal_interface.js +3 -0
- package/dist/src/types/opencv/core_hal_interface.js.map +1 -0
- package/dist/src/types/opencv/core_utils.d.ts +510 -0
- package/dist/src/types/opencv/core_utils.js +3 -0
- package/dist/src/types/opencv/core_utils.js.map +1 -0
- package/dist/src/types/opencv/dnn.d.ts +336 -0
- package/dist/src/types/opencv/dnn.js +3 -0
- package/dist/src/types/opencv/dnn.js.map +1 -0
- package/dist/src/types/opencv/features2d_draw.d.ts +75 -0
- package/dist/src/types/opencv/features2d_draw.js +3 -0
- package/dist/src/types/opencv/features2d_draw.js.map +1 -0
- package/dist/src/types/opencv/imgproc_color_conversions.d.ts +299 -0
- package/dist/src/types/opencv/imgproc_color_conversions.js +3 -0
- package/dist/src/types/opencv/imgproc_color_conversions.js.map +1 -0
- package/dist/src/types/opencv/imgproc_draw.d.ts +502 -0
- package/dist/src/types/opencv/imgproc_draw.js +3 -0
- package/dist/src/types/opencv/imgproc_draw.js.map +1 -0
- package/dist/src/types/opencv/imgproc_feature.d.ts +533 -0
- package/dist/src/types/opencv/imgproc_feature.js +3 -0
- package/dist/src/types/opencv/imgproc_feature.js.map +1 -0
- package/dist/src/types/opencv/imgproc_filter.d.ts +689 -0
- package/dist/src/types/opencv/imgproc_filter.js +3 -0
- package/dist/src/types/opencv/imgproc_filter.js.map +1 -0
- package/dist/src/types/opencv/imgproc_hist.d.ts +291 -0
- package/dist/src/types/opencv/imgproc_hist.js +3 -0
- package/dist/src/types/opencv/imgproc_hist.js.map +1 -0
- package/dist/src/types/opencv/imgproc_misc.d.ts +473 -0
- package/dist/src/types/opencv/imgproc_misc.js +3 -0
- package/dist/src/types/opencv/imgproc_misc.js.map +1 -0
- package/dist/src/types/opencv/imgproc_object.d.ts +41 -0
- package/dist/src/types/opencv/imgproc_object.js +3 -0
- package/dist/src/types/opencv/imgproc_object.js.map +1 -0
- package/dist/src/types/opencv/imgproc_shape.d.ts +570 -0
- package/dist/src/types/opencv/imgproc_shape.js +3 -0
- package/dist/src/types/opencv/imgproc_shape.js.map +1 -0
- package/dist/src/types/opencv/imgproc_transform.d.ts +430 -0
- package/dist/src/types/opencv/imgproc_transform.js +3 -0
- package/dist/src/types/opencv/imgproc_transform.js.map +1 -0
- package/dist/src/types/opencv/index.d.ts +4 -0
- package/dist/src/types/opencv/index.js +19 -0
- package/dist/src/types/opencv/index.js.map +1 -0
- package/dist/src/types/opencv/objdetect.d.ts +43 -0
- package/dist/src/types/opencv/objdetect.js +3 -0
- package/dist/src/types/opencv/objdetect.js.map +1 -0
- package/dist/src/types/opencv/photo_inpaint.d.ts +25 -0
- package/dist/src/types/opencv/photo_inpaint.js +3 -0
- package/dist/src/types/opencv/photo_inpaint.js.map +1 -0
- package/dist/src/types/opencv/softdouble.d.ts +38 -0
- package/dist/src/types/opencv/softdouble.js +3 -0
- package/dist/src/types/opencv/softdouble.js.map +1 -0
- package/dist/src/types/opencv/softfloat.d.ts +38 -0
- package/dist/src/types/opencv/softfloat.js +3 -0
- package/dist/src/types/opencv/softfloat.js.map +1 -0
- package/dist/src/types/opencv/video_track.d.ts +276 -0
- package/dist/src/types/opencv/video_track.js +3 -0
- package/dist/src/types/opencv/video_track.js.map +1 -0
- package/package.json +8 -3
- package/src/index.ts +1 -0
- package/src/types/_cv.ts +6 -0
- package/src/types/emscripten.ts +286 -0
- package/src/types/opencv/Affine3.ts +206 -0
- package/src/types/opencv/Algorithm.ts +126 -0
- package/src/types/opencv/AutoBuffer.ts +50 -0
- package/src/types/opencv/BFMatcher.ts +37 -0
- package/src/types/opencv/BOWTrainer.ts +43 -0
- package/src/types/opencv/CascadeClassifier.ts +153 -0
- package/src/types/opencv/DescriptorMatcher.ts +244 -0
- package/src/types/opencv/DynamicBitset.ts +68 -0
- package/src/types/opencv/Exception.ts +54 -0
- package/src/types/opencv/Feature2D.ts +20 -0
- package/src/types/opencv/FlannBasedMatcher.ts +50 -0
- package/src/types/opencv/HOGDescriptor.ts +401 -0
- package/src/types/opencv/Logger.ts +34 -0
- package/src/types/opencv/LshTable.ts +81 -0
- package/src/types/opencv/Mat.ts +1765 -0
- package/src/types/opencv/MatExpr.ts +107 -0
- package/src/types/opencv/MatOp.ts +70 -0
- package/src/types/opencv/Matx.ts +228 -0
- package/src/types/opencv/Node.ts +33 -0
- package/src/types/opencv/ORB.ts +22 -0
- package/src/types/opencv/PCA.ts +204 -0
- package/src/types/opencv/RotatedRect.ts +72 -0
- package/src/types/opencv/_hacks.ts +323 -0
- package/src/types/opencv/_types.ts +44 -0
- package/src/types/opencv/calib3d.ts +2937 -0
- package/src/types/opencv/core_array.ts +3102 -0
- package/src/types/opencv/core_cluster.ts +81 -0
- package/src/types/opencv/core_hal_interface.ts +159 -0
- package/src/types/opencv/core_utils.ts +748 -0
- package/src/types/opencv/dnn.ts +505 -0
- package/src/types/opencv/features2d_draw.ts +114 -0
- package/src/types/opencv/imgproc_color_conversions.ts +527 -0
- package/src/types/opencv/imgproc_draw.ts +733 -0
- package/src/types/opencv/imgproc_feature.ts +681 -0
- package/src/types/opencv/imgproc_filter.ts +918 -0
- package/src/types/opencv/imgproc_hist.ts +399 -0
- package/src/types/opencv/imgproc_misc.ts +616 -0
- package/src/types/opencv/imgproc_object.ts +58 -0
- package/src/types/opencv/imgproc_shape.ts +734 -0
- package/src/types/opencv/imgproc_transform.ts +574 -0
- package/src/types/opencv/index.ts +4 -0
- package/src/types/opencv/objdetect.ts +103 -0
- package/src/types/opencv/photo_inpaint.ts +37 -0
- package/src/types/opencv/softdouble.ts +64 -0
- package/src/types/opencv/softfloat.ts +64 -0
- package/src/types/opencv/video_track.ts +372 -0
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { float, Point2f, Rect, Rect_, Size2f } from "./_types";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Each rectangle is specified by the center point (mass center), length of each side (represented by
|
|
5
|
+
* [Size2f](#dc/d84/group__core__basic_1gab34496d2466b5f69930ab74c70f117d4}) structure) and the
|
|
6
|
+
* rotation angle in degrees.
|
|
7
|
+
*
|
|
8
|
+
* The sample below demonstrates how to use [RotatedRect](#db/dd6/classcv_1_1RotatedRect}):
|
|
9
|
+
*
|
|
10
|
+
* ```cpp
|
|
11
|
+
* Mat test_image(200, 200, CV_8UC3, Scalar(0));
|
|
12
|
+
* RotatedRect rRect = RotatedRect(Point2f(100,100), Size2f(100,50), 30);
|
|
13
|
+
*
|
|
14
|
+
* Point2f vertices[4];
|
|
15
|
+
* rRect.points(vertices);
|
|
16
|
+
* for (int i = 0; i < 4; i++)
|
|
17
|
+
* line(test_image, vertices[i], vertices[(i+1)%4], Scalar(0,255,0), 2);
|
|
18
|
+
*
|
|
19
|
+
* Rect brect = rRect.boundingRect();
|
|
20
|
+
* rectangle(test_image, brect, Scalar(255,0,0), 2);
|
|
21
|
+
*
|
|
22
|
+
* imshow("rectangles", test_image);
|
|
23
|
+
* waitKey(0);
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* [CamShift](#dc/d6b/group__video__track_1gaef2bd39c8356f423124f1fe7c44d54a1}),
|
|
27
|
+
* [fitEllipse](#d3/dc0/group__imgproc__shape_1gaf259efaad93098103d6c27b9e4900ffa}),
|
|
28
|
+
* [minAreaRect](#d3/dc0/group__imgproc__shape_1ga3d476a3417130ae5154aea421ca7ead9}), CvBox2D
|
|
29
|
+
*
|
|
30
|
+
* Source:
|
|
31
|
+
* [opencv2/core/types.hpp](https://github.com/opencv/opencv/tree/master/modules/core/include/opencv2/core/types.hpp#L534).
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
34
|
+
export declare class RotatedRect {
|
|
35
|
+
public angle: float;
|
|
36
|
+
|
|
37
|
+
public center: Point2f;
|
|
38
|
+
|
|
39
|
+
public size: Size2f;
|
|
40
|
+
|
|
41
|
+
public constructor();
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* full constructor
|
|
45
|
+
*
|
|
46
|
+
* @param center The rectangle mass center.
|
|
47
|
+
*
|
|
48
|
+
* @param size Width and height of the rectangle.
|
|
49
|
+
*
|
|
50
|
+
* @param angle The rotation angle in a clockwise direction. When the angle is 0, 90, 180, 270 etc.,
|
|
51
|
+
* the rectangle becomes an up-right rectangle.
|
|
52
|
+
*/
|
|
53
|
+
public constructor(center: Point2f, size: Size2f, angle: float);
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Any 3 end points of the [RotatedRect]. They must be given in order (either clockwise or
|
|
57
|
+
* anticlockwise).
|
|
58
|
+
*/
|
|
59
|
+
public constructor(point1: Point2f, point2: Point2f, point3: Point2f);
|
|
60
|
+
|
|
61
|
+
public boundingRect(): Rect;
|
|
62
|
+
|
|
63
|
+
public boundingRect2f(): Rect_;
|
|
64
|
+
|
|
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.
|
|
70
|
+
*/
|
|
71
|
+
public points(pts: Point2f): Point2f;
|
|
72
|
+
}
|
|
@@ -0,0 +1,323 @@
|
|
|
1
|
+
// Scalar, Point, Rect, etc are defined by opencv.js (helpers.js) and we need to declare them manually:
|
|
2
|
+
|
|
3
|
+
export declare class Range {
|
|
4
|
+
public start: number;
|
|
5
|
+
public end: number;
|
|
6
|
+
public constructor(start: number, end: number);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export declare class Scalar extends Array<number> {
|
|
10
|
+
public static all(...v: number[]): Scalar;
|
|
11
|
+
}
|
|
12
|
+
// Hack: expose Mat super classes like Mat_, InputArray, Vector, OutputArray we make them alias of Mat to simplify and make it work
|
|
13
|
+
export {
|
|
14
|
+
Mat as InputArray,
|
|
15
|
+
Mat as InputArrayOfArrays,
|
|
16
|
+
Mat as InputOutputArray,
|
|
17
|
+
Mat as InputOutputArrayOfArrays,
|
|
18
|
+
Mat as OutputArray,
|
|
19
|
+
Mat as OutputArrayOfArrays,
|
|
20
|
+
} from "./Mat";
|
|
21
|
+
export { Scalar as GScalar };
|
|
22
|
+
export { Point as Point2f };
|
|
23
|
+
export { Point as KeyPoint };
|
|
24
|
+
export { Point as Point2l };
|
|
25
|
+
export { Size as Point2d };
|
|
26
|
+
export { Size as Size2d };
|
|
27
|
+
export { Size as Size2f };
|
|
28
|
+
export { Size as Size2l };
|
|
29
|
+
export { Rect as Rect_ };
|
|
30
|
+
|
|
31
|
+
export declare class Point {
|
|
32
|
+
public constructor(x: number, y: number);
|
|
33
|
+
public x: number;
|
|
34
|
+
public y: number;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export declare class Size {
|
|
38
|
+
public constructor(width: number, height: number);
|
|
39
|
+
public width: number;
|
|
40
|
+
public height: number;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export declare class Rect {
|
|
44
|
+
public constructor();
|
|
45
|
+
public constructor(point: Point, size: Size);
|
|
46
|
+
public constructor(x: number, y: number, width: number, height: number);
|
|
47
|
+
public x: number;
|
|
48
|
+
public y: number;
|
|
49
|
+
public width: number;
|
|
50
|
+
public height: number;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export declare class TermCriteria {
|
|
54
|
+
public type: number;
|
|
55
|
+
public maxCount: number;
|
|
56
|
+
public epsilon: number;
|
|
57
|
+
public constructor();
|
|
58
|
+
public constructor(type: number, maxCount: number, epsilon: number);
|
|
59
|
+
}
|
|
60
|
+
export declare const TermCriteria_EPS: any;
|
|
61
|
+
export declare const TermCriteria_COUNT: any;
|
|
62
|
+
export declare const TermCriteria_MAX_ITER: any;
|
|
63
|
+
|
|
64
|
+
export declare class MinMaxLoc {
|
|
65
|
+
public minVal: number;
|
|
66
|
+
public maxVal: number;
|
|
67
|
+
public minLoc: Point;
|
|
68
|
+
public maxLoc: Point;
|
|
69
|
+
public constructor();
|
|
70
|
+
public constructor(
|
|
71
|
+
minVal: number,
|
|
72
|
+
maxVal: number,
|
|
73
|
+
minLoc: Point,
|
|
74
|
+
maxLoc: Point,
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
// expose emscripten / opencv.js specifics
|
|
79
|
+
|
|
80
|
+
export declare function exceptionFromPtr(err: number): any;
|
|
81
|
+
export declare function onRuntimeInitialized(): any;
|
|
82
|
+
export declare function FS_createDataFile(
|
|
83
|
+
arg0: string,
|
|
84
|
+
path: string,
|
|
85
|
+
data: Uint8Array,
|
|
86
|
+
arg3: boolean,
|
|
87
|
+
arg4: boolean,
|
|
88
|
+
arg5: boolean,
|
|
89
|
+
): any;
|
|
90
|
+
|
|
91
|
+
import { Algorithm, LineTypes, Mat, NormTypes, RotatedRect } from ".";
|
|
92
|
+
import "../_cv";
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Base class for Contrast Limited Adaptive Histogram Equalization.
|
|
96
|
+
*/
|
|
97
|
+
export declare class CLAHE extends Algorithm {
|
|
98
|
+
/**
|
|
99
|
+
* @param clipLimit Threshold for contrast limiting. Default. 40.0,
|
|
100
|
+
* @param totalGridSize Size of grid for histogram equalization. Input image will be divided into equally sized rectangular tiles. tileGridSize defines the number of tiles in row and column. Default: Size(8, 8)
|
|
101
|
+
*/
|
|
102
|
+
constructor(clipLimit?: double, totalGridSize?: Size);
|
|
103
|
+
/**
|
|
104
|
+
* Equalizes the histogram of a grayscale image using Contrast Limited Adaptive Histogram Equalization.
|
|
105
|
+
* @param src Source image of type CV_8UC1 or CV_16UC1.
|
|
106
|
+
* @param dst Destination image.
|
|
107
|
+
*/
|
|
108
|
+
apply(src: Mat, dst: Mat): void;
|
|
109
|
+
collectGarbage(): void;
|
|
110
|
+
/**
|
|
111
|
+
* Returns threshold value for contrast limiting.
|
|
112
|
+
*/
|
|
113
|
+
getClipLimit(): double;
|
|
114
|
+
/**
|
|
115
|
+
* Returns Size defines the number of tiles in row and column.
|
|
116
|
+
*/
|
|
117
|
+
getTilesGridSize(): Size;
|
|
118
|
+
/**
|
|
119
|
+
* Sets threshold for contrast limiting.
|
|
120
|
+
*/
|
|
121
|
+
setClipLimit(clipLimit: double): void;
|
|
122
|
+
/**
|
|
123
|
+
* Sets size of grid for histogram equalization. Input image will be divided into equally sized rectangular tiles.
|
|
124
|
+
* @param tileGridSize defines the number of tiles in row and column.
|
|
125
|
+
*/
|
|
126
|
+
setTilesGridSize(tileGridSize: Size): void;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
// emscripten embind internals
|
|
130
|
+
export declare function getInheritedInstanceCount(...a: any[]): any;
|
|
131
|
+
export declare function getLiveInheritedInstances(...a: any[]): any;
|
|
132
|
+
export declare function flushPendingDeletes(...a: any[]): any;
|
|
133
|
+
export declare function setDelayFunction(...a: any[]): any;
|
|
134
|
+
|
|
135
|
+
export declare class EmscriptenEmbindInstance {
|
|
136
|
+
isAliasOf(other: any): bool;
|
|
137
|
+
clone(): any;
|
|
138
|
+
delete(): any;
|
|
139
|
+
isDeleted(): boolean;
|
|
140
|
+
deleteLater(): any;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export declare class InternalError extends Error {}
|
|
144
|
+
export declare class BindingError extends Error {}
|
|
145
|
+
export declare class UnboundTypeError extends Error {}
|
|
146
|
+
export declare class PureVirtualError extends Error {}
|
|
147
|
+
|
|
148
|
+
export declare class Vector<T> extends EmscriptenEmbindInstance {
|
|
149
|
+
get(i: number): T;
|
|
150
|
+
get(i: number, j: number, data: any): T;
|
|
151
|
+
set(i: number, t: T): void;
|
|
152
|
+
put(i: number, j: number, data: any): any;
|
|
153
|
+
size(): number;
|
|
154
|
+
push_back(n: T): any;
|
|
155
|
+
resize(count: number, value?: T): void;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export declare class Vec3d extends Vector<any> {}
|
|
159
|
+
export declare class IntVector extends Vector<number> {}
|
|
160
|
+
export declare class FloatVector extends Vector<number> {}
|
|
161
|
+
export declare class DoubleVector extends Vector<number> {}
|
|
162
|
+
export declare class PointVector extends Vector<Point> {}
|
|
163
|
+
export declare class KeyPointVector extends Vector<any> {}
|
|
164
|
+
export declare class DMatchVector extends Vector<any> {}
|
|
165
|
+
export declare class DMatchVectorVector extends Vector<Vector<any>> {}
|
|
166
|
+
export declare class MatVector extends Vector<Mat> {}
|
|
167
|
+
|
|
168
|
+
export declare class RectVector extends Rect implements Vector<Rect> {
|
|
169
|
+
get(i: number): Rect;
|
|
170
|
+
isAliasOf(...a: any[]): any;
|
|
171
|
+
clone(...a: any[]): any;
|
|
172
|
+
delete(...a: any[]): any;
|
|
173
|
+
isDeleted(...a: any[]): any;
|
|
174
|
+
deleteLater(...a: any[]): any;
|
|
175
|
+
set(i: number, t: Rect): void;
|
|
176
|
+
put(i: number, j: number, data: any): any;
|
|
177
|
+
size(): number;
|
|
178
|
+
push_back(n: Rect): void;
|
|
179
|
+
resize(count: number, value?: Rect | undefined): void;
|
|
180
|
+
delete(): void;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
export declare class VideoCapture {
|
|
184
|
+
public constructor(videoSource: HTMLVideoElement | string);
|
|
185
|
+
public read(m: Mat): any;
|
|
186
|
+
public video: HTMLVideoElement;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
export type MatSize = () => Size;
|
|
190
|
+
|
|
191
|
+
export declare function matFromImageData(imageData: ImageData): Mat;
|
|
192
|
+
export declare function matFromArray(
|
|
193
|
+
rows: number,
|
|
194
|
+
cols: number,
|
|
195
|
+
type: any,
|
|
196
|
+
array: number[] | ArrayBufferView,
|
|
197
|
+
): Mat;
|
|
198
|
+
|
|
199
|
+
export declare class ImageData {
|
|
200
|
+
data: ArrayBufferView;
|
|
201
|
+
width: number;
|
|
202
|
+
height: number;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
// TODO this types should be exposed by the tool - want to make it work:
|
|
206
|
+
export declare const CV_8U: CVDataType;
|
|
207
|
+
export declare const CV_8UC1: CVDataType;
|
|
208
|
+
export declare const CV_8UC2: CVDataType;
|
|
209
|
+
export declare const CV_8UC3: CVDataType;
|
|
210
|
+
export declare const CV_8UC4: CVDataType;
|
|
211
|
+
export declare const CV_8S: CVDataType;
|
|
212
|
+
export declare const CV_8SC1: CVDataType;
|
|
213
|
+
export declare const CV_8SC2: CVDataType;
|
|
214
|
+
export declare const CV_8SC3: CVDataType;
|
|
215
|
+
export declare const CV_8SC4: CVDataType;
|
|
216
|
+
export declare const CV_16U: CVDataType;
|
|
217
|
+
export declare const CV_16UC1: CVDataType;
|
|
218
|
+
export declare const CV_16UC2: CVDataType;
|
|
219
|
+
export declare const CV_16UC3: CVDataType;
|
|
220
|
+
export declare const CV_16UC4: CVDataType;
|
|
221
|
+
export declare const CV_16S: CVDataType;
|
|
222
|
+
export declare const CV_16SC1: CVDataType;
|
|
223
|
+
export declare const CV_16SC2: CVDataType;
|
|
224
|
+
export declare const CV_16SC3: CVDataType;
|
|
225
|
+
export declare const CV_16SC4: CVDataType;
|
|
226
|
+
export declare const CV_32S: CVDataType;
|
|
227
|
+
export declare const CV_32SC1: CVDataType;
|
|
228
|
+
export declare const CV_32SC2: CVDataType;
|
|
229
|
+
export declare const CV_32SC3: CVDataType;
|
|
230
|
+
export declare const CV_32SC4: CVDataType;
|
|
231
|
+
export declare const CV_32F: CVDataType;
|
|
232
|
+
export declare const CV_32FC1: CVDataType;
|
|
233
|
+
export declare const CV_32FC2: CVDataType;
|
|
234
|
+
export declare const CV_32FC3: CVDataType;
|
|
235
|
+
export declare const CV_32FC4: CVDataType;
|
|
236
|
+
export declare const CV_64F: CVDataType;
|
|
237
|
+
export declare const CV_64FC1: CVDataType;
|
|
238
|
+
export declare const CV_64FC2: CVDataType;
|
|
239
|
+
export declare const CV_64FC3: CVDataType;
|
|
240
|
+
export declare const CV_64FC4: CVDataType;
|
|
241
|
+
|
|
242
|
+
export type CVDataType = any;
|
|
243
|
+
|
|
244
|
+
export declare function ellipse1(
|
|
245
|
+
dst: Mat,
|
|
246
|
+
rotatedRect: RotatedRect,
|
|
247
|
+
ellipseColor: Scalar,
|
|
248
|
+
arg0: number,
|
|
249
|
+
line: LineTypes,
|
|
250
|
+
): void;
|
|
251
|
+
export declare function imread(
|
|
252
|
+
canvasOrImageHtmlElement: HTMLElement | string,
|
|
253
|
+
): Mat;
|
|
254
|
+
export declare function norm1(a: Mat, b: Mat, type: NormTypes): number;
|
|
255
|
+
export declare function imshow(
|
|
256
|
+
canvasSource: HTMLElement | string,
|
|
257
|
+
mat: Mat,
|
|
258
|
+
): void;
|
|
259
|
+
export declare function matFromArray(
|
|
260
|
+
rows: number,
|
|
261
|
+
cols: number,
|
|
262
|
+
type: any,
|
|
263
|
+
array: any,
|
|
264
|
+
): Mat;
|
|
265
|
+
|
|
266
|
+
// Missing imports:
|
|
267
|
+
export type Mat4 = any;
|
|
268
|
+
export type Mat3 = any;
|
|
269
|
+
export type Vec3 = any;
|
|
270
|
+
export type float_type = any;
|
|
271
|
+
export type int = number;
|
|
272
|
+
export type bool = boolean;
|
|
273
|
+
export type FileNode = any;
|
|
274
|
+
export type FileStorage = any;
|
|
275
|
+
export type Ptr = any;
|
|
276
|
+
export type size_t = any;
|
|
277
|
+
export type double = number;
|
|
278
|
+
export type float = number;
|
|
279
|
+
export type UMat = any;
|
|
280
|
+
export type Matrix = any;
|
|
281
|
+
export type BucketKey = any;
|
|
282
|
+
export type Bucket = any;
|
|
283
|
+
export type LshStats = any;
|
|
284
|
+
export type MatAllocator = any;
|
|
285
|
+
export type uchar = any;
|
|
286
|
+
export type MatStep = any;
|
|
287
|
+
export type UMatData = any;
|
|
288
|
+
export type typename = any;
|
|
289
|
+
export type Vec = any;
|
|
290
|
+
export type Point_ = any;
|
|
291
|
+
export type Point3_ = any;
|
|
292
|
+
export type MatCommaInitializer_ = any;
|
|
293
|
+
export type MatIterator_ = any;
|
|
294
|
+
export type MatConstIterator_ = any;
|
|
295
|
+
export type AccessFlag = any;
|
|
296
|
+
export type UMatUsageFlags = any;
|
|
297
|
+
export type _Tp = any;
|
|
298
|
+
export type Matx_AddOp = any;
|
|
299
|
+
export type Matx_SubOp = any;
|
|
300
|
+
export type _T2 = any;
|
|
301
|
+
export type Matx_ScaleOp = any;
|
|
302
|
+
export type Matx_MulOp = any;
|
|
303
|
+
export type Matx_DivOp = any;
|
|
304
|
+
export type Matx_MatMulOp = any;
|
|
305
|
+
export type Matx_TOp = any;
|
|
306
|
+
export type diag_type = any;
|
|
307
|
+
export type _EqPredicate = any;
|
|
308
|
+
export type cvhalDFT = any;
|
|
309
|
+
export type schar = any;
|
|
310
|
+
export type ushort = any;
|
|
311
|
+
export type short = any;
|
|
312
|
+
export type int64 = any;
|
|
313
|
+
export type ErrorCallback = any;
|
|
314
|
+
export type unsigned = any;
|
|
315
|
+
export type uint64 = any;
|
|
316
|
+
export type float16_t = any;
|
|
317
|
+
export type AsyncArray = any;
|
|
318
|
+
export type Net = any;
|
|
319
|
+
export type Moments = any;
|
|
320
|
+
export type uint64_t = any;
|
|
321
|
+
export type uint32_t = any;
|
|
322
|
+
export type int32_t = any;
|
|
323
|
+
export type int64_t = any;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export * from "./Affine3";
|
|
2
|
+
export * from "./Algorithm";
|
|
3
|
+
export * from "./AutoBuffer";
|
|
4
|
+
export * from "./BFMatcher";
|
|
5
|
+
export * from "./BOWTrainer";
|
|
6
|
+
export * from "./calib3d";
|
|
7
|
+
export * from "./CascadeClassifier";
|
|
8
|
+
export * from "./core_array";
|
|
9
|
+
export * from "./core_cluster";
|
|
10
|
+
export * from "./core_hal_interface";
|
|
11
|
+
export * from "./core_utils";
|
|
12
|
+
export * from "./DescriptorMatcher";
|
|
13
|
+
export * from "./dnn";
|
|
14
|
+
export * from "./DynamicBitset";
|
|
15
|
+
export * from "./Exception";
|
|
16
|
+
export * from "./Feature2D";
|
|
17
|
+
export * from "./features2d_draw";
|
|
18
|
+
export * from "./FlannBasedMatcher";
|
|
19
|
+
export * from "./HOGDescriptor";
|
|
20
|
+
export * from "./imgproc_color_conversions";
|
|
21
|
+
export * from "./imgproc_draw";
|
|
22
|
+
export * from "./imgproc_feature";
|
|
23
|
+
export * from "./imgproc_filter";
|
|
24
|
+
export * from "./imgproc_hist";
|
|
25
|
+
export * from "./imgproc_misc";
|
|
26
|
+
export * from "./imgproc_object";
|
|
27
|
+
export * from "./imgproc_shape";
|
|
28
|
+
export * from "./imgproc_transform";
|
|
29
|
+
export * from "./Logger";
|
|
30
|
+
export * from "./LshTable";
|
|
31
|
+
export * from "./Mat";
|
|
32
|
+
export * from "./MatExpr";
|
|
33
|
+
export * from "./MatOp";
|
|
34
|
+
export * from "./Matx";
|
|
35
|
+
export * from "./Node";
|
|
36
|
+
export * from "./objdetect";
|
|
37
|
+
export * from "./ORB";
|
|
38
|
+
export * from "./PCA";
|
|
39
|
+
export * from "./photo_inpaint";
|
|
40
|
+
export * from "./RotatedRect";
|
|
41
|
+
export * from "./softdouble";
|
|
42
|
+
export * from "./softfloat";
|
|
43
|
+
export * from "./video_track";
|
|
44
|
+
export * from "./_hacks";
|