@techstark/opencv-js 4.11.0-release.1 → 4.12.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.
Files changed (32) hide show
  1. package/README.md +18 -17
  2. package/dist/opencv.js +12 -11
  3. package/dist/src/types/opencv/Feature2D.d.ts +1 -1
  4. package/dist/src/types/opencv/Mat.d.ts +1 -1
  5. package/dist/src/types/opencv/ORB.d.ts +1 -1
  6. package/dist/src/types/opencv/QRCodeDetector.d.ts +76 -0
  7. package/dist/src/types/opencv/QRCodeDetector.js +3 -0
  8. package/dist/src/types/opencv/QRCodeDetector.js.map +1 -0
  9. package/dist/src/types/opencv/QRCodeDetectorAruco.d.ts +101 -0
  10. package/dist/src/types/opencv/QRCodeDetectorAruco.js +3 -0
  11. package/dist/src/types/opencv/QRCodeDetectorAruco.js.map +1 -0
  12. package/dist/src/types/opencv/_types.d.ts +1 -0
  13. package/dist/src/types/opencv/_types.js +1 -0
  14. package/dist/src/types/opencv/_types.js.map +1 -1
  15. package/dist/src/types/opencv/imgproc_colormap.d.ts +43 -0
  16. package/dist/src/types/opencv/imgproc_colormap.js +3 -0
  17. package/dist/src/types/opencv/imgproc_colormap.js.map +1 -0
  18. package/dist/src/types/opencv/imgproc_shape.d.ts +2 -2
  19. package/dist/src/types/opencv/objdetect.d.ts +2 -0
  20. package/dist/src/types/opencv/objdetect.js +6 -0
  21. package/dist/src/types/opencv/objdetect.js.map +1 -1
  22. package/package.json +1 -1
  23. package/src/types/opencv/Feature2D.ts +1 -1
  24. package/src/types/opencv/FlannBasedMatcher.ts +8 -1
  25. package/src/types/opencv/Mat.ts +1 -1
  26. package/src/types/opencv/ORB.ts +1 -1
  27. package/src/types/opencv/QRCodeDetector.ts +111 -0
  28. package/src/types/opencv/QRCodeDetectorAruco.ts +139 -0
  29. package/src/types/opencv/_types.ts +1 -0
  30. package/src/types/opencv/imgproc_colormap.ts +60 -0
  31. package/src/types/opencv/imgproc_shape.ts +3 -5
  32. package/src/types/opencv/objdetect.ts +6 -0
@@ -0,0 +1,60 @@
1
+ import type { InputArray, int, OutputArray } from "./_types";
2
+
3
+ /*
4
+ * # Colormap Transformations
5
+ *
6
+ */
7
+
8
+ /**
9
+ * Applies a colormap on a given image.
10
+ *
11
+ * @param src The source image, which should be grayscale. Should be 8-bit, 16-bit, or floating-point.
12
+ * @param dst The result is the colored image.
13
+ * @param colormap The colormap to apply.
14
+ */
15
+ export declare function applyColorMap(
16
+ src: InputArray,
17
+ dst: OutputArray,
18
+ colormap: int,
19
+ ): void;
20
+
21
+ /**
22
+ * Applies a user colormap on a given image.
23
+ *
24
+ * @param src The source image, which should be grayscale. Should be 8-bit, 16-bit, or floating-point.
25
+ * @param dst The result is the colored image.
26
+ * @param userColor The colormap to apply of type CV_8UC1 or CV_8UC3 and size 256.
27
+ */
28
+ export declare function applyColorMap(
29
+ src: InputArray,
30
+ dst: OutputArray,
31
+ userColor: InputArray,
32
+ ): void;
33
+
34
+ /**
35
+ * Colormap types used by the applyColorMap function.
36
+ */
37
+ export type ColormapTypes = any;
38
+
39
+ export declare const COLORMAP_AUTUMN: ColormapTypes; // initializer: = 0
40
+ export declare const COLORMAP_BONE: ColormapTypes; // initializer: = 1
41
+ export declare const COLORMAP_JET: ColormapTypes; // initializer: = 2
42
+ export declare const COLORMAP_WINTER: ColormapTypes; // initializer: = 3
43
+ export declare const COLORMAP_RAINBOW: ColormapTypes; // initializer: = 4
44
+ export declare const COLORMAP_OCEAN: ColormapTypes; // initializer: = 5
45
+ export declare const COLORMAP_SUMMER: ColormapTypes; // initializer: = 6
46
+ export declare const COLORMAP_SPRING: ColormapTypes; // initializer: = 7
47
+ export declare const COLORMAP_COOL: ColormapTypes; // initializer: = 8
48
+ export declare const COLORMAP_HSV: ColormapTypes; // initializer: = 9
49
+ export declare const COLORMAP_PINK: ColormapTypes; // initializer: = 10
50
+ export declare const COLORMAP_HOT: ColormapTypes; // initializer: = 11
51
+ export declare const COLORMAP_PARULA: ColormapTypes; // initializer: = 12
52
+ export declare const COLORMAP_MAGMA: ColormapTypes; // initializer: = 13
53
+ export declare const COLORMAP_INFERNO: ColormapTypes; // initializer: = 14
54
+ export declare const COLORMAP_PLASMA: ColormapTypes; // initializer: = 15
55
+ export declare const COLORMAP_VIRIDIS: ColormapTypes; // initializer: = 16
56
+ export declare const COLORMAP_CIVIDIS: ColormapTypes; // initializer: = 17
57
+ export declare const COLORMAP_TWILIGHT: ColormapTypes; // initializer: = 18
58
+ export declare const COLORMAP_TWILIGHT_SHIFTED: ColormapTypes; // initializer: = 19
59
+ export declare const COLORMAP_TURBO: ColormapTypes; // initializer: = 20
60
+ export declare const COLORMAP_DEEPGREEN: ColormapTypes; // initializer: = 21
@@ -65,9 +65,9 @@ export declare function boundingRect(array: InputArray): Rect;
65
65
  *
66
66
  * @param box The input rotated rectangle. It may be the output of
67
67
  *
68
- * @param points The output array of four vertices of rectangles.
68
+ * @returns An array of four vertices of the rectangle (Point2f[])
69
69
  */
70
- export declare function boxPoints(box: RotatedRect, points: OutputArray): void;
70
+ export declare function boxPoints(box: RotatedRect): Point2f[];
71
71
 
72
72
  /**
73
73
  * image with 4 or 8 way connectivity - returns N, the total number of labels [0, N-1] where 0
@@ -533,9 +533,7 @@ export declare function minAreaRect(points: InputArray): RotatedRect;
533
533
  *
534
534
  * @param points Input vector of 2D points, stored in std::vector<> or Mat
535
535
  */
536
- export declare function minEnclosingCircle(
537
- points: InputArray,
538
- ): Circle;
536
+ export declare function minEnclosingCircle(points: InputArray): Circle;
539
537
 
540
538
  /**
541
539
  * The function finds a triangle of minimum area enclosing the given set of 2D points and returns its
@@ -101,3 +101,9 @@ export declare const CASCADE_SCALE_IMAGE: any; // initializer: = 2
101
101
  export declare const CASCADE_FIND_BIGGEST_OBJECT: any; // initializer: = 4
102
102
 
103
103
  export declare const CASCADE_DO_ROUGH_SEARCH: any; // initializer: = 8
104
+
105
+ export { QRCodeDetector } from "./QRCodeDetector";
106
+ export {
107
+ QRCodeDetectorAruco,
108
+ QRCodeDetectorAruco_Params,
109
+ } from "./QRCodeDetectorAruco";