@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.
Files changed (200) hide show
  1. package/README.md +130 -1
  2. package/dist/README.md +20 -1
  3. package/dist/src/index.d.ts +1 -0
  4. package/dist/src/index.js +18 -0
  5. package/dist/src/index.js.map +1 -0
  6. package/dist/src/types/_cv.d.ts +7 -0
  7. package/dist/src/types/_cv.js +3 -0
  8. package/dist/src/types/_cv.js.map +1 -0
  9. package/dist/src/types/emscripten.d.ts +166 -0
  10. package/dist/src/types/emscripten.js +4 -0
  11. package/dist/src/types/emscripten.js.map +1 -0
  12. package/dist/src/types/opencv/Affine3.d.ts +183 -0
  13. package/dist/src/types/opencv/Affine3.js +3 -0
  14. package/dist/src/types/opencv/Affine3.js.map +1 -0
  15. package/dist/src/types/opencv/Algorithm.d.ts +105 -0
  16. package/dist/src/types/opencv/Algorithm.js +4 -0
  17. package/dist/src/types/opencv/Algorithm.js.map +1 -0
  18. package/dist/src/types/opencv/AutoBuffer.d.ts +41 -0
  19. package/dist/src/types/opencv/AutoBuffer.js +3 -0
  20. package/dist/src/types/opencv/AutoBuffer.js.map +1 -0
  21. package/dist/src/types/opencv/BFMatcher.d.ts +33 -0
  22. package/dist/src/types/opencv/BFMatcher.js +3 -0
  23. package/dist/src/types/opencv/BFMatcher.js.map +1 -0
  24. package/dist/src/types/opencv/BOWTrainer.d.ts +36 -0
  25. package/dist/src/types/opencv/BOWTrainer.js +3 -0
  26. package/dist/src/types/opencv/BOWTrainer.js.map +1 -0
  27. package/dist/src/types/opencv/CascadeClassifier.d.ts +100 -0
  28. package/dist/src/types/opencv/CascadeClassifier.js +4 -0
  29. package/dist/src/types/opencv/CascadeClassifier.js.map +1 -0
  30. package/dist/src/types/opencv/DescriptorMatcher.d.ts +172 -0
  31. package/dist/src/types/opencv/DescriptorMatcher.js +3 -0
  32. package/dist/src/types/opencv/DescriptorMatcher.js.map +1 -0
  33. package/dist/src/types/opencv/DynamicBitset.d.ts +57 -0
  34. package/dist/src/types/opencv/DynamicBitset.js +3 -0
  35. package/dist/src/types/opencv/DynamicBitset.js.map +1 -0
  36. package/dist/src/types/opencv/Exception.d.ts +38 -0
  37. package/dist/src/types/opencv/Exception.js +3 -0
  38. package/dist/src/types/opencv/Exception.js.map +1 -0
  39. package/dist/src/types/opencv/Feature2D.d.ts +14 -0
  40. package/dist/src/types/opencv/Feature2D.js +4 -0
  41. package/dist/src/types/opencv/Feature2D.js.map +1 -0
  42. package/dist/src/types/opencv/FlannBasedMatcher.d.ts +41 -0
  43. package/dist/src/types/opencv/FlannBasedMatcher.js +3 -0
  44. package/dist/src/types/opencv/FlannBasedMatcher.js.map +1 -0
  45. package/dist/src/types/opencv/HOGDescriptor.d.ts +265 -0
  46. package/dist/src/types/opencv/HOGDescriptor.js +3 -0
  47. package/dist/src/types/opencv/HOGDescriptor.js.map +1 -0
  48. package/dist/src/types/opencv/Logger.d.ts +27 -0
  49. package/dist/src/types/opencv/Logger.js +3 -0
  50. package/dist/src/types/opencv/Logger.js.map +1 -0
  51. package/dist/src/types/opencv/LshTable.d.ts +67 -0
  52. package/dist/src/types/opencv/LshTable.js +3 -0
  53. package/dist/src/types/opencv/LshTable.js.map +1 -0
  54. package/dist/src/types/opencv/Mat.d.ts +1589 -0
  55. package/dist/src/types/opencv/Mat.js +4 -0
  56. package/dist/src/types/opencv/Mat.js.map +1 -0
  57. package/dist/src/types/opencv/MatExpr.d.ts +78 -0
  58. package/dist/src/types/opencv/MatExpr.js +4 -0
  59. package/dist/src/types/opencv/MatExpr.js.map +1 -0
  60. package/dist/src/types/opencv/MatOp.d.ts +29 -0
  61. package/dist/src/types/opencv/MatOp.js +3 -0
  62. package/dist/src/types/opencv/MatOp.js.map +1 -0
  63. package/dist/src/types/opencv/Matx.d.ts +84 -0
  64. package/dist/src/types/opencv/Matx.js +3 -0
  65. package/dist/src/types/opencv/Matx.js.map +1 -0
  66. package/dist/src/types/opencv/Node.d.ts +25 -0
  67. package/dist/src/types/opencv/Node.js +3 -0
  68. package/dist/src/types/opencv/Node.js.map +1 -0
  69. package/dist/src/types/opencv/ORB.d.ts +11 -0
  70. package/dist/src/types/opencv/ORB.js +4 -0
  71. package/dist/src/types/opencv/ORB.js.map +1 -0
  72. package/dist/src/types/opencv/PCA.d.ts +170 -0
  73. package/dist/src/types/opencv/PCA.js +3 -0
  74. package/dist/src/types/opencv/PCA.js.map +1 -0
  75. package/dist/src/types/opencv/RotatedRect.d.ts +63 -0
  76. package/dist/src/types/opencv/RotatedRect.js +3 -0
  77. package/dist/src/types/opencv/RotatedRect.js.map +1 -0
  78. package/dist/src/types/opencv/_hacks.d.ts +270 -0
  79. package/dist/src/types/opencv/_hacks.js +10 -0
  80. package/dist/src/types/opencv/_hacks.js.map +1 -0
  81. package/dist/src/types/opencv/_types.d.ts +44 -0
  82. package/dist/src/types/opencv/_types.js +61 -0
  83. package/dist/src/types/opencv/_types.js.map +1 -0
  84. package/dist/src/types/opencv/calib3d.d.ts +2180 -0
  85. package/dist/src/types/opencv/calib3d.js +3 -0
  86. package/dist/src/types/opencv/calib3d.js.map +1 -0
  87. package/dist/src/types/opencv/core_array.d.ts +2513 -0
  88. package/dist/src/types/opencv/core_array.js +3 -0
  89. package/dist/src/types/opencv/core_array.js.map +1 -0
  90. package/dist/src/types/opencv/core_cluster.d.ts +54 -0
  91. package/dist/src/types/opencv/core_cluster.js +3 -0
  92. package/dist/src/types/opencv/core_cluster.js.map +1 -0
  93. package/dist/src/types/opencv/core_hal_interface.d.ts +92 -0
  94. package/dist/src/types/opencv/core_hal_interface.js +3 -0
  95. package/dist/src/types/opencv/core_hal_interface.js.map +1 -0
  96. package/dist/src/types/opencv/core_utils.d.ts +510 -0
  97. package/dist/src/types/opencv/core_utils.js +3 -0
  98. package/dist/src/types/opencv/core_utils.js.map +1 -0
  99. package/dist/src/types/opencv/dnn.d.ts +336 -0
  100. package/dist/src/types/opencv/dnn.js +3 -0
  101. package/dist/src/types/opencv/dnn.js.map +1 -0
  102. package/dist/src/types/opencv/features2d_draw.d.ts +75 -0
  103. package/dist/src/types/opencv/features2d_draw.js +3 -0
  104. package/dist/src/types/opencv/features2d_draw.js.map +1 -0
  105. package/dist/src/types/opencv/imgproc_color_conversions.d.ts +299 -0
  106. package/dist/src/types/opencv/imgproc_color_conversions.js +3 -0
  107. package/dist/src/types/opencv/imgproc_color_conversions.js.map +1 -0
  108. package/dist/src/types/opencv/imgproc_draw.d.ts +502 -0
  109. package/dist/src/types/opencv/imgproc_draw.js +3 -0
  110. package/dist/src/types/opencv/imgproc_draw.js.map +1 -0
  111. package/dist/src/types/opencv/imgproc_feature.d.ts +533 -0
  112. package/dist/src/types/opencv/imgproc_feature.js +3 -0
  113. package/dist/src/types/opencv/imgproc_feature.js.map +1 -0
  114. package/dist/src/types/opencv/imgproc_filter.d.ts +689 -0
  115. package/dist/src/types/opencv/imgproc_filter.js +3 -0
  116. package/dist/src/types/opencv/imgproc_filter.js.map +1 -0
  117. package/dist/src/types/opencv/imgproc_hist.d.ts +291 -0
  118. package/dist/src/types/opencv/imgproc_hist.js +3 -0
  119. package/dist/src/types/opencv/imgproc_hist.js.map +1 -0
  120. package/dist/src/types/opencv/imgproc_misc.d.ts +473 -0
  121. package/dist/src/types/opencv/imgproc_misc.js +3 -0
  122. package/dist/src/types/opencv/imgproc_misc.js.map +1 -0
  123. package/dist/src/types/opencv/imgproc_object.d.ts +41 -0
  124. package/dist/src/types/opencv/imgproc_object.js +3 -0
  125. package/dist/src/types/opencv/imgproc_object.js.map +1 -0
  126. package/dist/src/types/opencv/imgproc_shape.d.ts +570 -0
  127. package/dist/src/types/opencv/imgproc_shape.js +3 -0
  128. package/dist/src/types/opencv/imgproc_shape.js.map +1 -0
  129. package/dist/src/types/opencv/imgproc_transform.d.ts +430 -0
  130. package/dist/src/types/opencv/imgproc_transform.js +3 -0
  131. package/dist/src/types/opencv/imgproc_transform.js.map +1 -0
  132. package/dist/src/types/opencv/index.d.ts +4 -0
  133. package/dist/src/types/opencv/index.js +19 -0
  134. package/dist/src/types/opencv/index.js.map +1 -0
  135. package/dist/src/types/opencv/objdetect.d.ts +43 -0
  136. package/dist/src/types/opencv/objdetect.js +3 -0
  137. package/dist/src/types/opencv/objdetect.js.map +1 -0
  138. package/dist/src/types/opencv/photo_inpaint.d.ts +25 -0
  139. package/dist/src/types/opencv/photo_inpaint.js +3 -0
  140. package/dist/src/types/opencv/photo_inpaint.js.map +1 -0
  141. package/dist/src/types/opencv/softdouble.d.ts +38 -0
  142. package/dist/src/types/opencv/softdouble.js +3 -0
  143. package/dist/src/types/opencv/softdouble.js.map +1 -0
  144. package/dist/src/types/opencv/softfloat.d.ts +38 -0
  145. package/dist/src/types/opencv/softfloat.js +3 -0
  146. package/dist/src/types/opencv/softfloat.js.map +1 -0
  147. package/dist/src/types/opencv/video_track.d.ts +276 -0
  148. package/dist/src/types/opencv/video_track.js +3 -0
  149. package/dist/src/types/opencv/video_track.js.map +1 -0
  150. package/package.json +15 -6
  151. package/src/index.ts +1 -0
  152. package/src/types/_cv.ts +6 -0
  153. package/src/types/emscripten.ts +286 -0
  154. package/src/types/opencv/Affine3.ts +206 -0
  155. package/src/types/opencv/Algorithm.ts +126 -0
  156. package/src/types/opencv/AutoBuffer.ts +50 -0
  157. package/src/types/opencv/BFMatcher.ts +37 -0
  158. package/src/types/opencv/BOWTrainer.ts +43 -0
  159. package/src/types/opencv/CascadeClassifier.ts +153 -0
  160. package/src/types/opencv/DescriptorMatcher.ts +244 -0
  161. package/src/types/opencv/DynamicBitset.ts +68 -0
  162. package/src/types/opencv/Exception.ts +54 -0
  163. package/src/types/opencv/Feature2D.ts +20 -0
  164. package/src/types/opencv/FlannBasedMatcher.ts +50 -0
  165. package/src/types/opencv/HOGDescriptor.ts +401 -0
  166. package/src/types/opencv/Logger.ts +34 -0
  167. package/src/types/opencv/LshTable.ts +81 -0
  168. package/src/types/opencv/Mat.ts +1765 -0
  169. package/src/types/opencv/MatExpr.ts +107 -0
  170. package/src/types/opencv/MatOp.ts +70 -0
  171. package/src/types/opencv/Matx.ts +228 -0
  172. package/src/types/opencv/Node.ts +33 -0
  173. package/src/types/opencv/ORB.ts +22 -0
  174. package/src/types/opencv/PCA.ts +204 -0
  175. package/src/types/opencv/RotatedRect.ts +72 -0
  176. package/src/types/opencv/_hacks.ts +321 -0
  177. package/src/types/opencv/_types.ts +44 -0
  178. package/src/types/opencv/calib3d.ts +2937 -0
  179. package/src/types/opencv/core_array.ts +3102 -0
  180. package/src/types/opencv/core_cluster.ts +81 -0
  181. package/src/types/opencv/core_hal_interface.ts +159 -0
  182. package/src/types/opencv/core_utils.ts +748 -0
  183. package/src/types/opencv/dnn.ts +505 -0
  184. package/src/types/opencv/features2d_draw.ts +114 -0
  185. package/src/types/opencv/imgproc_color_conversions.ts +527 -0
  186. package/src/types/opencv/imgproc_draw.ts +733 -0
  187. package/src/types/opencv/imgproc_feature.ts +681 -0
  188. package/src/types/opencv/imgproc_filter.ts +918 -0
  189. package/src/types/opencv/imgproc_hist.ts +399 -0
  190. package/src/types/opencv/imgproc_misc.ts +616 -0
  191. package/src/types/opencv/imgproc_object.ts +58 -0
  192. package/src/types/opencv/imgproc_shape.ts +734 -0
  193. package/src/types/opencv/imgproc_transform.ts +574 -0
  194. package/src/types/opencv/index.ts +4 -0
  195. package/src/types/opencv/objdetect.ts +103 -0
  196. package/src/types/opencv/photo_inpaint.ts +37 -0
  197. package/src/types/opencv/softdouble.ts +64 -0
  198. package/src/types/opencv/softfloat.ts +64 -0
  199. package/src/types/opencv/video_track.ts +372 -0
  200. package/dist/types/index.d.ts +0 -1
@@ -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":""}