opencv-contrib-python 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-4.13.0.90.dist-info/LICENSE-3RD-PARTY.txt +3513 -0
  129. opencv_contrib_python-4.13.0.90.dist-info/LICENSE.txt +21 -0
  130. opencv_contrib_python-4.13.0.90.dist-info/METADATA +300 -0
  131. opencv_contrib_python-4.13.0.90.dist-info/RECORD +133 -0
  132. opencv_contrib_python-4.13.0.90.dist-info/WHEEL +6 -0
  133. opencv_contrib_python-4.13.0.90.dist-info/top_level.txt +1 -0
@@ -0,0 +1,286 @@
1
+ __all__: list[str] = []
2
+
3
+ import cv2
4
+ import cv2.typing
5
+ import typing as _typing
6
+
7
+
8
+ # Enumerations
9
+ SR_FIXED: int
10
+ SR_CROSS: int
11
+ SupportRegionType = int
12
+ """One of [SR_FIXED, SR_CROSS]"""
13
+
14
+ ST_STANDART: int
15
+ ST_BILINEAR: int
16
+ SolverType = int
17
+ """One of [ST_STANDART, ST_BILINEAR]"""
18
+
19
+ INTERP_GEO: int
20
+ INTERP_EPIC: int
21
+ INTERP_RIC: int
22
+ InterpolationType = int
23
+ """One of [INTERP_GEO, INTERP_EPIC, INTERP_RIC]"""
24
+
25
+ GPC_DESCRIPTOR_DCT: int
26
+ GPC_DESCRIPTOR_WHT: int
27
+ GPCDescType = int
28
+ """One of [GPC_DESCRIPTOR_DCT, GPC_DESCRIPTOR_WHT]"""
29
+
30
+
31
+
32
+ # Classes
33
+ class DualTVL1OpticalFlow(cv2.DenseOpticalFlow):
34
+ # Functions
35
+ def getTau(self) -> float: ...
36
+
37
+ def setTau(self, val: float) -> None: ...
38
+
39
+ def getLambda(self) -> float: ...
40
+
41
+ def setLambda(self, val: float) -> None: ...
42
+
43
+ def getTheta(self) -> float: ...
44
+
45
+ def setTheta(self, val: float) -> None: ...
46
+
47
+ def getGamma(self) -> float: ...
48
+
49
+ def setGamma(self, val: float) -> None: ...
50
+
51
+ def getScalesNumber(self) -> int: ...
52
+
53
+ def setScalesNumber(self, val: int) -> None: ...
54
+
55
+ def getWarpingsNumber(self) -> int: ...
56
+
57
+ def setWarpingsNumber(self, val: int) -> None: ...
58
+
59
+ def getEpsilon(self) -> float: ...
60
+
61
+ def setEpsilon(self, val: float) -> None: ...
62
+
63
+ def getInnerIterations(self) -> int: ...
64
+
65
+ def setInnerIterations(self, val: int) -> None: ...
66
+
67
+ def getOuterIterations(self) -> int: ...
68
+
69
+ def setOuterIterations(self, val: int) -> None: ...
70
+
71
+ def getUseInitialFlow(self) -> bool: ...
72
+
73
+ def setUseInitialFlow(self, val: bool) -> None: ...
74
+
75
+ def getScaleStep(self) -> float: ...
76
+
77
+ def setScaleStep(self, val: float) -> None: ...
78
+
79
+ def getMedianFiltering(self) -> int: ...
80
+
81
+ def setMedianFiltering(self, val: int) -> None: ...
82
+
83
+ @classmethod
84
+ def create(cls, tau: float = ..., lambda_: float = ..., theta: float = ..., nscales: int = ..., warps: int = ..., epsilon: float = ..., innnerIterations: int = ..., outerIterations: int = ..., scaleStep: float = ..., gamma: float = ..., medianFiltering: int = ..., useInitialFlow: bool = ...) -> DualTVL1OpticalFlow: ...
85
+
86
+
87
+ class PCAPrior:
88
+ ...
89
+
90
+ class OpticalFlowPCAFlow(cv2.DenseOpticalFlow):
91
+ ...
92
+
93
+ class RLOFOpticalFlowParameter:
94
+ # Functions
95
+ def setUseMEstimator(self, val: bool) -> None: ...
96
+
97
+ def setSolverType(self, val: SolverType) -> None: ...
98
+
99
+ def getSolverType(self) -> SolverType: ...
100
+
101
+ def setSupportRegionType(self, val: SupportRegionType) -> None: ...
102
+
103
+ def getSupportRegionType(self) -> SupportRegionType: ...
104
+
105
+ def setNormSigma0(self, val: float) -> None: ...
106
+
107
+ def getNormSigma0(self) -> float: ...
108
+
109
+ def setNormSigma1(self, val: float) -> None: ...
110
+
111
+ def getNormSigma1(self) -> float: ...
112
+
113
+ def setSmallWinSize(self, val: int) -> None: ...
114
+
115
+ def getSmallWinSize(self) -> int: ...
116
+
117
+ def setLargeWinSize(self, val: int) -> None: ...
118
+
119
+ def getLargeWinSize(self) -> int: ...
120
+
121
+ def setCrossSegmentationThreshold(self, val: int) -> None: ...
122
+
123
+ def getCrossSegmentationThreshold(self) -> int: ...
124
+
125
+ def setMaxLevel(self, val: int) -> None: ...
126
+
127
+ def getMaxLevel(self) -> int: ...
128
+
129
+ def setUseInitialFlow(self, val: bool) -> None: ...
130
+
131
+ def getUseInitialFlow(self) -> bool: ...
132
+
133
+ def setUseIlluminationModel(self, val: bool) -> None: ...
134
+
135
+ def getUseIlluminationModel(self) -> bool: ...
136
+
137
+ def setUseGlobalMotionPrior(self, val: bool) -> None: ...
138
+
139
+ def getUseGlobalMotionPrior(self) -> bool: ...
140
+
141
+ def setMaxIteration(self, val: int) -> None: ...
142
+
143
+ def getMaxIteration(self) -> int: ...
144
+
145
+ def setMinEigenValue(self, val: float) -> None: ...
146
+
147
+ def getMinEigenValue(self) -> float: ...
148
+
149
+ def setGlobalMotionRansacThreshold(self, val: float) -> None: ...
150
+
151
+ def getGlobalMotionRansacThreshold(self) -> float: ...
152
+
153
+ @classmethod
154
+ def create(cls) -> RLOFOpticalFlowParameter: ...
155
+
156
+
157
+ class DenseRLOFOpticalFlow(cv2.DenseOpticalFlow):
158
+ # Functions
159
+ def setRLOFOpticalFlowParameter(self, val: RLOFOpticalFlowParameter) -> None: ...
160
+
161
+ def getRLOFOpticalFlowParameter(self) -> RLOFOpticalFlowParameter: ...
162
+
163
+ def setForwardBackward(self, val: float) -> None: ...
164
+
165
+ def getForwardBackward(self) -> float: ...
166
+
167
+ def getGridStep(self) -> cv2.typing.Size: ...
168
+
169
+ def setGridStep(self, val: cv2.typing.Size) -> None: ...
170
+
171
+ def setInterpolation(self, val: InterpolationType) -> None: ...
172
+
173
+ def getInterpolation(self) -> InterpolationType: ...
174
+
175
+ def getEPICK(self) -> int: ...
176
+
177
+ def setEPICK(self, val: int) -> None: ...
178
+
179
+ def getEPICSigma(self) -> float: ...
180
+
181
+ def setEPICSigma(self, val: float) -> None: ...
182
+
183
+ def getEPICLambda(self) -> float: ...
184
+
185
+ def setEPICLambda(self, val: float) -> None: ...
186
+
187
+ def getFgsLambda(self) -> float: ...
188
+
189
+ def setFgsLambda(self, val: float) -> None: ...
190
+
191
+ def getFgsSigma(self) -> float: ...
192
+
193
+ def setFgsSigma(self, val: float) -> None: ...
194
+
195
+ def setUsePostProc(self, val: bool) -> None: ...
196
+
197
+ def getUsePostProc(self) -> bool: ...
198
+
199
+ def setUseVariationalRefinement(self, val: bool) -> None: ...
200
+
201
+ def getUseVariationalRefinement(self) -> bool: ...
202
+
203
+ def setRICSPSize(self, val: int) -> None: ...
204
+
205
+ def getRICSPSize(self) -> int: ...
206
+
207
+ def setRICSLICType(self, val: int) -> None: ...
208
+
209
+ def getRICSLICType(self) -> int: ...
210
+
211
+ @classmethod
212
+ def create(cls, rlofParam: RLOFOpticalFlowParameter = ..., forwardBackwardThreshold: float = ..., gridStep: cv2.typing.Size = ..., interp_type: InterpolationType = ..., epicK: int = ..., epicSigma: float = ..., epicLambda: float = ..., ricSPSize: int = ..., ricSLICType: int = ..., use_post_proc: bool = ..., fgsLambda: float = ..., fgsSigma: float = ..., use_variational_refinement: bool = ...) -> DenseRLOFOpticalFlow: ...
213
+
214
+
215
+ class SparseRLOFOpticalFlow(cv2.SparseOpticalFlow):
216
+ # Functions
217
+ def setRLOFOpticalFlowParameter(self, val: RLOFOpticalFlowParameter) -> None: ...
218
+
219
+ def getRLOFOpticalFlowParameter(self) -> RLOFOpticalFlowParameter: ...
220
+
221
+ def setForwardBackward(self, val: float) -> None: ...
222
+
223
+ def getForwardBackward(self) -> float: ...
224
+
225
+ @classmethod
226
+ def create(cls, rlofParam: RLOFOpticalFlowParameter = ..., forwardBackwardThreshold: float = ...) -> SparseRLOFOpticalFlow: ...
227
+
228
+
229
+ class GPCPatchDescriptor:
230
+ ...
231
+
232
+ class GPCPatchSample:
233
+ ...
234
+
235
+ class GPCTrainingSamples:
236
+ ...
237
+
238
+ class GPCTree(cv2.Algorithm):
239
+ ...
240
+
241
+ class GPCDetails:
242
+ ...
243
+
244
+
245
+ # Functions
246
+ @_typing.overload
247
+ def calcOpticalFlowDenseRLOF(I0: cv2.typing.MatLike, I1: cv2.typing.MatLike, flow: cv2.typing.MatLike, rlofParam: RLOFOpticalFlowParameter = ..., forwardBackwardThreshold: float = ..., gridStep: cv2.typing.Size = ..., interp_type: InterpolationType = ..., epicK: int = ..., epicSigma: float = ..., epicLambda: float = ..., ricSPSize: int = ..., ricSLICType: int = ..., use_post_proc: bool = ..., fgsLambda: float = ..., fgsSigma: float = ..., use_variational_refinement: bool = ...) -> cv2.typing.MatLike: ...
248
+ @_typing.overload
249
+ def calcOpticalFlowDenseRLOF(I0: cv2.UMat, I1: cv2.UMat, flow: cv2.UMat, rlofParam: RLOFOpticalFlowParameter = ..., forwardBackwardThreshold: float = ..., gridStep: cv2.typing.Size = ..., interp_type: InterpolationType = ..., epicK: int = ..., epicSigma: float = ..., epicLambda: float = ..., ricSPSize: int = ..., ricSLICType: int = ..., use_post_proc: bool = ..., fgsLambda: float = ..., fgsSigma: float = ..., use_variational_refinement: bool = ...) -> cv2.UMat: ...
250
+
251
+ @_typing.overload
252
+ def calcOpticalFlowSF(from_: cv2.typing.MatLike, to: cv2.typing.MatLike, layers: int, averaging_block_size: int, max_flow: int, flow: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
253
+ @_typing.overload
254
+ def calcOpticalFlowSF(from_: cv2.UMat, to: cv2.UMat, layers: int, averaging_block_size: int, max_flow: int, flow: cv2.UMat | None = ...) -> cv2.UMat: ...
255
+ @_typing.overload
256
+ def calcOpticalFlowSF(from_: cv2.typing.MatLike, to: cv2.typing.MatLike, layers: int, averaging_block_size: int, max_flow: int, sigma_dist: float, sigma_color: float, postprocess_window: int, sigma_dist_fix: float, sigma_color_fix: float, occ_thr: float, upscale_averaging_radius: int, upscale_sigma_dist: float, upscale_sigma_color: float, speed_up_thr: float, flow: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
257
+ @_typing.overload
258
+ def calcOpticalFlowSF(from_: cv2.UMat, to: cv2.UMat, layers: int, averaging_block_size: int, max_flow: int, sigma_dist: float, sigma_color: float, postprocess_window: int, sigma_dist_fix: float, sigma_color_fix: float, occ_thr: float, upscale_averaging_radius: int, upscale_sigma_dist: float, upscale_sigma_color: float, speed_up_thr: float, flow: cv2.UMat | None = ...) -> cv2.UMat: ...
259
+
260
+ @_typing.overload
261
+ def calcOpticalFlowSparseRLOF(prevImg: cv2.typing.MatLike, nextImg: cv2.typing.MatLike, prevPts: cv2.typing.MatLike, nextPts: cv2.typing.MatLike, status: cv2.typing.MatLike | None = ..., err: cv2.typing.MatLike | None = ..., rlofParam: RLOFOpticalFlowParameter = ..., forwardBackwardThreshold: float = ...) -> tuple[cv2.typing.MatLike, cv2.typing.MatLike, cv2.typing.MatLike]: ...
262
+ @_typing.overload
263
+ def calcOpticalFlowSparseRLOF(prevImg: cv2.UMat, nextImg: cv2.UMat, prevPts: cv2.UMat, nextPts: cv2.UMat, status: cv2.UMat | None = ..., err: cv2.UMat | None = ..., rlofParam: RLOFOpticalFlowParameter = ..., forwardBackwardThreshold: float = ...) -> tuple[cv2.UMat, cv2.UMat, cv2.UMat]: ...
264
+
265
+ @_typing.overload
266
+ def calcOpticalFlowSparseToDense(from_: cv2.typing.MatLike, to: cv2.typing.MatLike, flow: cv2.typing.MatLike | None = ..., grid_step: int = ..., k: int = ..., sigma: float = ..., use_post_proc: bool = ..., fgs_lambda: float = ..., fgs_sigma: float = ...) -> cv2.typing.MatLike: ...
267
+ @_typing.overload
268
+ def calcOpticalFlowSparseToDense(from_: cv2.UMat, to: cv2.UMat, flow: cv2.UMat | None = ..., grid_step: int = ..., k: int = ..., sigma: float = ..., use_post_proc: bool = ..., fgs_lambda: float = ..., fgs_sigma: float = ...) -> cv2.UMat: ...
269
+
270
+ def createOptFlow_DeepFlow() -> cv2.DenseOpticalFlow: ...
271
+
272
+ def createOptFlow_DenseRLOF() -> cv2.DenseOpticalFlow: ...
273
+
274
+ def createOptFlow_DualTVL1() -> DualTVL1OpticalFlow: ...
275
+
276
+ def createOptFlow_Farneback() -> cv2.DenseOpticalFlow: ...
277
+
278
+ def createOptFlow_PCAFlow() -> cv2.DenseOpticalFlow: ...
279
+
280
+ def createOptFlow_SimpleFlow() -> cv2.DenseOpticalFlow: ...
281
+
282
+ def createOptFlow_SparseRLOF() -> cv2.SparseOpticalFlow: ...
283
+
284
+ def createOptFlow_SparseToDense() -> cv2.DenseOpticalFlow: ...
285
+
286
+
@@ -0,0 +1,6 @@
1
+ __all__: list[str] = []
2
+
3
+ # Functions
4
+ def setParallelForBackend(backendName: str, propagateNumThreads: bool = ...) -> bool: ...
5
+
6
+
@@ -0,0 +1,41 @@
1
+ __all__: list[str] = []
2
+
3
+ import cv2
4
+ import cv2.typing
5
+ import typing as _typing
6
+
7
+
8
+ # Classes
9
+ class HistogramPhaseUnwrapping(PhaseUnwrapping):
10
+ # Classes
11
+ class Params:
12
+ width: int
13
+ height: int
14
+ histThresh: float
15
+ nbrOfSmallBins: int
16
+ nbrOfLargeBins: int
17
+
18
+ # Functions
19
+ def __init__(self) -> None: ...
20
+
21
+
22
+
23
+ # Functions
24
+ @classmethod
25
+ def create(cls, parameters: HistogramPhaseUnwrapping.Params = ...) -> HistogramPhaseUnwrapping: ...
26
+
27
+ @_typing.overload
28
+ def getInverseReliabilityMap(self, reliabilityMap: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
29
+ @_typing.overload
30
+ def getInverseReliabilityMap(self, reliabilityMap: cv2.UMat | None = ...) -> cv2.UMat: ...
31
+
32
+
33
+ class PhaseUnwrapping(cv2.Algorithm):
34
+ # Functions
35
+ @_typing.overload
36
+ def unwrapPhaseMap(self, wrappedPhaseMap: cv2.typing.MatLike, unwrappedPhaseMap: cv2.typing.MatLike | None = ..., shadowMask: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
37
+ @_typing.overload
38
+ def unwrapPhaseMap(self, wrappedPhaseMap: cv2.UMat, unwrappedPhaseMap: cv2.UMat | None = ..., shadowMask: cv2.UMat | None = ...) -> cv2.UMat: ...
39
+
40
+
41
+
cv2/plot/__init__.pyi ADDED
@@ -0,0 +1,64 @@
1
+ __all__: list[str] = []
2
+
3
+ import cv2
4
+ import cv2.typing
5
+ import typing as _typing
6
+
7
+
8
+ # Classes
9
+ class Plot2d(cv2.Algorithm):
10
+ # Functions
11
+ def setMinX(self, _plotMinX: float) -> None: ...
12
+
13
+ def setMinY(self, _plotMinY: float) -> None: ...
14
+
15
+ def setMaxX(self, _plotMaxX: float) -> None: ...
16
+
17
+ def setMaxY(self, _plotMaxY: float) -> None: ...
18
+
19
+ def setPlotLineWidth(self, _plotLineWidth: int) -> None: ...
20
+
21
+ def setNeedPlotLine(self, _needPlotLine: bool) -> None: ...
22
+
23
+ def setPlotLineColor(self, _plotLineColor: cv2.typing.Scalar) -> None: ...
24
+
25
+ def setPlotBackgroundColor(self, _plotBackgroundColor: cv2.typing.Scalar) -> None: ...
26
+
27
+ def setPlotAxisColor(self, _plotAxisColor: cv2.typing.Scalar) -> None: ...
28
+
29
+ def setPlotGridColor(self, _plotGridColor: cv2.typing.Scalar) -> None: ...
30
+
31
+ def setPlotTextColor(self, _plotTextColor: cv2.typing.Scalar) -> None: ...
32
+
33
+ def setPlotSize(self, _plotSizeWidth: int, _plotSizeHeight: int) -> None: ...
34
+
35
+ def setShowGrid(self, needShowGrid: bool) -> None: ...
36
+
37
+ def setShowText(self, needShowText: bool) -> None: ...
38
+
39
+ def setGridLinesNumber(self, gridLinesNumber: int) -> None: ...
40
+
41
+ def setInvertOrientation(self, _invertOrientation: bool) -> None: ...
42
+
43
+ def setPointIdxToPrint(self, pointIdx: int) -> None: ...
44
+
45
+ @_typing.overload
46
+ def render(self, _plotResult: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
47
+ @_typing.overload
48
+ def render(self, _plotResult: cv2.UMat | None = ...) -> cv2.UMat: ...
49
+
50
+ @classmethod
51
+ @_typing.overload
52
+ def create(cls, data: cv2.typing.MatLike) -> Plot2d: ...
53
+ @classmethod
54
+ @_typing.overload
55
+ def create(cls, data: cv2.UMat) -> Plot2d: ...
56
+ @classmethod
57
+ @_typing.overload
58
+ def create(cls, dataX: cv2.typing.MatLike, dataY: cv2.typing.MatLike) -> Plot2d: ...
59
+ @classmethod
60
+ @_typing.overload
61
+ def create(cls, dataX: cv2.UMat, dataY: cv2.UMat) -> Plot2d: ...
62
+
63
+
64
+
@@ -0,0 +1,91 @@
1
+ __all__: list[str] = []
2
+
3
+ import cv2.typing
4
+ import os
5
+ import typing as _typing
6
+
7
+
8
+ # Classes
9
+ class ICP:
10
+ # Functions
11
+ @_typing.overload
12
+ def __init__(self) -> None: ...
13
+ @_typing.overload
14
+ def __init__(self, iterations: int, tolerence: float = ..., rejectionScale: float = ..., numLevels: int = ..., sampleType: int = ..., numMaxCorr: int = ...) -> None: ...
15
+
16
+ @_typing.overload
17
+ def registerModelToScene(self, srcPC: cv2.typing.MatLike, dstPC: cv2.typing.MatLike) -> tuple[int, float, cv2.typing.Matx44d]: ...
18
+ @_typing.overload
19
+ def registerModelToScene(self, srcPC: cv2.typing.MatLike, dstPC: cv2.typing.MatLike, poses: _typing.Sequence[Pose3D]) -> tuple[int, _typing.Sequence[Pose3D]]: ...
20
+
21
+
22
+ class Pose3D:
23
+ @property
24
+ def alpha(self) -> float: ...
25
+ @property
26
+ def residual(self) -> float: ...
27
+ @property
28
+ def modelIndex(self) -> int: ...
29
+ @property
30
+ def numVotes(self) -> int: ...
31
+ @property
32
+ def pose(self) -> cv2.typing.Matx44d: ...
33
+ @property
34
+ def angle(self) -> float: ...
35
+ @property
36
+ def t(self) -> cv2.typing.Vec3d: ...
37
+ @property
38
+ def q(self) -> cv2.typing.Vec4d: ...
39
+
40
+ # Functions
41
+ @_typing.overload
42
+ def __init__(self) -> None: ...
43
+ @_typing.overload
44
+ def __init__(self, Alpha: float, ModelIndex: int = ..., NumVotes: int = ...) -> None: ...
45
+
46
+ @_typing.overload
47
+ def updatePose(self, NewPose: cv2.typing.Matx44d) -> None: ...
48
+ @_typing.overload
49
+ def updatePose(self, NewR: cv2.typing.Matx33d, NewT: cv2.typing.Vec3d) -> None: ...
50
+
51
+ def updatePoseQuat(self, Q: cv2.typing.Vec4d, NewT: cv2.typing.Vec3d) -> None: ...
52
+
53
+ def appendPose(self, IncrementalPose: cv2.typing.Matx44d) -> None: ...
54
+
55
+ def printPose(self) -> None: ...
56
+
57
+
58
+ class PoseCluster3D:
59
+ ...
60
+
61
+ class PPF3DDetector:
62
+ # Functions
63
+ @_typing.overload
64
+ def __init__(self) -> None: ...
65
+ @_typing.overload
66
+ def __init__(self, relativeSamplingStep: float, relativeDistanceStep: float = ..., numAngles: float = ...) -> None: ...
67
+
68
+ def trainModel(self, Model: cv2.typing.MatLike) -> None: ...
69
+
70
+ def match(self, scene: cv2.typing.MatLike, relativeSceneSampleStep: float = ..., relativeSceneDistance: float = ...) -> _typing.Sequence[Pose3D]: ...
71
+
72
+
73
+
74
+ # Functions
75
+ def addNoisePC(pc: cv2.typing.MatLike, scale: float) -> cv2.typing.MatLike: ...
76
+
77
+ def computeNormalsPC3d(PC: cv2.typing.MatLike, NumNeighbors: int, FlipViewpoint: bool, viewpoint: cv2.typing.Vec3f, PCNormals: cv2.typing.MatLike | None = ...) -> tuple[int, cv2.typing.MatLike]: ...
78
+
79
+ def getRandomPose(Pose: cv2.typing.Matx44d) -> None: ...
80
+
81
+ def loadPLYSimple(fileName: str | os.PathLike[str], withNormals: int = ...) -> cv2.typing.MatLike: ...
82
+
83
+ def samplePCByQuantization(pc: cv2.typing.MatLike, xrange: cv2.typing.Vec2f, yrange: cv2.typing.Vec2f, zrange: cv2.typing.Vec2f, sample_step_relative: float, weightByCenter: int = ...) -> cv2.typing.MatLike: ...
84
+
85
+ def transformPCPose(pc: cv2.typing.MatLike, Pose: cv2.typing.Matx44d) -> cv2.typing.MatLike: ...
86
+
87
+ def writePLY(PC: cv2.typing.MatLike, fileName: str | os.PathLike[str]) -> None: ...
88
+
89
+ def writePLYVisibleNormals(PC: cv2.typing.MatLike, fileName: str | os.PathLike[str]) -> None: ...
90
+
91
+
cv2/py.typed ADDED
File without changes
@@ -0,0 +1,149 @@
1
+ __all__: list[str] = []
2
+
3
+ import cv2
4
+ import cv2.ml
5
+ import cv2.typing
6
+ import typing as _typing
7
+
8
+
9
+ # Classes
10
+ class QualityBase(cv2.Algorithm):
11
+ # Functions
12
+ @_typing.overload
13
+ def compute(self, img: cv2.typing.MatLike) -> tuple[float, float, float, float]: ...
14
+ @_typing.overload
15
+ def compute(self, img: cv2.UMat) -> tuple[float, float, float, float]: ...
16
+
17
+ @_typing.overload
18
+ def getQualityMap(self, dst: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
19
+ @_typing.overload
20
+ def getQualityMap(self, dst: cv2.UMat | None = ...) -> cv2.UMat: ...
21
+
22
+ def clear(self) -> None: ...
23
+
24
+ def empty(self) -> bool: ...
25
+
26
+
27
+ class QualityBRISQUE(QualityBase):
28
+ # Functions
29
+ @_typing.overload
30
+ def compute(self, img: cv2.typing.MatLike) -> tuple[float, float, float, float]: ...
31
+ @_typing.overload
32
+ def compute(self, img: cv2.UMat) -> tuple[float, float, float, float]: ...
33
+ @_typing.overload
34
+ def compute(self, img: cv2.typing.MatLike, model_file_path: str, range_file_path: str) -> tuple[float, float, float, float]: ...
35
+ @_typing.overload
36
+ def compute(self, img: cv2.UMat, model_file_path: str, range_file_path: str) -> tuple[float, float, float, float]: ...
37
+
38
+ @classmethod
39
+ @_typing.overload
40
+ def create(cls, model_file_path: str, range_file_path: str) -> QualityBRISQUE: ...
41
+ @classmethod
42
+ @_typing.overload
43
+ def create(cls, model: cv2.ml.SVM, range: cv2.typing.MatLike) -> QualityBRISQUE: ...
44
+
45
+ @staticmethod
46
+ @_typing.overload
47
+ def computeFeatures(img: cv2.typing.MatLike, features: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
48
+ @staticmethod
49
+ @_typing.overload
50
+ def computeFeatures(img: cv2.UMat, features: cv2.UMat | None = ...) -> cv2.UMat: ...
51
+
52
+
53
+ class QualityGMSD(QualityBase):
54
+ # Functions
55
+ @_typing.overload
56
+ def compute(self, cmp: cv2.typing.MatLike) -> tuple[float, float, float, float]: ...
57
+ @_typing.overload
58
+ def compute(self, cmp: cv2.UMat) -> tuple[float, float, float, float]: ...
59
+ @_typing.overload
60
+ def compute(self, ref: cv2.typing.MatLike, cmp: cv2.typing.MatLike, qualityMap: cv2.typing.MatLike | None = ...) -> tuple[cv2.typing.Scalar, cv2.typing.MatLike]: ...
61
+ @_typing.overload
62
+ def compute(self, ref: cv2.UMat, cmp: cv2.UMat, qualityMap: cv2.UMat | None = ...) -> tuple[cv2.typing.Scalar, cv2.UMat]: ...
63
+
64
+ def empty(self) -> bool: ...
65
+
66
+ def clear(self) -> None: ...
67
+
68
+ @classmethod
69
+ @_typing.overload
70
+ def create(cls, ref: cv2.typing.MatLike) -> QualityGMSD: ...
71
+ @classmethod
72
+ @_typing.overload
73
+ def create(cls, ref: cv2.UMat) -> QualityGMSD: ...
74
+
75
+
76
+ class QualityMSE(QualityBase):
77
+ # Functions
78
+ @_typing.overload
79
+ def compute(self, cmpImgs: _typing.Sequence[cv2.typing.MatLike]) -> tuple[float, float, float, float]: ...
80
+ @_typing.overload
81
+ def compute(self, cmpImgs: _typing.Sequence[cv2.UMat]) -> tuple[float, float, float, float]: ...
82
+ @_typing.overload
83
+ def compute(self, ref: cv2.typing.MatLike, cmp: cv2.typing.MatLike, qualityMap: cv2.typing.MatLike | None = ...) -> tuple[cv2.typing.Scalar, cv2.typing.MatLike]: ...
84
+ @_typing.overload
85
+ def compute(self, ref: cv2.UMat, cmp: cv2.UMat, qualityMap: cv2.UMat | None = ...) -> tuple[cv2.typing.Scalar, cv2.UMat]: ...
86
+
87
+ def empty(self) -> bool: ...
88
+
89
+ def clear(self) -> None: ...
90
+
91
+ @classmethod
92
+ @_typing.overload
93
+ def create(cls, ref: cv2.typing.MatLike) -> QualityMSE: ...
94
+ @classmethod
95
+ @_typing.overload
96
+ def create(cls, ref: cv2.UMat) -> QualityMSE: ...
97
+
98
+
99
+ class QualityPSNR(QualityBase):
100
+ # Functions
101
+ @classmethod
102
+ @_typing.overload
103
+ def create(cls, ref: cv2.typing.MatLike, maxPixelValue: float = ...) -> QualityPSNR: ...
104
+ @classmethod
105
+ @_typing.overload
106
+ def create(cls, ref: cv2.UMat, maxPixelValue: float = ...) -> QualityPSNR: ...
107
+
108
+ @_typing.overload
109
+ def compute(self, cmp: cv2.typing.MatLike) -> tuple[float, float, float, float]: ...
110
+ @_typing.overload
111
+ def compute(self, cmp: cv2.UMat) -> tuple[float, float, float, float]: ...
112
+ @_typing.overload
113
+ def compute(self, ref: cv2.typing.MatLike, cmp: cv2.typing.MatLike, qualityMap: cv2.typing.MatLike | None = ..., maxPixelValue: float = ...) -> tuple[cv2.typing.Scalar, cv2.typing.MatLike]: ...
114
+ @_typing.overload
115
+ def compute(self, ref: cv2.UMat, cmp: cv2.UMat, qualityMap: cv2.UMat | None = ..., maxPixelValue: float = ...) -> tuple[cv2.typing.Scalar, cv2.UMat]: ...
116
+
117
+ def empty(self) -> bool: ...
118
+
119
+ def clear(self) -> None: ...
120
+
121
+ def getMaxPixelValue(self) -> float: ...
122
+
123
+ def setMaxPixelValue(self, val: float) -> None: ...
124
+
125
+
126
+ class QualitySSIM(QualityBase):
127
+ # Functions
128
+ @_typing.overload
129
+ def compute(self, cmp: cv2.typing.MatLike) -> tuple[float, float, float, float]: ...
130
+ @_typing.overload
131
+ def compute(self, cmp: cv2.UMat) -> tuple[float, float, float, float]: ...
132
+ @_typing.overload
133
+ def compute(self, ref: cv2.typing.MatLike, cmp: cv2.typing.MatLike, qualityMap: cv2.typing.MatLike | None = ...) -> tuple[cv2.typing.Scalar, cv2.typing.MatLike]: ...
134
+ @_typing.overload
135
+ def compute(self, ref: cv2.UMat, cmp: cv2.UMat, qualityMap: cv2.UMat | None = ...) -> tuple[cv2.typing.Scalar, cv2.UMat]: ...
136
+
137
+ def empty(self) -> bool: ...
138
+
139
+ def clear(self) -> None: ...
140
+
141
+ @classmethod
142
+ @_typing.overload
143
+ def create(cls, ref: cv2.typing.MatLike) -> QualitySSIM: ...
144
+ @classmethod
145
+ @_typing.overload
146
+ def create(cls, ref: cv2.UMat) -> QualitySSIM: ...
147
+
148
+
149
+