opencv-contrib-python-headless 4.13.0.90__cp37-abi3-macosx_14_0_x86_64.whl

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 (133) hide show
  1. cv2/.dylibs/libaom.3.13.1.dylib +0 -0
  2. cv2/.dylibs/libavif.16.3.0.dylib +0 -0
  3. cv2/.dylibs/libdav1d.7.dylib +0 -0
  4. cv2/.dylibs/libvmaf.3.dylib +0 -0
  5. cv2/Error/__init__.pyi +118 -0
  6. cv2/LICENSE-3RD-PARTY.txt +3513 -0
  7. cv2/LICENSE.txt +21 -0
  8. cv2/__init__.py +181 -0
  9. cv2/__init__.pyi +6858 -0
  10. cv2/aruco/__init__.pyi +410 -0
  11. cv2/barcode/__init__.pyi +40 -0
  12. cv2/bgsegm/__init__.pyi +202 -0
  13. cv2/bioinspired/__init__.pyi +121 -0
  14. cv2/ccm/__init__.pyi +167 -0
  15. cv2/colored_kinfu/__init__.pyi +96 -0
  16. cv2/config-3.py +24 -0
  17. cv2/config.py +5 -0
  18. cv2/cuda/__init__.pyi +553 -0
  19. cv2/cv2.abi3.so +0 -0
  20. cv2/data/__init__.py +3 -0
  21. cv2/data/haarcascade_eye.xml +12213 -0
  22. cv2/data/haarcascade_eye_tree_eyeglasses.xml +22619 -0
  23. cv2/data/haarcascade_frontalcatface.xml +14382 -0
  24. cv2/data/haarcascade_frontalcatface_extended.xml +13394 -0
  25. cv2/data/haarcascade_frontalface_alt.xml +24350 -0
  26. cv2/data/haarcascade_frontalface_alt2.xml +20719 -0
  27. cv2/data/haarcascade_frontalface_alt_tree.xml +96484 -0
  28. cv2/data/haarcascade_frontalface_default.xml +33314 -0
  29. cv2/data/haarcascade_fullbody.xml +17030 -0
  30. cv2/data/haarcascade_lefteye_2splits.xml +7390 -0
  31. cv2/data/haarcascade_license_plate_rus_16stages.xml +1404 -0
  32. cv2/data/haarcascade_lowerbody.xml +14056 -0
  33. cv2/data/haarcascade_profileface.xml +29690 -0
  34. cv2/data/haarcascade_righteye_2splits.xml +7407 -0
  35. cv2/data/haarcascade_russian_plate_number.xml +2656 -0
  36. cv2/data/haarcascade_smile.xml +6729 -0
  37. cv2/data/haarcascade_upperbody.xml +28134 -0
  38. cv2/datasets/__init__.pyi +80 -0
  39. cv2/detail/__init__.pyi +627 -0
  40. cv2/dnn/__init__.pyi +549 -0
  41. cv2/dnn_superres/__init__.pyi +37 -0
  42. cv2/dpm/__init__.pyi +10 -0
  43. cv2/dynafu/__init__.pyi +43 -0
  44. cv2/face/__init__.pyi +220 -0
  45. cv2/fisheye/__init__.pyi +88 -0
  46. cv2/flann/__init__.pyi +65 -0
  47. cv2/ft/__init__.pyi +98 -0
  48. cv2/gapi/__init__.py +323 -0
  49. cv2/gapi/__init__.pyi +349 -0
  50. cv2/gapi/core/__init__.pyi +7 -0
  51. cv2/gapi/core/cpu/__init__.pyi +9 -0
  52. cv2/gapi/core/fluid/__init__.pyi +9 -0
  53. cv2/gapi/core/ocl/__init__.pyi +9 -0
  54. cv2/gapi/ie/__init__.pyi +51 -0
  55. cv2/gapi/ie/detail/__init__.pyi +12 -0
  56. cv2/gapi/imgproc/__init__.pyi +5 -0
  57. cv2/gapi/imgproc/fluid/__init__.pyi +9 -0
  58. cv2/gapi/oak/__init__.pyi +37 -0
  59. cv2/gapi/onnx/__init__.pyi +55 -0
  60. cv2/gapi/onnx/ep/__init__.pyi +63 -0
  61. cv2/gapi/ot/__init__.pyi +32 -0
  62. cv2/gapi/ot/cpu/__init__.pyi +9 -0
  63. cv2/gapi/ov/__init__.pyi +74 -0
  64. cv2/gapi/own/__init__.pyi +5 -0
  65. cv2/gapi/own/detail/__init__.pyi +10 -0
  66. cv2/gapi/render/__init__.pyi +5 -0
  67. cv2/gapi/render/ocv/__init__.pyi +9 -0
  68. cv2/gapi/streaming/__init__.pyi +42 -0
  69. cv2/gapi/video/__init__.pyi +10 -0
  70. cv2/gapi/wip/__init__.pyi +43 -0
  71. cv2/gapi/wip/draw/__init__.pyi +119 -0
  72. cv2/gapi/wip/gst/__init__.pyi +17 -0
  73. cv2/gapi/wip/onevpl/__init__.pyi +16 -0
  74. cv2/hfs/__init__.pyi +53 -0
  75. cv2/img_hash/__init__.pyi +116 -0
  76. cv2/instr/__init__.pyi +24 -0
  77. cv2/intensity_transform/__init__.pyi +27 -0
  78. cv2/ipp/__init__.pyi +14 -0
  79. cv2/kinfu/__init__.pyi +133 -0
  80. cv2/kinfu/detail/__init__.pyi +7 -0
  81. cv2/large_kinfu/__init__.pyi +73 -0
  82. cv2/legacy/__init__.pyi +93 -0
  83. cv2/line_descriptor/__init__.pyi +112 -0
  84. cv2/linemod/__init__.pyi +151 -0
  85. cv2/load_config_py2.py +6 -0
  86. cv2/load_config_py3.py +9 -0
  87. cv2/mat_wrapper/__init__.py +40 -0
  88. cv2/mcc/__init__.pyi +109 -0
  89. cv2/misc/__init__.py +1 -0
  90. cv2/misc/version.py +5 -0
  91. cv2/ml/__init__.pyi +696 -0
  92. cv2/motempl/__init__.pyi +29 -0
  93. cv2/multicalib/__init__.pyi +10 -0
  94. cv2/ocl/__init__.pyi +252 -0
  95. cv2/ogl/__init__.pyi +51 -0
  96. cv2/omnidir/__init__.pyi +68 -0
  97. cv2/optflow/__init__.pyi +286 -0
  98. cv2/parallel/__init__.pyi +6 -0
  99. cv2/phase_unwrapping/__init__.pyi +41 -0
  100. cv2/plot/__init__.pyi +64 -0
  101. cv2/ppf_match_3d/__init__.pyi +91 -0
  102. cv2/py.typed +0 -0
  103. cv2/quality/__init__.pyi +149 -0
  104. cv2/rapid/__init__.pyi +91 -0
  105. cv2/reg/__init__.pyi +210 -0
  106. cv2/rgbd/__init__.pyi +449 -0
  107. cv2/saliency/__init__.pyi +117 -0
  108. cv2/samples/__init__.pyi +12 -0
  109. cv2/segmentation/__init__.pyi +39 -0
  110. cv2/signal/__init__.pyi +14 -0
  111. cv2/stereo/__init__.pyi +88 -0
  112. cv2/structured_light/__init__.pyi +94 -0
  113. cv2/text/__init__.pyi +204 -0
  114. cv2/typing/__init__.py +180 -0
  115. cv2/utils/__init__.py +14 -0
  116. cv2/utils/__init__.pyi +110 -0
  117. cv2/utils/fs/__init__.pyi +6 -0
  118. cv2/utils/logging/__init__.pyi +22 -0
  119. cv2/utils/nested/__init__.pyi +31 -0
  120. cv2/version.py +5 -0
  121. cv2/videoio_registry/__init__.pyi +31 -0
  122. cv2/videostab/__init__.pyi +16 -0
  123. cv2/wechat_qrcode/__init__.pyi +23 -0
  124. cv2/xfeatures2d/__init__.pyi +537 -0
  125. cv2/ximgproc/__init__.pyi +746 -0
  126. cv2/ximgproc/segmentation/__init__.pyi +116 -0
  127. cv2/xphoto/__init__.pyi +142 -0
  128. opencv_contrib_python_headless-4.13.0.90.dist-info/LICENSE-3RD-PARTY.txt +3513 -0
  129. opencv_contrib_python_headless-4.13.0.90.dist-info/LICENSE.txt +21 -0
  130. opencv_contrib_python_headless-4.13.0.90.dist-info/METADATA +300 -0
  131. opencv_contrib_python_headless-4.13.0.90.dist-info/RECORD +133 -0
  132. opencv_contrib_python_headless-4.13.0.90.dist-info/WHEEL +6 -0
  133. opencv_contrib_python_headless-4.13.0.90.dist-info/top_level.txt +1 -0
@@ -0,0 +1,121 @@
1
+ __all__: list[str] = []
2
+
3
+ import cv2
4
+ import cv2.typing
5
+ import typing as _typing
6
+
7
+
8
+ # Enumerations
9
+ RETINA_COLOR_RANDOM: int
10
+ RETINA_COLOR_DIAGONAL: int
11
+ RETINA_COLOR_BAYER: int
12
+
13
+
14
+
15
+ # Classes
16
+ class Retina(cv2.Algorithm):
17
+ # Functions
18
+ def getInputSize(self) -> cv2.typing.Size: ...
19
+
20
+ def getOutputSize(self) -> cv2.typing.Size: ...
21
+
22
+ def setup(self, retinaParameterFile: str = ..., applyDefaultSetupOnFailure: bool = ...) -> None: ...
23
+
24
+ def printSetup(self) -> str: ...
25
+
26
+ def write(self, fs: str) -> None: ...
27
+
28
+ def setupOPLandIPLParvoChannel(self, colorMode: bool = ..., normaliseOutput: bool = ..., photoreceptorsLocalAdaptationSensitivity: float = ..., photoreceptorsTemporalConstant: float = ..., photoreceptorsSpatialConstant: float = ..., horizontalCellsGain: float = ..., HcellsTemporalConstant: float = ..., HcellsSpatialConstant: float = ..., ganglionCellsSensitivity: float = ...) -> None: ...
29
+
30
+ def setupIPLMagnoChannel(self, normaliseOutput: bool = ..., parasolCells_beta: float = ..., parasolCells_tau: float = ..., parasolCells_k: float = ..., amacrinCellsTemporalCutFrequency: float = ..., V0CompressionParameter: float = ..., localAdaptintegration_tau: float = ..., localAdaptintegration_k: float = ...) -> None: ...
31
+
32
+ @_typing.overload
33
+ def run(self, inputImage: cv2.typing.MatLike) -> None: ...
34
+ @_typing.overload
35
+ def run(self, inputImage: cv2.UMat) -> None: ...
36
+
37
+ @_typing.overload
38
+ def applyFastToneMapping(self, inputImage: cv2.typing.MatLike, outputToneMappedImage: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
39
+ @_typing.overload
40
+ def applyFastToneMapping(self, inputImage: cv2.UMat, outputToneMappedImage: cv2.UMat | None = ...) -> cv2.UMat: ...
41
+
42
+ @_typing.overload
43
+ def getParvo(self, retinaOutput_parvo: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
44
+ @_typing.overload
45
+ def getParvo(self, retinaOutput_parvo: cv2.UMat | None = ...) -> cv2.UMat: ...
46
+
47
+ @_typing.overload
48
+ def getParvoRAW(self, retinaOutput_parvo: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
49
+ @_typing.overload
50
+ def getParvoRAW(self, retinaOutput_parvo: cv2.UMat | None = ...) -> cv2.UMat: ...
51
+ @_typing.overload
52
+ def getParvoRAW(self) -> cv2.typing.MatLike: ...
53
+
54
+ @_typing.overload
55
+ def getMagno(self, retinaOutput_magno: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
56
+ @_typing.overload
57
+ def getMagno(self, retinaOutput_magno: cv2.UMat | None = ...) -> cv2.UMat: ...
58
+
59
+ @_typing.overload
60
+ def getMagnoRAW(self, retinaOutput_magno: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
61
+ @_typing.overload
62
+ def getMagnoRAW(self, retinaOutput_magno: cv2.UMat | None = ...) -> cv2.UMat: ...
63
+ @_typing.overload
64
+ def getMagnoRAW(self) -> cv2.typing.MatLike: ...
65
+
66
+ def setColorSaturation(self, saturateColors: bool = ..., colorSaturationValue: float = ...) -> None: ...
67
+
68
+ def clearBuffers(self) -> None: ...
69
+
70
+ def activateMovingContoursProcessing(self, activate: bool) -> None: ...
71
+
72
+ def activateContoursProcessing(self, activate: bool) -> None: ...
73
+
74
+ @classmethod
75
+ @_typing.overload
76
+ def create(cls, inputSize: cv2.typing.Size) -> Retina: ...
77
+ @classmethod
78
+ @_typing.overload
79
+ def create(cls, inputSize: cv2.typing.Size, colorMode: bool, colorSamplingMethod: int = ..., useRetinaLogSampling: bool = ..., reductionFactor: float = ..., samplingStrength: float = ...) -> Retina: ...
80
+
81
+
82
+ class RetinaFastToneMapping(cv2.Algorithm):
83
+ # Functions
84
+ @_typing.overload
85
+ def applyFastToneMapping(self, inputImage: cv2.typing.MatLike, outputToneMappedImage: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
86
+ @_typing.overload
87
+ def applyFastToneMapping(self, inputImage: cv2.UMat, outputToneMappedImage: cv2.UMat | None = ...) -> cv2.UMat: ...
88
+
89
+ def setup(self, photoreceptorsNeighborhoodRadius: float = ..., ganglioncellsNeighborhoodRadius: float = ..., meanLuminanceModulatorK: float = ...) -> None: ...
90
+
91
+ @classmethod
92
+ def create(cls, inputSize: cv2.typing.Size) -> RetinaFastToneMapping: ...
93
+
94
+
95
+ class TransientAreasSegmentationModule(cv2.Algorithm):
96
+ # Functions
97
+ def getSize(self) -> cv2.typing.Size: ...
98
+
99
+ def setup(self, segmentationParameterFile: str = ..., applyDefaultSetupOnFailure: bool = ...) -> None: ...
100
+
101
+ def printSetup(self) -> str: ...
102
+
103
+ def write(self, fs: str) -> None: ...
104
+
105
+ @_typing.overload
106
+ def run(self, inputToSegment: cv2.typing.MatLike, channelIndex: int = ...) -> None: ...
107
+ @_typing.overload
108
+ def run(self, inputToSegment: cv2.UMat, channelIndex: int = ...) -> None: ...
109
+
110
+ @_typing.overload
111
+ def getSegmentationPicture(self, transientAreas: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
112
+ @_typing.overload
113
+ def getSegmentationPicture(self, transientAreas: cv2.UMat | None = ...) -> cv2.UMat: ...
114
+
115
+ def clearAllBuffers(self) -> None: ...
116
+
117
+ @classmethod
118
+ def create(cls, inputSize: cv2.typing.Size) -> TransientAreasSegmentationModule: ...
119
+
120
+
121
+
cv2/ccm/__init__.pyi ADDED
@@ -0,0 +1,167 @@
1
+ __all__: list[str] = []
2
+
3
+ import cv2.typing
4
+ import typing as _typing
5
+
6
+
7
+ # Enumerations
8
+ CCM_3x3: int
9
+ CCM_3X3: int
10
+ CCM_4x3: int
11
+ CCM_4X3: int
12
+ CCM_TYPE = int
13
+ """One of [CCM_3x3, CCM_3X3, CCM_4x3, CCM_4X3]"""
14
+
15
+ INITIAL_METHOD_WHITE_BALANCE: int
16
+ INITIAL_METHOD_LEAST_SQUARE: int
17
+ INITIAL_METHOD_TYPE = int
18
+ """One of [INITIAL_METHOD_WHITE_BALANCE, INITIAL_METHOD_LEAST_SQUARE]"""
19
+
20
+ COLORCHECKER_Macbeth: int
21
+ COLORCHECKER_MACBETH: int
22
+ COLORCHECKER_Vinyl: int
23
+ COLORCHECKER_VINYL: int
24
+ COLORCHECKER_DigitalSG: int
25
+ COLORCHECKER_DIGITAL_SG: int
26
+ CONST_COLOR = int
27
+ """One of [COLORCHECKER_Macbeth, COLORCHECKER_MACBETH, COLORCHECKER_Vinyl, COLORCHECKER_VINYL, COLORCHECKER_DigitalSG, COLORCHECKER_DIGITAL_SG]"""
28
+
29
+ COLOR_SPACE_sRGB: int
30
+ COLOR_SPACE_S_RGB: int
31
+ COLOR_SPACE_sRGBL: int
32
+ COLOR_SPACE_S_RGBL: int
33
+ COLOR_SPACE_AdobeRGB: int
34
+ COLOR_SPACE_ADOBE_RGB: int
35
+ COLOR_SPACE_AdobeRGBL: int
36
+ COLOR_SPACE_ADOBE_RGBL: int
37
+ COLOR_SPACE_WideGamutRGB: int
38
+ COLOR_SPACE_WIDE_GAMUT_RGB: int
39
+ COLOR_SPACE_WideGamutRGBL: int
40
+ COLOR_SPACE_WIDE_GAMUT_RGBL: int
41
+ COLOR_SPACE_ProPhotoRGB: int
42
+ COLOR_SPACE_PRO_PHOTO_RGB: int
43
+ COLOR_SPACE_ProPhotoRGBL: int
44
+ COLOR_SPACE_PRO_PHOTO_RGBL: int
45
+ COLOR_SPACE_DCI_P3_RGB: int
46
+ COLOR_SPACE_DCI_P3_RGBL: int
47
+ COLOR_SPACE_AppleRGB: int
48
+ COLOR_SPACE_APPLE_RGB: int
49
+ COLOR_SPACE_AppleRGBL: int
50
+ COLOR_SPACE_APPLE_RGBL: int
51
+ COLOR_SPACE_REC_709_RGB: int
52
+ COLOR_SPACE_REC_709_RGBL: int
53
+ COLOR_SPACE_REC_2020_RGB: int
54
+ COLOR_SPACE_REC_2020_RGBL: int
55
+ COLOR_SPACE_XYZ_D65_2: int
56
+ COLOR_SPACE_XYZ_D65_10: int
57
+ COLOR_SPACE_XYZ_D50_2: int
58
+ COLOR_SPACE_XYZ_D50_10: int
59
+ COLOR_SPACE_XYZ_A_2: int
60
+ COLOR_SPACE_XYZ_A_10: int
61
+ COLOR_SPACE_XYZ_D55_2: int
62
+ COLOR_SPACE_XYZ_D55_10: int
63
+ COLOR_SPACE_XYZ_D75_2: int
64
+ COLOR_SPACE_XYZ_D75_10: int
65
+ COLOR_SPACE_XYZ_E_2: int
66
+ COLOR_SPACE_XYZ_E_10: int
67
+ COLOR_SPACE_Lab_D65_2: int
68
+ COLOR_SPACE_LAB_D65_2: int
69
+ COLOR_SPACE_Lab_D65_10: int
70
+ COLOR_SPACE_LAB_D65_10: int
71
+ COLOR_SPACE_Lab_D50_2: int
72
+ COLOR_SPACE_LAB_D50_2: int
73
+ COLOR_SPACE_Lab_D50_10: int
74
+ COLOR_SPACE_LAB_D50_10: int
75
+ COLOR_SPACE_Lab_A_2: int
76
+ COLOR_SPACE_LAB_A_2: int
77
+ COLOR_SPACE_Lab_A_10: int
78
+ COLOR_SPACE_LAB_A_10: int
79
+ COLOR_SPACE_Lab_D55_2: int
80
+ COLOR_SPACE_LAB_D55_2: int
81
+ COLOR_SPACE_Lab_D55_10: int
82
+ COLOR_SPACE_LAB_D55_10: int
83
+ COLOR_SPACE_Lab_D75_2: int
84
+ COLOR_SPACE_LAB_D75_2: int
85
+ COLOR_SPACE_Lab_D75_10: int
86
+ COLOR_SPACE_LAB_D75_10: int
87
+ COLOR_SPACE_Lab_E_2: int
88
+ COLOR_SPACE_LAB_E_2: int
89
+ COLOR_SPACE_Lab_E_10: int
90
+ COLOR_SPACE_LAB_E_10: int
91
+ COLOR_SPACE = int
92
+ """One of [COLOR_SPACE_sRGB, COLOR_SPACE_S_RGB, COLOR_SPACE_sRGBL, COLOR_SPACE_S_RGBL, COLOR_SPACE_AdobeRGB, COLOR_SPACE_ADOBE_RGB, COLOR_SPACE_AdobeRGBL, COLOR_SPACE_ADOBE_RGBL, COLOR_SPACE_WideGamutRGB, COLOR_SPACE_WIDE_GAMUT_RGB, COLOR_SPACE_WideGamutRGBL, COLOR_SPACE_WIDE_GAMUT_RGBL, COLOR_SPACE_ProPhotoRGB, COLOR_SPACE_PRO_PHOTO_RGB, COLOR_SPACE_ProPhotoRGBL, COLOR_SPACE_PRO_PHOTO_RGBL, COLOR_SPACE_DCI_P3_RGB, COLOR_SPACE_DCI_P3_RGBL, COLOR_SPACE_AppleRGB, COLOR_SPACE_APPLE_RGB, COLOR_SPACE_AppleRGBL, COLOR_SPACE_APPLE_RGBL, COLOR_SPACE_REC_709_RGB, COLOR_SPACE_REC_709_RGBL, COLOR_SPACE_REC_2020_RGB, COLOR_SPACE_REC_2020_RGBL, COLOR_SPACE_XYZ_D65_2, COLOR_SPACE_XYZ_D65_10, COLOR_SPACE_XYZ_D50_2, COLOR_SPACE_XYZ_D50_10, COLOR_SPACE_XYZ_A_2, COLOR_SPACE_XYZ_A_10, COLOR_SPACE_XYZ_D55_2, COLOR_SPACE_XYZ_D55_10, COLOR_SPACE_XYZ_D75_2, COLOR_SPACE_XYZ_D75_10, COLOR_SPACE_XYZ_E_2, COLOR_SPACE_XYZ_E_10, COLOR_SPACE_Lab_D65_2, COLOR_SPACE_LAB_D65_2, COLOR_SPACE_Lab_D65_10, COLOR_SPACE_LAB_D65_10, COLOR_SPACE_Lab_D50_2, COLOR_SPACE_LAB_D50_2, COLOR_SPACE_Lab_D50_10, COLOR_SPACE_LAB_D50_10, COLOR_SPACE_Lab_A_2, COLOR_SPACE_LAB_A_2, COLOR_SPACE_Lab_A_10, COLOR_SPACE_LAB_A_10, COLOR_SPACE_Lab_D55_2, COLOR_SPACE_LAB_D55_2, COLOR_SPACE_Lab_D55_10, COLOR_SPACE_LAB_D55_10, COLOR_SPACE_Lab_D75_2, COLOR_SPACE_LAB_D75_2, COLOR_SPACE_Lab_D75_10, COLOR_SPACE_LAB_D75_10, COLOR_SPACE_Lab_E_2, COLOR_SPACE_LAB_E_2, COLOR_SPACE_Lab_E_10, COLOR_SPACE_LAB_E_10]"""
93
+
94
+ LINEARIZATION_IDENTITY: int
95
+ LINEARIZATION_GAMMA: int
96
+ LINEARIZATION_COLORPOLYFIT: int
97
+ LINEARIZATION_COLORLOGPOLYFIT: int
98
+ LINEARIZATION_GRAYPOLYFIT: int
99
+ LINEARIZATION_GRAYLOGPOLYFIT: int
100
+ LINEAR_TYPE = int
101
+ """One of [LINEARIZATION_IDENTITY, LINEARIZATION_GAMMA, LINEARIZATION_COLORPOLYFIT, LINEARIZATION_COLORLOGPOLYFIT, LINEARIZATION_GRAYPOLYFIT, LINEARIZATION_GRAYLOGPOLYFIT]"""
102
+
103
+ DISTANCE_CIE76: int
104
+ DISTANCE_CIE94_GRAPHIC_ARTS: int
105
+ DISTANCE_CIE94_TEXTILES: int
106
+ DISTANCE_CIE2000: int
107
+ DISTANCE_CMC_1TO1: int
108
+ DISTANCE_CMC_2TO1: int
109
+ DISTANCE_RGB: int
110
+ DISTANCE_RGBL: int
111
+ DISTANCE_TYPE = int
112
+ """One of [DISTANCE_CIE76, DISTANCE_CIE94_GRAPHIC_ARTS, DISTANCE_CIE94_TEXTILES, DISTANCE_CIE2000, DISTANCE_CMC_1TO1, DISTANCE_CMC_2TO1, DISTANCE_RGB, DISTANCE_RGBL]"""
113
+
114
+
115
+
116
+ # Classes
117
+ class ColorCorrectionModel:
118
+ # Functions
119
+ @_typing.overload
120
+ def __init__(self, src: cv2.typing.MatLike, constcolor: CONST_COLOR) -> None: ...
121
+ @_typing.overload
122
+ def __init__(self, src: cv2.typing.MatLike, colors: cv2.typing.MatLike, ref_cs: COLOR_SPACE) -> None: ...
123
+ @_typing.overload
124
+ def __init__(self, src: cv2.typing.MatLike, colors: cv2.typing.MatLike, ref_cs: COLOR_SPACE, colored: cv2.typing.MatLike) -> None: ...
125
+
126
+ def setColorSpace(self, cs: COLOR_SPACE) -> None: ...
127
+
128
+ def setCCM_TYPE(self, ccm_type: CCM_TYPE) -> None: ...
129
+
130
+ def setDistance(self, distance: DISTANCE_TYPE) -> None: ...
131
+
132
+ def setLinear(self, linear_type: LINEAR_TYPE) -> None: ...
133
+
134
+ def setLinearGamma(self, gamma: float) -> None: ...
135
+
136
+ def setLinearDegree(self, deg: int) -> None: ...
137
+
138
+ def setSaturatedThreshold(self, lower: float, upper: float) -> None: ...
139
+
140
+ def setWeightsList(self, weights_list: cv2.typing.MatLike) -> None: ...
141
+
142
+ def setWeightCoeff(self, weights_coeff: float) -> None: ...
143
+
144
+ def setInitialMethod(self, initial_method_type: INITIAL_METHOD_TYPE) -> None: ...
145
+
146
+ def setMaxCount(self, max_count: int) -> None: ...
147
+
148
+ def setEpsilon(self, epsilon: float) -> None: ...
149
+
150
+ def run(self) -> None: ...
151
+
152
+ def getCCM(self) -> cv2.typing.MatLike: ...
153
+
154
+ def getLoss(self) -> float: ...
155
+
156
+ def get_src_rgbl(self) -> cv2.typing.MatLike: ...
157
+
158
+ def get_dst_rgbl(self) -> cv2.typing.MatLike: ...
159
+
160
+ def getMask(self) -> cv2.typing.MatLike: ...
161
+
162
+ def getWeights(self) -> cv2.typing.MatLike: ...
163
+
164
+ def infer(self, img: cv2.typing.MatLike, islinear: bool = ...) -> cv2.typing.MatLike: ...
165
+
166
+
167
+
@@ -0,0 +1,96 @@
1
+ __all__: list[str] = []
2
+
3
+ import cv2
4
+ import cv2.kinfu
5
+ import cv2.typing
6
+ import typing as _typing
7
+
8
+
9
+ # Classes
10
+ class Params:
11
+ frameSize: cv2.typing.Size
12
+ rgb_frameSize: cv2.typing.Size
13
+ volumeType: cv2.kinfu.VolumeType
14
+ intr: cv2.typing.Matx33f
15
+ rgb_intr: cv2.typing.Matx33f
16
+ depthFactor: float
17
+ bilateral_sigma_depth: float
18
+ bilateral_sigma_spatial: float
19
+ bilateral_kernel_size: int
20
+ pyramidLevels: int
21
+ volumeDims: cv2.typing.Vec3i
22
+ voxelSize: float
23
+ tsdf_min_camera_movement: float
24
+ tsdf_trunc_dist: float
25
+ tsdf_max_weight: int
26
+ raycast_step_factor: float
27
+ lightPose: cv2.typing.Vec3f
28
+ icpDistThresh: float
29
+ icpAngleThresh: float
30
+ icpIterations: _typing.Sequence[int]
31
+ truncateThreshold: float
32
+
33
+ # Functions
34
+ @_typing.overload
35
+ def __init__(self) -> None: ...
36
+ @_typing.overload
37
+ def __init__(self, volumeInitialPoseRot: cv2.typing.Matx33f, volumeInitialPoseTransl: cv2.typing.Vec3f) -> None: ...
38
+ @_typing.overload
39
+ def __init__(self, volumeInitialPose: cv2.typing.Matx44f) -> None: ...
40
+
41
+ @_typing.overload
42
+ def setInitialVolumePose(self, R: cv2.typing.Matx33f, t: cv2.typing.Vec3f) -> None: ...
43
+ @_typing.overload
44
+ def setInitialVolumePose(self, homogen_tf: cv2.typing.Matx44f) -> None: ...
45
+
46
+ @classmethod
47
+ def defaultParams(cls) -> Params: ...
48
+
49
+ @classmethod
50
+ def coarseParams(cls) -> Params: ...
51
+
52
+ @classmethod
53
+ def hashTSDFParams(cls, isCoarse: bool) -> Params: ...
54
+
55
+ @classmethod
56
+ def coloredTSDFParams(cls, isCoarse: bool) -> Params: ...
57
+
58
+
59
+ class ColoredKinFu:
60
+ # Functions
61
+ @classmethod
62
+ def create(cls, _params: Params) -> ColoredKinFu: ...
63
+
64
+ @_typing.overload
65
+ def render(self, image: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
66
+ @_typing.overload
67
+ def render(self, image: cv2.UMat | None = ...) -> cv2.UMat: ...
68
+ @_typing.overload
69
+ def render(self, cameraPose: cv2.typing.Matx44f, image: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
70
+ @_typing.overload
71
+ def render(self, cameraPose: cv2.typing.Matx44f, image: cv2.UMat | None = ...) -> cv2.UMat: ...
72
+
73
+ @_typing.overload
74
+ def getCloud(self, points: cv2.typing.MatLike | None = ..., normals: cv2.typing.MatLike | None = ..., colors: cv2.typing.MatLike | None = ...) -> tuple[cv2.typing.MatLike, cv2.typing.MatLike, cv2.typing.MatLike]: ...
75
+ @_typing.overload
76
+ def getCloud(self, points: cv2.UMat | None = ..., normals: cv2.UMat | None = ..., colors: cv2.UMat | None = ...) -> tuple[cv2.UMat, cv2.UMat, cv2.UMat]: ...
77
+
78
+ @_typing.overload
79
+ def getPoints(self, points: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
80
+ @_typing.overload
81
+ def getPoints(self, points: cv2.UMat | None = ...) -> cv2.UMat: ...
82
+
83
+ @_typing.overload
84
+ def getNormals(self, points: cv2.typing.MatLike, normals: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
85
+ @_typing.overload
86
+ def getNormals(self, points: cv2.UMat, normals: cv2.UMat | None = ...) -> cv2.UMat: ...
87
+
88
+ def reset(self) -> None: ...
89
+
90
+ @_typing.overload
91
+ def update(self, depth: cv2.typing.MatLike, rgb: cv2.typing.MatLike) -> bool: ...
92
+ @_typing.overload
93
+ def update(self, depth: cv2.UMat, rgb: cv2.UMat) -> bool: ...
94
+
95
+
96
+
cv2/config-3.py ADDED
@@ -0,0 +1,24 @@
1
+ PYTHON_EXTENSIONS_PATHS = [
2
+ LOADER_DIR
3
+ ] + PYTHON_EXTENSIONS_PATHS
4
+
5
+ ci_and_not_headless = False
6
+
7
+ try:
8
+ from .version import ci_build, headless
9
+
10
+ ci_and_not_headless = ci_build and not headless
11
+ except:
12
+ pass
13
+
14
+ # the Qt plugin is included currently only in the pre-built wheels
15
+ if sys.platform.startswith("linux") and ci_and_not_headless:
16
+ os.environ["QT_QPA_PLATFORM_PLUGIN_PATH"] = os.path.join(
17
+ os.path.dirname(os.path.abspath(__file__)), "qt", "plugins"
18
+ )
19
+
20
+ # Qt will throw warning on Linux if fonts are not found
21
+ if sys.platform.startswith("linux") and ci_and_not_headless:
22
+ os.environ["QT_QPA_FONTDIR"] = os.path.join(
23
+ os.path.dirname(os.path.abspath(__file__)), "qt", "fonts"
24
+ )
cv2/config.py ADDED
@@ -0,0 +1,5 @@
1
+ import os
2
+
3
+ BINARIES_PATHS = [
4
+ os.path.join(os.path.join(LOADER_DIR, '../../'), 'lib')
5
+ ] + BINARIES_PATHS