@techstark/opencv-js 4.8.0-release.1 → 4.8.0-release.10
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 +130 -1
- package/dist/README.md +20 -1
- 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 +270 -0
- package/dist/src/types/opencv/_hacks.js +10 -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 +15 -6
- 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 +321 -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
- package/dist/types/index.d.ts +0 -1
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import { bool, FileNode, FileStorage, float, InputArray, InputArrayOfArrays, int, Mat, Ptr } from "./_types";
|
|
2
|
+
/**
|
|
3
|
+
* It has two groups of match methods: for matching descriptors of an image with another image or with
|
|
4
|
+
* an image set.
|
|
5
|
+
*
|
|
6
|
+
* Source:
|
|
7
|
+
* [opencv2/features2d.hpp](https://github.com/opencv/opencv/tree/master/modules/core/include/opencv2/features2d.hpp#L860).
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
export declare class DescriptorMatcher {
|
|
11
|
+
/**
|
|
12
|
+
* If the collection is not empty, the new descriptors are added to existing train descriptors.
|
|
13
|
+
*
|
|
14
|
+
* @param descriptors Descriptors to add. Each descriptors[i] is a set of descriptors from the same
|
|
15
|
+
* train image.
|
|
16
|
+
*/
|
|
17
|
+
add(descriptors: InputArrayOfArrays): InputArrayOfArrays;
|
|
18
|
+
clear(): void;
|
|
19
|
+
/**
|
|
20
|
+
* @param emptyTrainData If emptyTrainData is false, the method creates a deep copy of the object,
|
|
21
|
+
* that is, copies both parameters and train data. If emptyTrainData is true, the method creates an
|
|
22
|
+
* object copy with the current parameters but with empty train data.
|
|
23
|
+
*/
|
|
24
|
+
clone(emptyTrainData?: bool): Ptr;
|
|
25
|
+
empty(): bool;
|
|
26
|
+
getTrainDescriptors(): Mat;
|
|
27
|
+
isMaskSupported(): bool;
|
|
28
|
+
/**
|
|
29
|
+
* These extended variants of [DescriptorMatcher::match] methods find several best matches for each
|
|
30
|
+
* query descriptor. The matches are returned in the distance increasing order. See
|
|
31
|
+
* [DescriptorMatcher::match] for the details about query and train descriptors.
|
|
32
|
+
*
|
|
33
|
+
* @param queryDescriptors Query set of descriptors.
|
|
34
|
+
*
|
|
35
|
+
* @param trainDescriptors Train set of descriptors. This set is not added to the train descriptors
|
|
36
|
+
* collection stored in the class object.
|
|
37
|
+
*
|
|
38
|
+
* @param matches Matches. Each matches[i] is k or less matches for the same query descriptor.
|
|
39
|
+
*
|
|
40
|
+
* @param k Count of best matches found per each query descriptor or less if a query descriptor has
|
|
41
|
+
* less than k possible matches in total.
|
|
42
|
+
*
|
|
43
|
+
* @param mask Mask specifying permissible matches between an input query and train matrices of
|
|
44
|
+
* descriptors.
|
|
45
|
+
*
|
|
46
|
+
* @param compactResult Parameter used when the mask (or masks) is not empty. If compactResult is
|
|
47
|
+
* false, the matches vector has the same size as queryDescriptors rows. If compactResult is true, the
|
|
48
|
+
* matches vector does not contain matches for fully masked-out query descriptors.
|
|
49
|
+
*/
|
|
50
|
+
knnMatch(queryDescriptors: InputArray, trainDescriptors: InputArray, matches: any, k: int, mask?: InputArray, compactResult?: bool): InputArray;
|
|
51
|
+
/**
|
|
52
|
+
* This is an overloaded member function, provided for convenience. It differs from the above
|
|
53
|
+
* function only in what argument(s) it accepts.
|
|
54
|
+
*
|
|
55
|
+
* @param queryDescriptors Query set of descriptors.
|
|
56
|
+
*
|
|
57
|
+
* @param matches Matches. Each matches[i] is k or less matches for the same query descriptor.
|
|
58
|
+
*
|
|
59
|
+
* @param k Count of best matches found per each query descriptor or less if a query descriptor has
|
|
60
|
+
* less than k possible matches in total.
|
|
61
|
+
*
|
|
62
|
+
* @param masks Set of masks. Each masks[i] specifies permissible matches between the input query
|
|
63
|
+
* descriptors and stored train descriptors from the i-th image trainDescCollection[i].
|
|
64
|
+
*
|
|
65
|
+
* @param compactResult Parameter used when the mask (or masks) is not empty. If compactResult is
|
|
66
|
+
* false, the matches vector has the same size as queryDescriptors rows. If compactResult is true, the
|
|
67
|
+
* matches vector does not contain matches for fully masked-out query descriptors.
|
|
68
|
+
*/
|
|
69
|
+
knnMatch(queryDescriptors: InputArray, matches: any, k: int, masks?: InputArrayOfArrays, compactResult?: bool): InputArray;
|
|
70
|
+
/**
|
|
71
|
+
* In the first variant of this method, the train descriptors are passed as an input argument. In the
|
|
72
|
+
* second variant of the method, train descriptors collection that was set by [DescriptorMatcher::add]
|
|
73
|
+
* is used. Optional mask (or masks) can be passed to specify which query and training descriptors can
|
|
74
|
+
* be matched. Namely, queryDescriptors[i] can be matched with trainDescriptors[j] only if
|
|
75
|
+
* mask.at<uchar>(i,j) is non-zero.
|
|
76
|
+
*
|
|
77
|
+
* @param queryDescriptors Query set of descriptors.
|
|
78
|
+
*
|
|
79
|
+
* @param trainDescriptors Train set of descriptors. This set is not added to the train descriptors
|
|
80
|
+
* collection stored in the class object.
|
|
81
|
+
*
|
|
82
|
+
* @param matches Matches. If a query descriptor is masked out in mask , no match is added for this
|
|
83
|
+
* descriptor. So, matches size may be smaller than the query descriptors count.
|
|
84
|
+
*
|
|
85
|
+
* @param mask Mask specifying permissible matches between an input query and train matrices of
|
|
86
|
+
* descriptors.
|
|
87
|
+
*/
|
|
88
|
+
match(queryDescriptors: InputArray, trainDescriptors: InputArray, matches: any, mask?: InputArray): InputArray;
|
|
89
|
+
/**
|
|
90
|
+
* This is an overloaded member function, provided for convenience. It differs from the above
|
|
91
|
+
* function only in what argument(s) it accepts.
|
|
92
|
+
*
|
|
93
|
+
* @param queryDescriptors Query set of descriptors.
|
|
94
|
+
*
|
|
95
|
+
* @param matches Matches. If a query descriptor is masked out in mask , no match is added for this
|
|
96
|
+
* descriptor. So, matches size may be smaller than the query descriptors count.
|
|
97
|
+
*
|
|
98
|
+
* @param masks Set of masks. Each masks[i] specifies permissible matches between the input query
|
|
99
|
+
* descriptors and stored train descriptors from the i-th image trainDescCollection[i].
|
|
100
|
+
*/
|
|
101
|
+
match(queryDescriptors: InputArray, matches: any, masks?: InputArrayOfArrays): InputArray;
|
|
102
|
+
/**
|
|
103
|
+
* For each query descriptor, the methods find such training descriptors that the distance between
|
|
104
|
+
* the query descriptor and the training descriptor is equal or smaller than maxDistance. Found matches
|
|
105
|
+
* are returned in the distance increasing order.
|
|
106
|
+
*
|
|
107
|
+
* @param queryDescriptors Query set of descriptors.
|
|
108
|
+
*
|
|
109
|
+
* @param trainDescriptors Train set of descriptors. This set is not added to the train descriptors
|
|
110
|
+
* collection stored in the class object.
|
|
111
|
+
*
|
|
112
|
+
* @param matches Found matches.
|
|
113
|
+
*
|
|
114
|
+
* @param maxDistance Threshold for the distance between matched descriptors. Distance means here
|
|
115
|
+
* metric distance (e.g. Hamming distance), not the distance between coordinates (which is measured in
|
|
116
|
+
* Pixels)!
|
|
117
|
+
*
|
|
118
|
+
* @param mask Mask specifying permissible matches between an input query and train matrices of
|
|
119
|
+
* descriptors.
|
|
120
|
+
*
|
|
121
|
+
* @param compactResult Parameter used when the mask (or masks) is not empty. If compactResult is
|
|
122
|
+
* false, the matches vector has the same size as queryDescriptors rows. If compactResult is true, the
|
|
123
|
+
* matches vector does not contain matches for fully masked-out query descriptors.
|
|
124
|
+
*/
|
|
125
|
+
radiusMatch(queryDescriptors: InputArray, trainDescriptors: InputArray, matches: any, maxDistance: float, mask?: InputArray, compactResult?: bool): InputArray;
|
|
126
|
+
/**
|
|
127
|
+
* This is an overloaded member function, provided for convenience. It differs from the above
|
|
128
|
+
* function only in what argument(s) it accepts.
|
|
129
|
+
*
|
|
130
|
+
* @param queryDescriptors Query set of descriptors.
|
|
131
|
+
*
|
|
132
|
+
* @param matches Found matches.
|
|
133
|
+
*
|
|
134
|
+
* @param maxDistance Threshold for the distance between matched descriptors. Distance means here
|
|
135
|
+
* metric distance (e.g. Hamming distance), not the distance between coordinates (which is measured in
|
|
136
|
+
* Pixels)!
|
|
137
|
+
*
|
|
138
|
+
* @param masks Set of masks. Each masks[i] specifies permissible matches between the input query
|
|
139
|
+
* descriptors and stored train descriptors from the i-th image trainDescCollection[i].
|
|
140
|
+
*
|
|
141
|
+
* @param compactResult Parameter used when the mask (or masks) is not empty. If compactResult is
|
|
142
|
+
* false, the matches vector has the same size as queryDescriptors rows. If compactResult is true, the
|
|
143
|
+
* matches vector does not contain matches for fully masked-out query descriptors.
|
|
144
|
+
*/
|
|
145
|
+
radiusMatch(queryDescriptors: InputArray, matches: any, maxDistance: float, masks?: InputArrayOfArrays, compactResult?: bool): InputArray;
|
|
146
|
+
read(fileName: String): String;
|
|
147
|
+
read(fn: FileNode): FileNode;
|
|
148
|
+
/**
|
|
149
|
+
* Trains a descriptor matcher (for example, the flann index). In all methods to match, the method
|
|
150
|
+
* [train()] is run every time before matching. Some descriptor matchers (for example,
|
|
151
|
+
* BruteForceMatcher) have an empty implementation of this method. Other matchers really train their
|
|
152
|
+
* inner structures (for example, [FlannBasedMatcher] trains [flann::Index] ).
|
|
153
|
+
*/
|
|
154
|
+
train(): void;
|
|
155
|
+
write(fileName: String): String;
|
|
156
|
+
write(fs: FileStorage): FileStorage;
|
|
157
|
+
write(fs: Ptr, name?: String): Ptr;
|
|
158
|
+
/**
|
|
159
|
+
* @param descriptorMatcherType Descriptor matcher type. Now the following matcher types are
|
|
160
|
+
* supported:
|
|
161
|
+
* BruteForce (it uses L2 )BruteForce-L1BruteForce-HammingBruteForce-Hamming(2)FlannBased
|
|
162
|
+
*/
|
|
163
|
+
static create(descriptorMatcherType: String): Ptr;
|
|
164
|
+
static create(matcherType: any): Ptr;
|
|
165
|
+
}
|
|
166
|
+
export declare const FLANNBASED: MatcherType;
|
|
167
|
+
export declare const BRUTEFORCE: MatcherType;
|
|
168
|
+
export declare const BRUTEFORCE_L1: MatcherType;
|
|
169
|
+
export declare const BRUTEFORCE_HAMMING: MatcherType;
|
|
170
|
+
export declare const BRUTEFORCE_HAMMINGLUT: MatcherType;
|
|
171
|
+
export declare const BRUTEFORCE_SL2: MatcherType;
|
|
172
|
+
export type MatcherType = any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DescriptorMatcher.js","sourceRoot":"","sources":["../../../../src/types/opencv/DescriptorMatcher.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { bool, size_t } from "./_types";
|
|
2
|
+
/**
|
|
3
|
+
* Class re-implementing the boost version of it This helps not depending on boost, it also does not do
|
|
4
|
+
* the bound checks and has a way to reset a block for speed
|
|
5
|
+
*
|
|
6
|
+
* Source:
|
|
7
|
+
* [opencv2/flann/dynamic_bitset.h](https://github.com/opencv/opencv/tree/master/modules/core/include/opencv2/flann/dynamic_bitset.h#L150).
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
export declare class DynamicBitset {
|
|
11
|
+
/**
|
|
12
|
+
* default constructor
|
|
13
|
+
*/
|
|
14
|
+
constructor();
|
|
15
|
+
/**
|
|
16
|
+
* only constructor we use in our code
|
|
17
|
+
*
|
|
18
|
+
* @param sz the size of the bitset (in bits)
|
|
19
|
+
*/
|
|
20
|
+
constructor(sz: size_t);
|
|
21
|
+
/**
|
|
22
|
+
* Sets all the bits to 0
|
|
23
|
+
*/
|
|
24
|
+
clear(): void;
|
|
25
|
+
/**
|
|
26
|
+
* true if the bitset is empty
|
|
27
|
+
*/
|
|
28
|
+
empty(): bool;
|
|
29
|
+
/**
|
|
30
|
+
* set all the bits to 0
|
|
31
|
+
*/
|
|
32
|
+
reset(): void;
|
|
33
|
+
reset(index: size_t): void;
|
|
34
|
+
reset_block(index: size_t): void;
|
|
35
|
+
/**
|
|
36
|
+
* resize the bitset so that it contains at least sz bits
|
|
37
|
+
*/
|
|
38
|
+
resize(sz: size_t): void;
|
|
39
|
+
/**
|
|
40
|
+
* set a bit to true
|
|
41
|
+
*
|
|
42
|
+
* @param index the index of the bit to set to 1
|
|
43
|
+
*/
|
|
44
|
+
set(index: size_t): void;
|
|
45
|
+
/**
|
|
46
|
+
* gives the number of contained bits
|
|
47
|
+
*/
|
|
48
|
+
size(): size_t;
|
|
49
|
+
/**
|
|
50
|
+
* check if a bit is set
|
|
51
|
+
*
|
|
52
|
+
* true if the bit is set
|
|
53
|
+
*
|
|
54
|
+
* @param index the index of the bit to check
|
|
55
|
+
*/
|
|
56
|
+
test(index: size_t): bool;
|
|
57
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DynamicBitset.js","sourceRoot":"","sources":["../../../../src/types/opencv/DynamicBitset.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { int } from "./_types";
|
|
2
|
+
/**
|
|
3
|
+
* This class encapsulates all or almost all necessary information about the error happened in the
|
|
4
|
+
* program. The exception is usually constructed and thrown implicitly via CV_Error and CV_Error_
|
|
5
|
+
* macros.
|
|
6
|
+
*
|
|
7
|
+
* [error](#db/de0/group__core__utils_1gacbd081fdb20423a63cf731569ba70b2b})
|
|
8
|
+
*
|
|
9
|
+
* Source:
|
|
10
|
+
* [opencv2/core.hpp](https://github.com/opencv/opencv/tree/master/modules/core/include/opencv2/core.hpp#L135).
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
export declare class Exception {
|
|
14
|
+
/**
|
|
15
|
+
* CVStatus
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
18
|
+
code: int;
|
|
19
|
+
err: String;
|
|
20
|
+
file: String;
|
|
21
|
+
func: String;
|
|
22
|
+
line: int;
|
|
23
|
+
msg: String;
|
|
24
|
+
/**
|
|
25
|
+
* Default constructor
|
|
26
|
+
*/
|
|
27
|
+
constructor();
|
|
28
|
+
/**
|
|
29
|
+
* Full constructor. Normally the constructor is not called explicitly. Instead, the macros
|
|
30
|
+
* [CV_Error()], [CV_Error_()] and [CV_Assert()] are used.
|
|
31
|
+
*/
|
|
32
|
+
constructor(_code: int, _err: String, _func: String, _file: String, _line: int);
|
|
33
|
+
formatMessage(): void;
|
|
34
|
+
/**
|
|
35
|
+
* the error description and the context as a text string.
|
|
36
|
+
*/
|
|
37
|
+
what(): any;
|
|
38
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Exception.js","sourceRoot":"","sources":["../../../../src/types/opencv/Exception.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Algorithm, KeyPointVector, Mat, OutputArray } from "./_types";
|
|
2
|
+
/**
|
|
3
|
+
* https://docs.opencv.org/4.8.0/d0/d13/classcv_1_1Feature2D.html
|
|
4
|
+
*/
|
|
5
|
+
export declare class Feature2D extends Algorithm {
|
|
6
|
+
/**
|
|
7
|
+
* Detects keypoints and computes the descriptors
|
|
8
|
+
* @param img
|
|
9
|
+
* @param mask
|
|
10
|
+
* @param keypoints
|
|
11
|
+
* @param descriptors
|
|
12
|
+
*/
|
|
13
|
+
detectAndCompute(img: Mat, mask: Mat, keypoints: KeyPointVector, descriptors: OutputArray): void;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Feature2D.js","sourceRoot":"","sources":["../../../../src/types/opencv/Feature2D.ts"],"names":[],"mappings":";;AAAA,qCAAuE"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { bool, FileNode, FileStorage, InputArrayOfArrays, Ptr } from "./_types";
|
|
2
|
+
/**
|
|
3
|
+
* This matcher trains [cv::flann::Index](#d1/db2/classcv_1_1flann_1_1Index}) on a train descriptor
|
|
4
|
+
* collection and calls its nearest search methods to find the best matches. So, this matcher may be
|
|
5
|
+
* faster when matching a large train collection than the brute force matcher.
|
|
6
|
+
* [FlannBasedMatcher](#dc/de2/classcv_1_1FlannBasedMatcher}) does not support masking permissible
|
|
7
|
+
* matches of descriptor sets because [flann::Index](#d1/db2/classcv_1_1flann_1_1Index}) does not
|
|
8
|
+
* support this. :
|
|
9
|
+
*
|
|
10
|
+
* Source:
|
|
11
|
+
* [opencv2/features2d.hpp](https://github.com/opencv/opencv/tree/master/modules/core/include/opencv2/features2d.hpp#L1187).
|
|
12
|
+
*
|
|
13
|
+
*/
|
|
14
|
+
export declare class FlannBasedMatcher {
|
|
15
|
+
constructor(indexParams?: Ptr, searchParams?: Ptr);
|
|
16
|
+
/**
|
|
17
|
+
* If the collection is not empty, the new descriptors are added to existing train descriptors.
|
|
18
|
+
*
|
|
19
|
+
* @param descriptors Descriptors to add. Each descriptors[i] is a set of descriptors from the same
|
|
20
|
+
* train image.
|
|
21
|
+
*/
|
|
22
|
+
add(descriptors: InputArrayOfArrays): InputArrayOfArrays;
|
|
23
|
+
clear(): void;
|
|
24
|
+
/**
|
|
25
|
+
* @param emptyTrainData If emptyTrainData is false, the method creates a deep copy of the object,
|
|
26
|
+
* that is, copies both parameters and train data. If emptyTrainData is true, the method creates an
|
|
27
|
+
* object copy with the current parameters but with empty train data.
|
|
28
|
+
*/
|
|
29
|
+
clone(emptyTrainData?: bool): Ptr;
|
|
30
|
+
isMaskSupported(): bool;
|
|
31
|
+
read(fn: FileNode): FileNode;
|
|
32
|
+
/**
|
|
33
|
+
* Trains a descriptor matcher (for example, the flann index). In all methods to match, the method
|
|
34
|
+
* [train()] is run every time before matching. Some descriptor matchers (for example,
|
|
35
|
+
* BruteForceMatcher) have an empty implementation of this method. Other matchers really train their
|
|
36
|
+
* inner structures (for example, [FlannBasedMatcher] trains [flann::Index] ).
|
|
37
|
+
*/
|
|
38
|
+
train(): void;
|
|
39
|
+
write(fs: FileStorage): FileStorage;
|
|
40
|
+
static create(): Ptr;
|
|
41
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FlannBasedMatcher.js","sourceRoot":"","sources":["../../../../src/types/opencv/FlannBasedMatcher.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
import { bool, double, FileNode, FileStorage, float, InputArray, InputOutputArray, int, Point, Size, size_t, UMat } from "./_types";
|
|
2
|
+
/**
|
|
3
|
+
* the HOG descriptor algorithm introduced by Navneet Dalal and Bill Triggs Dalal2005 .
|
|
4
|
+
*
|
|
5
|
+
* useful links:
|
|
6
|
+
*
|
|
7
|
+
* Source:
|
|
8
|
+
* [opencv2/objdetect.hpp](https://github.com/opencv/opencv/tree/master/modules/core/include/opencv2/objdetect.hpp#L377).
|
|
9
|
+
*
|
|
10
|
+
*/
|
|
11
|
+
export declare class HOGDescriptor {
|
|
12
|
+
blockSize: Size;
|
|
13
|
+
blockStride: Size;
|
|
14
|
+
cellSize: Size;
|
|
15
|
+
derivAperture: int;
|
|
16
|
+
free_coef: float;
|
|
17
|
+
gammaCorrection: bool;
|
|
18
|
+
histogramNormType: any;
|
|
19
|
+
L2HysThreshold: double;
|
|
20
|
+
nbins: int;
|
|
21
|
+
nlevels: int;
|
|
22
|
+
oclSvmDetector: UMat;
|
|
23
|
+
signedGradient: bool;
|
|
24
|
+
svmDetector: any;
|
|
25
|
+
winSigma: double;
|
|
26
|
+
winSize: Size;
|
|
27
|
+
/**
|
|
28
|
+
* aqual to [HOGDescriptor](Size(64,128), Size(16,16), Size(8,8), Size(8,8), 9 )
|
|
29
|
+
*/
|
|
30
|
+
constructor();
|
|
31
|
+
/**
|
|
32
|
+
* This is an overloaded member function, provided for convenience. It differs from the above
|
|
33
|
+
* function only in what argument(s) it accepts.
|
|
34
|
+
*
|
|
35
|
+
* @param _winSize sets winSize with given value.
|
|
36
|
+
*
|
|
37
|
+
* @param _blockSize sets blockSize with given value.
|
|
38
|
+
*
|
|
39
|
+
* @param _blockStride sets blockStride with given value.
|
|
40
|
+
*
|
|
41
|
+
* @param _cellSize sets cellSize with given value.
|
|
42
|
+
*
|
|
43
|
+
* @param _nbins sets nbins with given value.
|
|
44
|
+
*
|
|
45
|
+
* @param _derivAperture sets derivAperture with given value.
|
|
46
|
+
*
|
|
47
|
+
* @param _winSigma sets winSigma with given value.
|
|
48
|
+
*
|
|
49
|
+
* @param _histogramNormType sets histogramNormType with given value.
|
|
50
|
+
*
|
|
51
|
+
* @param _L2HysThreshold sets L2HysThreshold with given value.
|
|
52
|
+
*
|
|
53
|
+
* @param _gammaCorrection sets gammaCorrection with given value.
|
|
54
|
+
*
|
|
55
|
+
* @param _nlevels sets nlevels with given value.
|
|
56
|
+
*
|
|
57
|
+
* @param _signedGradient sets signedGradient with given value.
|
|
58
|
+
*/
|
|
59
|
+
constructor(_winSize: Size, _blockSize: Size, _blockStride: Size, _cellSize: Size, _nbins: int, _derivAperture?: int, _winSigma?: double, _histogramNormType?: any, _L2HysThreshold?: double, _gammaCorrection?: bool, _nlevels?: int, _signedGradient?: bool);
|
|
60
|
+
/**
|
|
61
|
+
* This is an overloaded member function, provided for convenience. It differs from the above
|
|
62
|
+
* function only in what argument(s) it accepts.
|
|
63
|
+
*
|
|
64
|
+
* @param filename The file name containing HOGDescriptor properties and coefficients for the linear
|
|
65
|
+
* SVM classifier.
|
|
66
|
+
*/
|
|
67
|
+
constructor(filename: String);
|
|
68
|
+
/**
|
|
69
|
+
* This is an overloaded member function, provided for convenience. It differs from the above
|
|
70
|
+
* function only in what argument(s) it accepts.
|
|
71
|
+
*
|
|
72
|
+
* @param d the HOGDescriptor which cloned to create a new one.
|
|
73
|
+
*/
|
|
74
|
+
constructor(d: HOGDescriptor);
|
|
75
|
+
checkDetectorSize(): bool;
|
|
76
|
+
/**
|
|
77
|
+
* @param img Matrix of the type CV_8U containing an image where HOG features will be calculated.
|
|
78
|
+
*
|
|
79
|
+
* @param descriptors Matrix of the type CV_32F
|
|
80
|
+
*
|
|
81
|
+
* @param winStride Window stride. It must be a multiple of block stride.
|
|
82
|
+
*
|
|
83
|
+
* @param padding Padding
|
|
84
|
+
*
|
|
85
|
+
* @param locations Vector of Point
|
|
86
|
+
*/
|
|
87
|
+
compute(img: InputArray, descriptors: any, winStride?: Size, padding?: Size, locations?: Point): InputArray;
|
|
88
|
+
/**
|
|
89
|
+
* @param img Matrix contains the image to be computed
|
|
90
|
+
*
|
|
91
|
+
* @param grad Matrix of type CV_32FC2 contains computed gradients
|
|
92
|
+
*
|
|
93
|
+
* @param angleOfs Matrix of type CV_8UC2 contains quantized gradient orientations
|
|
94
|
+
*
|
|
95
|
+
* @param paddingTL Padding from top-left
|
|
96
|
+
*
|
|
97
|
+
* @param paddingBR Padding from bottom-right
|
|
98
|
+
*/
|
|
99
|
+
computeGradient(img: InputArray, grad: InputOutputArray, angleOfs: InputOutputArray, paddingTL?: Size, paddingBR?: Size): InputArray;
|
|
100
|
+
/**
|
|
101
|
+
* @param c cloned HOGDescriptor
|
|
102
|
+
*/
|
|
103
|
+
copyTo(c: HOGDescriptor): HOGDescriptor;
|
|
104
|
+
/**
|
|
105
|
+
* @param img Matrix of the type CV_8U or CV_8UC3 containing an image where objects are detected.
|
|
106
|
+
*
|
|
107
|
+
* @param foundLocations Vector of point where each point contains left-top corner point of detected
|
|
108
|
+
* object boundaries.
|
|
109
|
+
*
|
|
110
|
+
* @param weights Vector that will contain confidence values for each detected object.
|
|
111
|
+
*
|
|
112
|
+
* @param hitThreshold Threshold for the distance between features and SVM classifying plane. Usually
|
|
113
|
+
* it is 0 and should be specified in the detector coefficients (as the last free coefficient). But if
|
|
114
|
+
* the free coefficient is omitted (which is allowed), you can specify it manually here.
|
|
115
|
+
*
|
|
116
|
+
* @param winStride Window stride. It must be a multiple of block stride.
|
|
117
|
+
*
|
|
118
|
+
* @param padding Padding
|
|
119
|
+
*
|
|
120
|
+
* @param searchLocations Vector of Point includes set of requested locations to be evaluated.
|
|
121
|
+
*/
|
|
122
|
+
detect(img: InputArray, foundLocations: any, weights: any, hitThreshold?: double, winStride?: Size, padding?: Size, searchLocations?: Point): InputArray;
|
|
123
|
+
/**
|
|
124
|
+
* @param img Matrix of the type CV_8U or CV_8UC3 containing an image where objects are detected.
|
|
125
|
+
*
|
|
126
|
+
* @param foundLocations Vector of point where each point contains left-top corner point of detected
|
|
127
|
+
* object boundaries.
|
|
128
|
+
*
|
|
129
|
+
* @param hitThreshold Threshold for the distance between features and SVM classifying plane. Usually
|
|
130
|
+
* it is 0 and should be specified in the detector coefficients (as the last free coefficient). But if
|
|
131
|
+
* the free coefficient is omitted (which is allowed), you can specify it manually here.
|
|
132
|
+
*
|
|
133
|
+
* @param winStride Window stride. It must be a multiple of block stride.
|
|
134
|
+
*
|
|
135
|
+
* @param padding Padding
|
|
136
|
+
*
|
|
137
|
+
* @param searchLocations Vector of Point includes locations to search.
|
|
138
|
+
*/
|
|
139
|
+
detect(img: InputArray, foundLocations: any, hitThreshold?: double, winStride?: Size, padding?: Size, searchLocations?: Point): InputArray;
|
|
140
|
+
/**
|
|
141
|
+
* @param img Matrix of the type CV_8U or CV_8UC3 containing an image where objects are detected.
|
|
142
|
+
*
|
|
143
|
+
* @param foundLocations Vector of rectangles where each rectangle contains the detected object.
|
|
144
|
+
*
|
|
145
|
+
* @param foundWeights Vector that will contain confidence values for each detected object.
|
|
146
|
+
*
|
|
147
|
+
* @param hitThreshold Threshold for the distance between features and SVM classifying plane. Usually
|
|
148
|
+
* it is 0 and should be specified in the detector coefficients (as the last free coefficient). But if
|
|
149
|
+
* the free coefficient is omitted (which is allowed), you can specify it manually here.
|
|
150
|
+
*
|
|
151
|
+
* @param winStride Window stride. It must be a multiple of block stride.
|
|
152
|
+
*
|
|
153
|
+
* @param padding Padding
|
|
154
|
+
*
|
|
155
|
+
* @param scale Coefficient of the detection window increase.
|
|
156
|
+
*
|
|
157
|
+
* @param finalThreshold Final threshold
|
|
158
|
+
*
|
|
159
|
+
* @param useMeanshiftGrouping indicates grouping algorithm
|
|
160
|
+
*/
|
|
161
|
+
detectMultiScale(img: InputArray, foundLocations: any, foundWeights: any, hitThreshold?: double, winStride?: Size, padding?: Size, scale?: double, finalThreshold?: double, useMeanshiftGrouping?: bool): InputArray;
|
|
162
|
+
/**
|
|
163
|
+
* @param img Matrix of the type CV_8U or CV_8UC3 containing an image where objects are detected.
|
|
164
|
+
*
|
|
165
|
+
* @param foundLocations Vector of rectangles where each rectangle contains the detected object.
|
|
166
|
+
*
|
|
167
|
+
* @param hitThreshold Threshold for the distance between features and SVM classifying plane. Usually
|
|
168
|
+
* it is 0 and should be specified in the detector coefficients (as the last free coefficient). But if
|
|
169
|
+
* the free coefficient is omitted (which is allowed), you can specify it manually here.
|
|
170
|
+
*
|
|
171
|
+
* @param winStride Window stride. It must be a multiple of block stride.
|
|
172
|
+
*
|
|
173
|
+
* @param padding Padding
|
|
174
|
+
*
|
|
175
|
+
* @param scale Coefficient of the detection window increase.
|
|
176
|
+
*
|
|
177
|
+
* @param finalThreshold Final threshold
|
|
178
|
+
*
|
|
179
|
+
* @param useMeanshiftGrouping indicates grouping algorithm
|
|
180
|
+
*/
|
|
181
|
+
detectMultiScale(img: InputArray, foundLocations: any, hitThreshold?: double, winStride?: Size, padding?: Size, scale?: double, finalThreshold?: double, useMeanshiftGrouping?: bool): InputArray;
|
|
182
|
+
/**
|
|
183
|
+
* @param img Matrix of the type CV_8U or CV_8UC3 containing an image where objects are detected.
|
|
184
|
+
*
|
|
185
|
+
* @param foundLocations Vector of rectangles where each rectangle contains the detected object.
|
|
186
|
+
*
|
|
187
|
+
* @param locations Vector of DetectionROI
|
|
188
|
+
*
|
|
189
|
+
* @param hitThreshold Threshold for the distance between features and SVM classifying plane. Usually
|
|
190
|
+
* it is 0 and should be specified in the detector coefficients (as the last free coefficient). But if
|
|
191
|
+
* the free coefficient is omitted (which is allowed), you can specify it manually here.
|
|
192
|
+
*
|
|
193
|
+
* @param groupThreshold Minimum possible number of rectangles minus 1. The threshold is used in a
|
|
194
|
+
* group of rectangles to retain it.
|
|
195
|
+
*/
|
|
196
|
+
detectMultiScaleROI(img: InputArray, foundLocations: any, locations: any, hitThreshold?: double, groupThreshold?: int): InputArray;
|
|
197
|
+
/**
|
|
198
|
+
* @param img Matrix of the type CV_8U or CV_8UC3 containing an image where objects are detected.
|
|
199
|
+
*
|
|
200
|
+
* @param locations Vector of Point
|
|
201
|
+
*
|
|
202
|
+
* @param foundLocations Vector of Point where each Point is detected object's top-left point.
|
|
203
|
+
*
|
|
204
|
+
* @param confidences confidences
|
|
205
|
+
*
|
|
206
|
+
* @param hitThreshold Threshold for the distance between features and SVM classifying plane. Usually
|
|
207
|
+
* it is 0 and should be specified in the detector coefficients (as the last free coefficient). But if
|
|
208
|
+
* the free coefficient is omitted (which is allowed), you can specify it manually here
|
|
209
|
+
*
|
|
210
|
+
* @param winStride winStride
|
|
211
|
+
*
|
|
212
|
+
* @param padding padding
|
|
213
|
+
*/
|
|
214
|
+
detectROI(img: InputArray, locations: any, foundLocations: any, confidences: any, hitThreshold?: double, winStride?: any, padding?: any): InputArray;
|
|
215
|
+
getDescriptorSize(): size_t;
|
|
216
|
+
getWinSigma(): double;
|
|
217
|
+
/**
|
|
218
|
+
* @param rectList Input/output vector of rectangles. Output vector includes retained and grouped
|
|
219
|
+
* rectangles. (The Python list is not modified in place.)
|
|
220
|
+
*
|
|
221
|
+
* @param weights Input/output vector of weights of rectangles. Output vector includes weights of
|
|
222
|
+
* retained and grouped rectangles. (The Python list is not modified in place.)
|
|
223
|
+
*
|
|
224
|
+
* @param groupThreshold Minimum possible number of rectangles minus 1. The threshold is used in a
|
|
225
|
+
* group of rectangles to retain it.
|
|
226
|
+
*
|
|
227
|
+
* @param eps Relative difference between sides of the rectangles to merge them into a group.
|
|
228
|
+
*/
|
|
229
|
+
groupRectangles(rectList: any, weights: any, groupThreshold: int, eps: double): any;
|
|
230
|
+
/**
|
|
231
|
+
* @param filename Path of the file to read.
|
|
232
|
+
*
|
|
233
|
+
* @param objname The optional name of the node to read (if empty, the first top-level node will be
|
|
234
|
+
* used).
|
|
235
|
+
*/
|
|
236
|
+
load(filename: String, objname?: String): String;
|
|
237
|
+
/**
|
|
238
|
+
* @param fn File node
|
|
239
|
+
*/
|
|
240
|
+
read(fn: FileNode): FileNode;
|
|
241
|
+
/**
|
|
242
|
+
* @param filename File name
|
|
243
|
+
*
|
|
244
|
+
* @param objname Object name
|
|
245
|
+
*/
|
|
246
|
+
save(filename: String, objname?: String): String;
|
|
247
|
+
/**
|
|
248
|
+
* @param svmdetector coefficients for the linear SVM classifier.
|
|
249
|
+
*/
|
|
250
|
+
setSVMDetector(svmdetector: InputArray): InputArray;
|
|
251
|
+
/**
|
|
252
|
+
* @param fs File storage
|
|
253
|
+
*
|
|
254
|
+
* @param objname Object name
|
|
255
|
+
*/
|
|
256
|
+
write(fs: FileStorage, objname: String): FileStorage;
|
|
257
|
+
static getDaimlerPeopleDetector(): any;
|
|
258
|
+
static getDefaultPeopleDetector(): any;
|
|
259
|
+
}
|
|
260
|
+
export declare const DEFAULT_NLEVELS: any;
|
|
261
|
+
export declare const DESCR_FORMAT_COL_BY_COL: DescriptorStorageFormat;
|
|
262
|
+
export declare const DESCR_FORMAT_ROW_BY_ROW: DescriptorStorageFormat;
|
|
263
|
+
export declare const L2Hys: HistogramNormType;
|
|
264
|
+
export type DescriptorStorageFormat = any;
|
|
265
|
+
export type HistogramNormType = any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HOGDescriptor.js","sourceRoot":"","sources":["../../../../src/types/opencv/HOGDescriptor.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { int } from "./_types";
|
|
2
|
+
export declare class Logger {
|
|
3
|
+
static error(fmt: any, arg121: any): int;
|
|
4
|
+
static fatal(fmt: any, arg122: any): int;
|
|
5
|
+
static info(fmt: any, arg123: any): int;
|
|
6
|
+
/**
|
|
7
|
+
* Print log message
|
|
8
|
+
*
|
|
9
|
+
* @param level Log level
|
|
10
|
+
*
|
|
11
|
+
* @param fmt Message format
|
|
12
|
+
*/
|
|
13
|
+
static log(level: int, fmt: any, arg124: any): int;
|
|
14
|
+
/**
|
|
15
|
+
* Sets the logging destination
|
|
16
|
+
*
|
|
17
|
+
* @param name Filename or NULL for console
|
|
18
|
+
*/
|
|
19
|
+
static setDestination(name: any): void;
|
|
20
|
+
/**
|
|
21
|
+
* Sets the logging level. All messages with lower priority will be ignored.
|
|
22
|
+
*
|
|
23
|
+
* @param level Logging level
|
|
24
|
+
*/
|
|
25
|
+
static setLevel(level: int): void;
|
|
26
|
+
static warn(fmt: any, arg125: any): int;
|
|
27
|
+
}
|