@techstark/opencv-js 4.8.0-release.6 → 4.8.0-release.8

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.
Files changed (198) hide show
  1. package/README.md +127 -0
  2. package/dist/src/index.d.ts +1 -0
  3. package/dist/src/index.js +18 -0
  4. package/dist/src/index.js.map +1 -0
  5. package/dist/src/types/_cv.d.ts +7 -0
  6. package/dist/src/types/_cv.js +3 -0
  7. package/dist/src/types/_cv.js.map +1 -0
  8. package/dist/src/types/emscripten.d.ts +166 -0
  9. package/dist/src/types/emscripten.js +4 -0
  10. package/dist/src/types/emscripten.js.map +1 -0
  11. package/dist/src/types/opencv/Affine3.d.ts +183 -0
  12. package/dist/src/types/opencv/Affine3.js +3 -0
  13. package/dist/src/types/opencv/Affine3.js.map +1 -0
  14. package/dist/src/types/opencv/Algorithm.d.ts +105 -0
  15. package/dist/src/types/opencv/Algorithm.js +4 -0
  16. package/dist/src/types/opencv/Algorithm.js.map +1 -0
  17. package/dist/src/types/opencv/AutoBuffer.d.ts +41 -0
  18. package/dist/src/types/opencv/AutoBuffer.js +3 -0
  19. package/dist/src/types/opencv/AutoBuffer.js.map +1 -0
  20. package/dist/src/types/opencv/BFMatcher.d.ts +33 -0
  21. package/dist/src/types/opencv/BFMatcher.js +3 -0
  22. package/dist/src/types/opencv/BFMatcher.js.map +1 -0
  23. package/dist/src/types/opencv/BOWTrainer.d.ts +36 -0
  24. package/dist/src/types/opencv/BOWTrainer.js +3 -0
  25. package/dist/src/types/opencv/BOWTrainer.js.map +1 -0
  26. package/dist/src/types/opencv/CascadeClassifier.d.ts +100 -0
  27. package/dist/src/types/opencv/CascadeClassifier.js +4 -0
  28. package/dist/src/types/opencv/CascadeClassifier.js.map +1 -0
  29. package/dist/src/types/opencv/DescriptorMatcher.d.ts +172 -0
  30. package/dist/src/types/opencv/DescriptorMatcher.js +3 -0
  31. package/dist/src/types/opencv/DescriptorMatcher.js.map +1 -0
  32. package/dist/src/types/opencv/DynamicBitset.d.ts +57 -0
  33. package/dist/src/types/opencv/DynamicBitset.js +3 -0
  34. package/dist/src/types/opencv/DynamicBitset.js.map +1 -0
  35. package/dist/src/types/opencv/Exception.d.ts +38 -0
  36. package/dist/src/types/opencv/Exception.js +3 -0
  37. package/dist/src/types/opencv/Exception.js.map +1 -0
  38. package/dist/src/types/opencv/Feature2D.d.ts +14 -0
  39. package/dist/src/types/opencv/Feature2D.js +4 -0
  40. package/dist/src/types/opencv/Feature2D.js.map +1 -0
  41. package/dist/src/types/opencv/FlannBasedMatcher.d.ts +41 -0
  42. package/dist/src/types/opencv/FlannBasedMatcher.js +3 -0
  43. package/dist/src/types/opencv/FlannBasedMatcher.js.map +1 -0
  44. package/dist/src/types/opencv/HOGDescriptor.d.ts +265 -0
  45. package/dist/src/types/opencv/HOGDescriptor.js +3 -0
  46. package/dist/src/types/opencv/HOGDescriptor.js.map +1 -0
  47. package/dist/src/types/opencv/Logger.d.ts +27 -0
  48. package/dist/src/types/opencv/Logger.js +3 -0
  49. package/dist/src/types/opencv/Logger.js.map +1 -0
  50. package/dist/src/types/opencv/LshTable.d.ts +67 -0
  51. package/dist/src/types/opencv/LshTable.js +3 -0
  52. package/dist/src/types/opencv/LshTable.js.map +1 -0
  53. package/dist/src/types/opencv/Mat.d.ts +1589 -0
  54. package/dist/src/types/opencv/Mat.js +3 -0
  55. package/dist/src/types/opencv/Mat.js.map +1 -0
  56. package/dist/src/types/opencv/MatExpr.d.ts +78 -0
  57. package/dist/src/types/opencv/MatExpr.js +4 -0
  58. package/dist/src/types/opencv/MatExpr.js.map +1 -0
  59. package/dist/src/types/opencv/MatOp.d.ts +29 -0
  60. package/dist/src/types/opencv/MatOp.js +3 -0
  61. package/dist/src/types/opencv/MatOp.js.map +1 -0
  62. package/dist/src/types/opencv/Matx.d.ts +84 -0
  63. package/dist/src/types/opencv/Matx.js +3 -0
  64. package/dist/src/types/opencv/Matx.js.map +1 -0
  65. package/dist/src/types/opencv/Node.d.ts +25 -0
  66. package/dist/src/types/opencv/Node.js +3 -0
  67. package/dist/src/types/opencv/Node.js.map +1 -0
  68. package/dist/src/types/opencv/ORB.d.ts +11 -0
  69. package/dist/src/types/opencv/ORB.js +4 -0
  70. package/dist/src/types/opencv/ORB.js.map +1 -0
  71. package/dist/src/types/opencv/PCA.d.ts +170 -0
  72. package/dist/src/types/opencv/PCA.js +3 -0
  73. package/dist/src/types/opencv/PCA.js.map +1 -0
  74. package/dist/src/types/opencv/RotatedRect.d.ts +63 -0
  75. package/dist/src/types/opencv/RotatedRect.js +3 -0
  76. package/dist/src/types/opencv/RotatedRect.js.map +1 -0
  77. package/dist/src/types/opencv/_hacks.d.ts +267 -0
  78. package/dist/src/types/opencv/_hacks.js +15 -0
  79. package/dist/src/types/opencv/_hacks.js.map +1 -0
  80. package/dist/src/types/opencv/_types.d.ts +44 -0
  81. package/dist/src/types/opencv/_types.js +61 -0
  82. package/dist/src/types/opencv/_types.js.map +1 -0
  83. package/dist/src/types/opencv/calib3d.d.ts +2180 -0
  84. package/dist/src/types/opencv/calib3d.js +3 -0
  85. package/dist/src/types/opencv/calib3d.js.map +1 -0
  86. package/dist/src/types/opencv/core_array.d.ts +2513 -0
  87. package/dist/src/types/opencv/core_array.js +3 -0
  88. package/dist/src/types/opencv/core_array.js.map +1 -0
  89. package/dist/src/types/opencv/core_cluster.d.ts +54 -0
  90. package/dist/src/types/opencv/core_cluster.js +3 -0
  91. package/dist/src/types/opencv/core_cluster.js.map +1 -0
  92. package/dist/src/types/opencv/core_hal_interface.d.ts +92 -0
  93. package/dist/src/types/opencv/core_hal_interface.js +3 -0
  94. package/dist/src/types/opencv/core_hal_interface.js.map +1 -0
  95. package/dist/src/types/opencv/core_utils.d.ts +510 -0
  96. package/dist/src/types/opencv/core_utils.js +3 -0
  97. package/dist/src/types/opencv/core_utils.js.map +1 -0
  98. package/dist/src/types/opencv/dnn.d.ts +336 -0
  99. package/dist/src/types/opencv/dnn.js +3 -0
  100. package/dist/src/types/opencv/dnn.js.map +1 -0
  101. package/dist/src/types/opencv/features2d_draw.d.ts +75 -0
  102. package/dist/src/types/opencv/features2d_draw.js +3 -0
  103. package/dist/src/types/opencv/features2d_draw.js.map +1 -0
  104. package/dist/src/types/opencv/imgproc_color_conversions.d.ts +299 -0
  105. package/dist/src/types/opencv/imgproc_color_conversions.js +3 -0
  106. package/dist/src/types/opencv/imgproc_color_conversions.js.map +1 -0
  107. package/dist/src/types/opencv/imgproc_draw.d.ts +502 -0
  108. package/dist/src/types/opencv/imgproc_draw.js +3 -0
  109. package/dist/src/types/opencv/imgproc_draw.js.map +1 -0
  110. package/dist/src/types/opencv/imgproc_feature.d.ts +533 -0
  111. package/dist/src/types/opencv/imgproc_feature.js +3 -0
  112. package/dist/src/types/opencv/imgproc_feature.js.map +1 -0
  113. package/dist/src/types/opencv/imgproc_filter.d.ts +689 -0
  114. package/dist/src/types/opencv/imgproc_filter.js +3 -0
  115. package/dist/src/types/opencv/imgproc_filter.js.map +1 -0
  116. package/dist/src/types/opencv/imgproc_hist.d.ts +291 -0
  117. package/dist/src/types/opencv/imgproc_hist.js +3 -0
  118. package/dist/src/types/opencv/imgproc_hist.js.map +1 -0
  119. package/dist/src/types/opencv/imgproc_misc.d.ts +473 -0
  120. package/dist/src/types/opencv/imgproc_misc.js +3 -0
  121. package/dist/src/types/opencv/imgproc_misc.js.map +1 -0
  122. package/dist/src/types/opencv/imgproc_object.d.ts +41 -0
  123. package/dist/src/types/opencv/imgproc_object.js +3 -0
  124. package/dist/src/types/opencv/imgproc_object.js.map +1 -0
  125. package/dist/src/types/opencv/imgproc_shape.d.ts +570 -0
  126. package/dist/src/types/opencv/imgproc_shape.js +3 -0
  127. package/dist/src/types/opencv/imgproc_shape.js.map +1 -0
  128. package/dist/src/types/opencv/imgproc_transform.d.ts +430 -0
  129. package/dist/src/types/opencv/imgproc_transform.js +3 -0
  130. package/dist/src/types/opencv/imgproc_transform.js.map +1 -0
  131. package/dist/src/types/opencv/index.d.ts +4 -0
  132. package/dist/src/types/opencv/index.js +19 -0
  133. package/dist/src/types/opencv/index.js.map +1 -0
  134. package/dist/src/types/opencv/objdetect.d.ts +43 -0
  135. package/dist/src/types/opencv/objdetect.js +3 -0
  136. package/dist/src/types/opencv/objdetect.js.map +1 -0
  137. package/dist/src/types/opencv/photo_inpaint.d.ts +25 -0
  138. package/dist/src/types/opencv/photo_inpaint.js +3 -0
  139. package/dist/src/types/opencv/photo_inpaint.js.map +1 -0
  140. package/dist/src/types/opencv/softdouble.d.ts +38 -0
  141. package/dist/src/types/opencv/softdouble.js +3 -0
  142. package/dist/src/types/opencv/softdouble.js.map +1 -0
  143. package/dist/src/types/opencv/softfloat.d.ts +38 -0
  144. package/dist/src/types/opencv/softfloat.js +3 -0
  145. package/dist/src/types/opencv/softfloat.js.map +1 -0
  146. package/dist/src/types/opencv/video_track.d.ts +276 -0
  147. package/dist/src/types/opencv/video_track.js +3 -0
  148. package/dist/src/types/opencv/video_track.js.map +1 -0
  149. package/package.json +5 -3
  150. package/src/index.ts +1 -0
  151. package/src/types/_cv.ts +6 -0
  152. package/src/types/emscripten.ts +286 -0
  153. package/src/types/opencv/Affine3.ts +206 -0
  154. package/src/types/opencv/Algorithm.ts +126 -0
  155. package/src/types/opencv/AutoBuffer.ts +50 -0
  156. package/src/types/opencv/BFMatcher.ts +37 -0
  157. package/src/types/opencv/BOWTrainer.ts +43 -0
  158. package/src/types/opencv/CascadeClassifier.ts +153 -0
  159. package/src/types/opencv/DescriptorMatcher.ts +244 -0
  160. package/src/types/opencv/DynamicBitset.ts +68 -0
  161. package/src/types/opencv/Exception.ts +54 -0
  162. package/src/types/opencv/Feature2D.ts +20 -0
  163. package/src/types/opencv/FlannBasedMatcher.ts +50 -0
  164. package/src/types/opencv/HOGDescriptor.ts +401 -0
  165. package/src/types/opencv/Logger.ts +34 -0
  166. package/src/types/opencv/LshTable.ts +81 -0
  167. package/src/types/opencv/Mat.ts +1764 -0
  168. package/src/types/opencv/MatExpr.ts +107 -0
  169. package/src/types/opencv/MatOp.ts +70 -0
  170. package/src/types/opencv/Matx.ts +228 -0
  171. package/src/types/opencv/Node.ts +33 -0
  172. package/src/types/opencv/ORB.ts +22 -0
  173. package/src/types/opencv/PCA.ts +204 -0
  174. package/src/types/opencv/RotatedRect.ts +72 -0
  175. package/src/types/opencv/_hacks.ts +322 -0
  176. package/src/types/opencv/_types.ts +44 -0
  177. package/src/types/opencv/calib3d.ts +2937 -0
  178. package/src/types/opencv/core_array.ts +3102 -0
  179. package/src/types/opencv/core_cluster.ts +81 -0
  180. package/src/types/opencv/core_hal_interface.ts +159 -0
  181. package/src/types/opencv/core_utils.ts +748 -0
  182. package/src/types/opencv/dnn.ts +505 -0
  183. package/src/types/opencv/features2d_draw.ts +114 -0
  184. package/src/types/opencv/imgproc_color_conversions.ts +527 -0
  185. package/src/types/opencv/imgproc_draw.ts +733 -0
  186. package/src/types/opencv/imgproc_feature.ts +681 -0
  187. package/src/types/opencv/imgproc_filter.ts +918 -0
  188. package/src/types/opencv/imgproc_hist.ts +399 -0
  189. package/src/types/opencv/imgproc_misc.ts +616 -0
  190. package/src/types/opencv/imgproc_object.ts +58 -0
  191. package/src/types/opencv/imgproc_shape.ts +734 -0
  192. package/src/types/opencv/imgproc_transform.ts +574 -0
  193. package/src/types/opencv/index.ts +4 -0
  194. package/src/types/opencv/objdetect.ts +103 -0
  195. package/src/types/opencv/photo_inpaint.ts +37 -0
  196. package/src/types/opencv/softdouble.ts +64 -0
  197. package/src/types/opencv/softfloat.ts +64 -0
  198. package/src/types/opencv/video_track.ts +372 -0
@@ -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,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const _types_1 = require("./_types");
4
+ //# sourceMappingURL=Feature2D.js.map
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=FlannBasedMatcher.js.map
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=HOGDescriptor.js.map
@@ -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
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Logger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Logger.js","sourceRoot":"","sources":["../../../../src/types/opencv/Logger.ts"],"names":[],"mappings":""}
@@ -0,0 +1,67 @@
1
+ import { Bucket, BucketKey, LshStats, Matrix, size_t } from "./_types";
2
+ /**
3
+ * Lsh hash table. As its key is a sub-feature, and as usually the size of it is pretty small, we keep
4
+ * it as a continuous memory array. The value is an index in the corpus of features (we keep it as an
5
+ * unsigned int for pure memory reasons, it could be a size_t)
6
+ *
7
+ * Source:
8
+ * [opencv2/flann/lsh_table.h](https://github.com/opencv/opencv/tree/master/modules/core/include/opencv2/flann/lsh_table.h#L261).
9
+ *
10
+ */
11
+ export declare class LshTable {
12
+ /**
13
+ * Default constructor
14
+ */
15
+ constructor();
16
+ /**
17
+ * Default constructor Create the mask and allocate the memory
18
+ *
19
+ * @param feature_size is the size of the feature (considered as a ElementType[])
20
+ *
21
+ * @param key_size is the number of bits that are turned on in the feature
22
+ */
23
+ constructor(feature_size: any, key_size: any);
24
+ constructor(feature_size: any, subsignature_size: any);
25
+ /**
26
+ * Add a feature to the table
27
+ *
28
+ * @param value the value to store for that feature
29
+ *
30
+ * @param feature the feature itself
31
+ */
32
+ add(value: any, feature: any): void;
33
+ /**
34
+ * Add a set of features to the table
35
+ *
36
+ * @param dataset the values to store
37
+ */
38
+ add(dataset: Matrix): Matrix;
39
+ /**
40
+ * Get a bucket given the key
41
+ */
42
+ getBucketFromKey(key: BucketKey): Bucket;
43
+ /**
44
+ * Compute the sub-signature of a feature
45
+ */
46
+ getKey(arg50: any): size_t;
47
+ /**
48
+ * Return the Subsignature of a feature
49
+ *
50
+ * @param feature the feature to analyze
51
+ */
52
+ getKey(feature: any): size_t;
53
+ /**
54
+ * Get statistics about the table
55
+ */
56
+ getStats(): LshStats;
57
+ getStats(): LshStats;
58
+ }
59
+ export declare const kArray: SpeedLevel;
60
+ export declare const kBitsetHash: SpeedLevel;
61
+ export declare const kHash: SpeedLevel;
62
+ /**
63
+ * defines the speed fo the implementation kArray uses a vector for storing data kBitsetHash uses a
64
+ * hash map but checks for the validity of a key with a bitset kHash uses a hash map only
65
+ *
66
+ */
67
+ export type SpeedLevel = any;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=LshTable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LshTable.js","sourceRoot":"","sources":["../../../../src/types/opencv/LshTable.ts"],"names":[],"mappings":""}