@opencvjs/types 4.10.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/LICENSE +201 -0
- package/README.md +23 -0
- package/lib/index.d.ts +2 -0
- package/lib/opencv/Affine3.d.ts +206 -0
- package/lib/opencv/Algorithm.d.ts +126 -0
- package/lib/opencv/AutoBuffer.d.ts +50 -0
- package/lib/opencv/BFMatcher.d.ts +37 -0
- package/lib/opencv/BOWTrainer.d.ts +43 -0
- package/lib/opencv/CascadeClassifier.d.ts +153 -0
- package/lib/opencv/DescriptorMatcher.d.ts +236 -0
- package/lib/opencv/DynamicBitset.d.ts +68 -0
- package/lib/opencv/Exception.d.ts +54 -0
- package/lib/opencv/Feature2D.d.ts +20 -0
- package/lib/opencv/FlannBasedMatcher.d.ts +57 -0
- package/lib/opencv/HOGDescriptor.d.ts +401 -0
- package/lib/opencv/Logger.d.ts +34 -0
- package/lib/opencv/LshTable.d.ts +81 -0
- package/lib/opencv/Mat.d.ts +1793 -0
- package/lib/opencv/MatExpr.d.ts +107 -0
- package/lib/opencv/MatOp.d.ts +72 -0
- package/lib/opencv/Matx.d.ts +228 -0
- package/lib/opencv/Node.d.ts +33 -0
- package/lib/opencv/ORB.d.ts +23 -0
- package/lib/opencv/PCA.d.ts +198 -0
- package/lib/opencv/RotatedRect.d.ts +73 -0
- package/lib/opencv/Tracker.d.ts +1 -0
- package/lib/opencv/TrackerMIL.d.ts +3 -0
- package/lib/opencv/_types.d.ts +48 -0
- package/lib/opencv/calib3d.d.ts +2937 -0
- package/lib/opencv/core_array.d.ts +3102 -0
- package/lib/opencv/core_cluster.d.ts +80 -0
- package/lib/opencv/core_hal_interface.d.ts +159 -0
- package/lib/opencv/core_utils.d.ts +748 -0
- package/lib/opencv/dnn.d.ts +505 -0
- package/lib/opencv/features2d_draw.d.ts +114 -0
- package/lib/opencv/fisheye.d.ts +26 -0
- package/lib/opencv/helpers.d.ts +274 -0
- package/lib/opencv/imgproc_color_conversions.d.ts +527 -0
- package/lib/opencv/imgproc_draw.d.ts +732 -0
- package/lib/opencv/imgproc_feature.d.ts +681 -0
- package/lib/opencv/imgproc_filter.d.ts +918 -0
- package/lib/opencv/imgproc_hist.d.ts +399 -0
- package/lib/opencv/imgproc_misc.d.ts +616 -0
- package/lib/opencv/imgproc_object.d.ts +58 -0
- package/lib/opencv/imgproc_shape.d.ts +724 -0
- package/lib/opencv/imgproc_transform.d.ts +574 -0
- package/lib/opencv/missing.d.ts +58 -0
- package/lib/opencv/objdetect.d.ts +103 -0
- package/lib/opencv/photo_inpaint.d.ts +39 -0
- package/lib/opencv/softdouble.d.ts +71 -0
- package/lib/opencv/softfloat.d.ts +71 -0
- package/lib/opencv/video_track.d.ts +370 -0
- package/package.json +18 -0
- package/tsconfig.json +15 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import type { Point2f, Rect, Rect_, Size2f } from "./helpers";
|
|
2
|
+
import type { float } from "./missing";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Each rectangle is specified by the center point (mass center), length of each side (represented by
|
|
6
|
+
* [Size2f](#dc/d84/group__core__basic_1gab34496d2466b5f69930ab74c70f117d4}) structure) and the
|
|
7
|
+
* rotation angle in degrees.
|
|
8
|
+
*
|
|
9
|
+
* The sample below demonstrates how to use [RotatedRect](#db/dd6/classcv_1_1RotatedRect}):
|
|
10
|
+
*
|
|
11
|
+
* ```cpp
|
|
12
|
+
* Mat test_image(200, 200, CV_8UC3, Scalar(0));
|
|
13
|
+
* RotatedRect rRect = RotatedRect(Point2f(100,100), Size2f(100,50), 30);
|
|
14
|
+
*
|
|
15
|
+
* Point2f vertices[4];
|
|
16
|
+
* rRect.points(vertices);
|
|
17
|
+
* for (int i = 0; i < 4; i++)
|
|
18
|
+
* line(test_image, vertices[i], vertices[(i+1)%4], Scalar(0,255,0), 2);
|
|
19
|
+
*
|
|
20
|
+
* Rect brect = rRect.boundingRect();
|
|
21
|
+
* rectangle(test_image, brect, Scalar(255,0,0), 2);
|
|
22
|
+
*
|
|
23
|
+
* imshow("rectangles", test_image);
|
|
24
|
+
* waitKey(0);
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* [CamShift](#dc/d6b/group__video__track_1gaef2bd39c8356f423124f1fe7c44d54a1}),
|
|
28
|
+
* [fitEllipse](#d3/dc0/group__imgproc__shape_1gaf259efaad93098103d6c27b9e4900ffa}),
|
|
29
|
+
* [minAreaRect](#d3/dc0/group__imgproc__shape_1ga3d476a3417130ae5154aea421ca7ead9}), CvBox2D
|
|
30
|
+
*
|
|
31
|
+
* Source:
|
|
32
|
+
* [opencv2/core/types.hpp](https://github.com/opencv/opencv/tree/master/modules/core/include/opencv2/core/types.hpp#L534).
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
35
|
+
export declare class RotatedRect {
|
|
36
|
+
public angle: float;
|
|
37
|
+
|
|
38
|
+
public center: Point2f;
|
|
39
|
+
|
|
40
|
+
public size: Size2f;
|
|
41
|
+
|
|
42
|
+
public constructor();
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* full constructor
|
|
46
|
+
*
|
|
47
|
+
* @param center The rectangle mass center.
|
|
48
|
+
*
|
|
49
|
+
* @param size Width and height of the rectangle.
|
|
50
|
+
*
|
|
51
|
+
* @param angle The rotation angle in a clockwise direction. When the angle is 0, 90, 180, 270 etc.,
|
|
52
|
+
* the rectangle becomes an up-right rectangle.
|
|
53
|
+
*/
|
|
54
|
+
public constructor(center: Point2f, size: Size2f, angle: float);
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Any 3 end points of the [RotatedRect]. They must be given in order (either clockwise or
|
|
58
|
+
* anticlockwise).
|
|
59
|
+
*/
|
|
60
|
+
public constructor(point1: Point2f, point2: Point2f, point3: Point2f);
|
|
61
|
+
|
|
62
|
+
public boundingRect(): Rect;
|
|
63
|
+
|
|
64
|
+
public boundingRect2f(): Rect_;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* returns 4 vertices of the rectangle
|
|
68
|
+
*
|
|
69
|
+
* @param pts The points array for storing rectangle vertices. The order is bottomLeft, topLeft,
|
|
70
|
+
* topRight, bottomRight.
|
|
71
|
+
*/
|
|
72
|
+
public points(pts: Point2f): Point2f;
|
|
73
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare class Tracker {}
|
|
@@ -0,0 +1,48 @@
|
|
|
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 "./fisheye";
|
|
19
|
+
export * from "./FlannBasedMatcher";
|
|
20
|
+
export * from "./helpers";
|
|
21
|
+
export * from "./HOGDescriptor";
|
|
22
|
+
export * from "./imgproc_color_conversions";
|
|
23
|
+
export * from "./imgproc_draw";
|
|
24
|
+
export * from "./imgproc_feature";
|
|
25
|
+
export * from "./imgproc_filter";
|
|
26
|
+
export * from "./imgproc_hist";
|
|
27
|
+
export * from "./imgproc_misc";
|
|
28
|
+
export * from "./imgproc_object";
|
|
29
|
+
export * from "./imgproc_shape";
|
|
30
|
+
export * from "./imgproc_transform";
|
|
31
|
+
export * from "./Logger";
|
|
32
|
+
export * from "./LshTable";
|
|
33
|
+
export * from "./Mat";
|
|
34
|
+
export * from "./MatExpr";
|
|
35
|
+
export * from "./MatOp";
|
|
36
|
+
export * from "./Matx";
|
|
37
|
+
export * from "./missing";
|
|
38
|
+
export * from "./Node";
|
|
39
|
+
export * from "./objdetect";
|
|
40
|
+
export * from "./ORB";
|
|
41
|
+
export * from "./PCA";
|
|
42
|
+
export * from "./photo_inpaint";
|
|
43
|
+
export * from "./RotatedRect";
|
|
44
|
+
export * from "./softdouble";
|
|
45
|
+
export * from "./softfloat";
|
|
46
|
+
export * from "./Tracker";
|
|
47
|
+
export * from "./TrackerMIL";
|
|
48
|
+
export * from "./video_track";
|