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.
- cv2/.dylibs/libaom.3.13.1.dylib +0 -0
- cv2/.dylibs/libavif.16.3.0.dylib +0 -0
- cv2/.dylibs/libdav1d.7.dylib +0 -0
- cv2/.dylibs/libvmaf.3.dylib +0 -0
- cv2/Error/__init__.pyi +118 -0
- cv2/LICENSE-3RD-PARTY.txt +3513 -0
- cv2/LICENSE.txt +21 -0
- cv2/__init__.py +181 -0
- cv2/__init__.pyi +6858 -0
- cv2/aruco/__init__.pyi +410 -0
- cv2/barcode/__init__.pyi +40 -0
- cv2/bgsegm/__init__.pyi +202 -0
- cv2/bioinspired/__init__.pyi +121 -0
- cv2/ccm/__init__.pyi +167 -0
- cv2/colored_kinfu/__init__.pyi +96 -0
- cv2/config-3.py +24 -0
- cv2/config.py +5 -0
- cv2/cuda/__init__.pyi +553 -0
- cv2/cv2.abi3.so +0 -0
- cv2/data/__init__.py +3 -0
- cv2/data/haarcascade_eye.xml +12213 -0
- cv2/data/haarcascade_eye_tree_eyeglasses.xml +22619 -0
- cv2/data/haarcascade_frontalcatface.xml +14382 -0
- cv2/data/haarcascade_frontalcatface_extended.xml +13394 -0
- cv2/data/haarcascade_frontalface_alt.xml +24350 -0
- cv2/data/haarcascade_frontalface_alt2.xml +20719 -0
- cv2/data/haarcascade_frontalface_alt_tree.xml +96484 -0
- cv2/data/haarcascade_frontalface_default.xml +33314 -0
- cv2/data/haarcascade_fullbody.xml +17030 -0
- cv2/data/haarcascade_lefteye_2splits.xml +7390 -0
- cv2/data/haarcascade_license_plate_rus_16stages.xml +1404 -0
- cv2/data/haarcascade_lowerbody.xml +14056 -0
- cv2/data/haarcascade_profileface.xml +29690 -0
- cv2/data/haarcascade_righteye_2splits.xml +7407 -0
- cv2/data/haarcascade_russian_plate_number.xml +2656 -0
- cv2/data/haarcascade_smile.xml +6729 -0
- cv2/data/haarcascade_upperbody.xml +28134 -0
- cv2/datasets/__init__.pyi +80 -0
- cv2/detail/__init__.pyi +627 -0
- cv2/dnn/__init__.pyi +549 -0
- cv2/dnn_superres/__init__.pyi +37 -0
- cv2/dpm/__init__.pyi +10 -0
- cv2/dynafu/__init__.pyi +43 -0
- cv2/face/__init__.pyi +220 -0
- cv2/fisheye/__init__.pyi +88 -0
- cv2/flann/__init__.pyi +65 -0
- cv2/ft/__init__.pyi +98 -0
- cv2/gapi/__init__.py +323 -0
- cv2/gapi/__init__.pyi +349 -0
- cv2/gapi/core/__init__.pyi +7 -0
- cv2/gapi/core/cpu/__init__.pyi +9 -0
- cv2/gapi/core/fluid/__init__.pyi +9 -0
- cv2/gapi/core/ocl/__init__.pyi +9 -0
- cv2/gapi/ie/__init__.pyi +51 -0
- cv2/gapi/ie/detail/__init__.pyi +12 -0
- cv2/gapi/imgproc/__init__.pyi +5 -0
- cv2/gapi/imgproc/fluid/__init__.pyi +9 -0
- cv2/gapi/oak/__init__.pyi +37 -0
- cv2/gapi/onnx/__init__.pyi +55 -0
- cv2/gapi/onnx/ep/__init__.pyi +63 -0
- cv2/gapi/ot/__init__.pyi +32 -0
- cv2/gapi/ot/cpu/__init__.pyi +9 -0
- cv2/gapi/ov/__init__.pyi +74 -0
- cv2/gapi/own/__init__.pyi +5 -0
- cv2/gapi/own/detail/__init__.pyi +10 -0
- cv2/gapi/render/__init__.pyi +5 -0
- cv2/gapi/render/ocv/__init__.pyi +9 -0
- cv2/gapi/streaming/__init__.pyi +42 -0
- cv2/gapi/video/__init__.pyi +10 -0
- cv2/gapi/wip/__init__.pyi +43 -0
- cv2/gapi/wip/draw/__init__.pyi +119 -0
- cv2/gapi/wip/gst/__init__.pyi +17 -0
- cv2/gapi/wip/onevpl/__init__.pyi +16 -0
- cv2/hfs/__init__.pyi +53 -0
- cv2/img_hash/__init__.pyi +116 -0
- cv2/instr/__init__.pyi +24 -0
- cv2/intensity_transform/__init__.pyi +27 -0
- cv2/ipp/__init__.pyi +14 -0
- cv2/kinfu/__init__.pyi +133 -0
- cv2/kinfu/detail/__init__.pyi +7 -0
- cv2/large_kinfu/__init__.pyi +73 -0
- cv2/legacy/__init__.pyi +93 -0
- cv2/line_descriptor/__init__.pyi +112 -0
- cv2/linemod/__init__.pyi +151 -0
- cv2/load_config_py2.py +6 -0
- cv2/load_config_py3.py +9 -0
- cv2/mat_wrapper/__init__.py +40 -0
- cv2/mcc/__init__.pyi +109 -0
- cv2/misc/__init__.py +1 -0
- cv2/misc/version.py +5 -0
- cv2/ml/__init__.pyi +696 -0
- cv2/motempl/__init__.pyi +29 -0
- cv2/multicalib/__init__.pyi +10 -0
- cv2/ocl/__init__.pyi +252 -0
- cv2/ogl/__init__.pyi +51 -0
- cv2/omnidir/__init__.pyi +68 -0
- cv2/optflow/__init__.pyi +286 -0
- cv2/parallel/__init__.pyi +6 -0
- cv2/phase_unwrapping/__init__.pyi +41 -0
- cv2/plot/__init__.pyi +64 -0
- cv2/ppf_match_3d/__init__.pyi +91 -0
- cv2/py.typed +0 -0
- cv2/quality/__init__.pyi +149 -0
- cv2/rapid/__init__.pyi +91 -0
- cv2/reg/__init__.pyi +210 -0
- cv2/rgbd/__init__.pyi +449 -0
- cv2/saliency/__init__.pyi +117 -0
- cv2/samples/__init__.pyi +12 -0
- cv2/segmentation/__init__.pyi +39 -0
- cv2/signal/__init__.pyi +14 -0
- cv2/stereo/__init__.pyi +88 -0
- cv2/structured_light/__init__.pyi +94 -0
- cv2/text/__init__.pyi +204 -0
- cv2/typing/__init__.py +180 -0
- cv2/utils/__init__.py +14 -0
- cv2/utils/__init__.pyi +110 -0
- cv2/utils/fs/__init__.pyi +6 -0
- cv2/utils/logging/__init__.pyi +22 -0
- cv2/utils/nested/__init__.pyi +31 -0
- cv2/version.py +5 -0
- cv2/videoio_registry/__init__.pyi +31 -0
- cv2/videostab/__init__.pyi +16 -0
- cv2/wechat_qrcode/__init__.pyi +23 -0
- cv2/xfeatures2d/__init__.pyi +537 -0
- cv2/ximgproc/__init__.pyi +746 -0
- cv2/ximgproc/segmentation/__init__.pyi +116 -0
- cv2/xphoto/__init__.pyi +142 -0
- opencv_contrib_python-4.13.0.90.dist-info/LICENSE-3RD-PARTY.txt +3513 -0
- opencv_contrib_python-4.13.0.90.dist-info/LICENSE.txt +21 -0
- opencv_contrib_python-4.13.0.90.dist-info/METADATA +300 -0
- opencv_contrib_python-4.13.0.90.dist-info/RECORD +133 -0
- opencv_contrib_python-4.13.0.90.dist-info/WHEEL +6 -0
- opencv_contrib_python-4.13.0.90.dist-info/top_level.txt +1 -0
cv2/motempl/__init__.pyi
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
__all__: list[str] = []
|
|
2
|
+
|
|
3
|
+
import cv2
|
|
4
|
+
import cv2.typing
|
|
5
|
+
import typing as _typing
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
# Functions
|
|
9
|
+
@_typing.overload
|
|
10
|
+
def calcGlobalOrientation(orientation: cv2.typing.MatLike, mask: cv2.typing.MatLike, mhi: cv2.typing.MatLike, timestamp: float, duration: float) -> float: ...
|
|
11
|
+
@_typing.overload
|
|
12
|
+
def calcGlobalOrientation(orientation: cv2.UMat, mask: cv2.UMat, mhi: cv2.UMat, timestamp: float, duration: float) -> float: ...
|
|
13
|
+
|
|
14
|
+
@_typing.overload
|
|
15
|
+
def calcMotionGradient(mhi: cv2.typing.MatLike, delta1: float, delta2: float, mask: cv2.typing.MatLike | None = ..., orientation: cv2.typing.MatLike | None = ..., apertureSize: int = ...) -> tuple[cv2.typing.MatLike, cv2.typing.MatLike]: ...
|
|
16
|
+
@_typing.overload
|
|
17
|
+
def calcMotionGradient(mhi: cv2.UMat, delta1: float, delta2: float, mask: cv2.UMat | None = ..., orientation: cv2.UMat | None = ..., apertureSize: int = ...) -> tuple[cv2.UMat, cv2.UMat]: ...
|
|
18
|
+
|
|
19
|
+
@_typing.overload
|
|
20
|
+
def segmentMotion(mhi: cv2.typing.MatLike, timestamp: float, segThresh: float, segmask: cv2.typing.MatLike | None = ...) -> tuple[cv2.typing.MatLike, _typing.Sequence[cv2.typing.Rect]]: ...
|
|
21
|
+
@_typing.overload
|
|
22
|
+
def segmentMotion(mhi: cv2.UMat, timestamp: float, segThresh: float, segmask: cv2.UMat | None = ...) -> tuple[cv2.UMat, _typing.Sequence[cv2.typing.Rect]]: ...
|
|
23
|
+
|
|
24
|
+
@_typing.overload
|
|
25
|
+
def updateMotionHistory(silhouette: cv2.typing.MatLike, mhi: cv2.typing.MatLike, timestamp: float, duration: float) -> cv2.typing.MatLike: ...
|
|
26
|
+
@_typing.overload
|
|
27
|
+
def updateMotionHistory(silhouette: cv2.UMat, mhi: cv2.UMat, timestamp: float, duration: float) -> cv2.UMat: ...
|
|
28
|
+
|
|
29
|
+
|
cv2/ocl/__init__.pyi
ADDED
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
__all__: list[str] = []
|
|
2
|
+
|
|
3
|
+
# Enumerations
|
|
4
|
+
OCL_VECTOR_OWN: int
|
|
5
|
+
OCL_VECTOR_MAX: int
|
|
6
|
+
OCL_VECTOR_DEFAULT: int
|
|
7
|
+
OclVectorStrategy = int
|
|
8
|
+
"""One of [OCL_VECTOR_OWN, OCL_VECTOR_MAX, OCL_VECTOR_DEFAULT]"""
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
Device_TYPE_DEFAULT: int
|
|
12
|
+
DEVICE_TYPE_DEFAULT: int
|
|
13
|
+
Device_TYPE_CPU: int
|
|
14
|
+
DEVICE_TYPE_CPU: int
|
|
15
|
+
Device_TYPE_GPU: int
|
|
16
|
+
DEVICE_TYPE_GPU: int
|
|
17
|
+
Device_TYPE_ACCELERATOR: int
|
|
18
|
+
DEVICE_TYPE_ACCELERATOR: int
|
|
19
|
+
Device_TYPE_DGPU: int
|
|
20
|
+
DEVICE_TYPE_DGPU: int
|
|
21
|
+
Device_TYPE_IGPU: int
|
|
22
|
+
DEVICE_TYPE_IGPU: int
|
|
23
|
+
Device_TYPE_ALL: int
|
|
24
|
+
DEVICE_TYPE_ALL: int
|
|
25
|
+
Device_FP_DENORM: int
|
|
26
|
+
DEVICE_FP_DENORM: int
|
|
27
|
+
Device_FP_INF_NAN: int
|
|
28
|
+
DEVICE_FP_INF_NAN: int
|
|
29
|
+
Device_FP_ROUND_TO_NEAREST: int
|
|
30
|
+
DEVICE_FP_ROUND_TO_NEAREST: int
|
|
31
|
+
Device_FP_ROUND_TO_ZERO: int
|
|
32
|
+
DEVICE_FP_ROUND_TO_ZERO: int
|
|
33
|
+
Device_FP_ROUND_TO_INF: int
|
|
34
|
+
DEVICE_FP_ROUND_TO_INF: int
|
|
35
|
+
Device_FP_FMA: int
|
|
36
|
+
DEVICE_FP_FMA: int
|
|
37
|
+
Device_FP_SOFT_FLOAT: int
|
|
38
|
+
DEVICE_FP_SOFT_FLOAT: int
|
|
39
|
+
Device_FP_CORRECTLY_ROUNDED_DIVIDE_SQRT: int
|
|
40
|
+
DEVICE_FP_CORRECTLY_ROUNDED_DIVIDE_SQRT: int
|
|
41
|
+
Device_EXEC_KERNEL: int
|
|
42
|
+
DEVICE_EXEC_KERNEL: int
|
|
43
|
+
Device_EXEC_NATIVE_KERNEL: int
|
|
44
|
+
DEVICE_EXEC_NATIVE_KERNEL: int
|
|
45
|
+
Device_NO_CACHE: int
|
|
46
|
+
DEVICE_NO_CACHE: int
|
|
47
|
+
Device_READ_ONLY_CACHE: int
|
|
48
|
+
DEVICE_READ_ONLY_CACHE: int
|
|
49
|
+
Device_READ_WRITE_CACHE: int
|
|
50
|
+
DEVICE_READ_WRITE_CACHE: int
|
|
51
|
+
Device_NO_LOCAL_MEM: int
|
|
52
|
+
DEVICE_NO_LOCAL_MEM: int
|
|
53
|
+
Device_LOCAL_IS_LOCAL: int
|
|
54
|
+
DEVICE_LOCAL_IS_LOCAL: int
|
|
55
|
+
Device_LOCAL_IS_GLOBAL: int
|
|
56
|
+
DEVICE_LOCAL_IS_GLOBAL: int
|
|
57
|
+
Device_UNKNOWN_VENDOR: int
|
|
58
|
+
DEVICE_UNKNOWN_VENDOR: int
|
|
59
|
+
Device_VENDOR_AMD: int
|
|
60
|
+
DEVICE_VENDOR_AMD: int
|
|
61
|
+
Device_VENDOR_INTEL: int
|
|
62
|
+
DEVICE_VENDOR_INTEL: int
|
|
63
|
+
Device_VENDOR_NVIDIA: int
|
|
64
|
+
DEVICE_VENDOR_NVIDIA: int
|
|
65
|
+
|
|
66
|
+
KernelArg_LOCAL: int
|
|
67
|
+
KERNEL_ARG_LOCAL: int
|
|
68
|
+
KernelArg_READ_ONLY: int
|
|
69
|
+
KERNEL_ARG_READ_ONLY: int
|
|
70
|
+
KernelArg_WRITE_ONLY: int
|
|
71
|
+
KERNEL_ARG_WRITE_ONLY: int
|
|
72
|
+
KernelArg_READ_WRITE: int
|
|
73
|
+
KERNEL_ARG_READ_WRITE: int
|
|
74
|
+
KernelArg_CONSTANT: int
|
|
75
|
+
KERNEL_ARG_CONSTANT: int
|
|
76
|
+
KernelArg_PTR_ONLY: int
|
|
77
|
+
KERNEL_ARG_PTR_ONLY: int
|
|
78
|
+
KernelArg_NO_SIZE: int
|
|
79
|
+
KERNEL_ARG_NO_SIZE: int
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
# Classes
|
|
83
|
+
class Device:
|
|
84
|
+
# Functions
|
|
85
|
+
def __init__(self) -> None: ...
|
|
86
|
+
|
|
87
|
+
def name(self) -> str: ...
|
|
88
|
+
|
|
89
|
+
def extensions(self) -> str: ...
|
|
90
|
+
|
|
91
|
+
def isExtensionSupported(self, extensionName: str) -> bool: ...
|
|
92
|
+
|
|
93
|
+
def version(self) -> str: ...
|
|
94
|
+
|
|
95
|
+
def vendorName(self) -> str: ...
|
|
96
|
+
|
|
97
|
+
def OpenCL_C_Version(self) -> str: ...
|
|
98
|
+
|
|
99
|
+
def OpenCLVersion(self) -> str: ...
|
|
100
|
+
|
|
101
|
+
def deviceVersionMajor(self) -> int: ...
|
|
102
|
+
|
|
103
|
+
def deviceVersionMinor(self) -> int: ...
|
|
104
|
+
|
|
105
|
+
def driverVersion(self) -> str: ...
|
|
106
|
+
|
|
107
|
+
def type(self) -> int: ...
|
|
108
|
+
|
|
109
|
+
def addressBits(self) -> int: ...
|
|
110
|
+
|
|
111
|
+
def available(self) -> bool: ...
|
|
112
|
+
|
|
113
|
+
def compilerAvailable(self) -> bool: ...
|
|
114
|
+
|
|
115
|
+
def linkerAvailable(self) -> bool: ...
|
|
116
|
+
|
|
117
|
+
def doubleFPConfig(self) -> int: ...
|
|
118
|
+
|
|
119
|
+
def singleFPConfig(self) -> int: ...
|
|
120
|
+
|
|
121
|
+
def halfFPConfig(self) -> int: ...
|
|
122
|
+
|
|
123
|
+
def hasFP64(self) -> bool: ...
|
|
124
|
+
|
|
125
|
+
def hasFP16(self) -> bool: ...
|
|
126
|
+
|
|
127
|
+
def endianLittle(self) -> bool: ...
|
|
128
|
+
|
|
129
|
+
def errorCorrectionSupport(self) -> bool: ...
|
|
130
|
+
|
|
131
|
+
def executionCapabilities(self) -> int: ...
|
|
132
|
+
|
|
133
|
+
def globalMemCacheSize(self) -> int: ...
|
|
134
|
+
|
|
135
|
+
def globalMemCacheType(self) -> int: ...
|
|
136
|
+
|
|
137
|
+
def globalMemCacheLineSize(self) -> int: ...
|
|
138
|
+
|
|
139
|
+
def globalMemSize(self) -> int: ...
|
|
140
|
+
|
|
141
|
+
def localMemSize(self) -> int: ...
|
|
142
|
+
|
|
143
|
+
def localMemType(self) -> int: ...
|
|
144
|
+
|
|
145
|
+
def hostUnifiedMemory(self) -> bool: ...
|
|
146
|
+
|
|
147
|
+
def imageSupport(self) -> bool: ...
|
|
148
|
+
|
|
149
|
+
def imageFromBufferSupport(self) -> bool: ...
|
|
150
|
+
|
|
151
|
+
def intelSubgroupsSupport(self) -> bool: ...
|
|
152
|
+
|
|
153
|
+
def image2DMaxWidth(self) -> int: ...
|
|
154
|
+
|
|
155
|
+
def image2DMaxHeight(self) -> int: ...
|
|
156
|
+
|
|
157
|
+
def image3DMaxWidth(self) -> int: ...
|
|
158
|
+
|
|
159
|
+
def image3DMaxHeight(self) -> int: ...
|
|
160
|
+
|
|
161
|
+
def image3DMaxDepth(self) -> int: ...
|
|
162
|
+
|
|
163
|
+
def imageMaxBufferSize(self) -> int: ...
|
|
164
|
+
|
|
165
|
+
def imageMaxArraySize(self) -> int: ...
|
|
166
|
+
|
|
167
|
+
def vendorID(self) -> int: ...
|
|
168
|
+
|
|
169
|
+
def isAMD(self) -> bool: ...
|
|
170
|
+
|
|
171
|
+
def isIntel(self) -> bool: ...
|
|
172
|
+
|
|
173
|
+
def isNVidia(self) -> bool: ...
|
|
174
|
+
|
|
175
|
+
def maxClockFrequency(self) -> int: ...
|
|
176
|
+
|
|
177
|
+
def maxComputeUnits(self) -> int: ...
|
|
178
|
+
|
|
179
|
+
def maxConstantArgs(self) -> int: ...
|
|
180
|
+
|
|
181
|
+
def maxConstantBufferSize(self) -> int: ...
|
|
182
|
+
|
|
183
|
+
def maxMemAllocSize(self) -> int: ...
|
|
184
|
+
|
|
185
|
+
def maxParameterSize(self) -> int: ...
|
|
186
|
+
|
|
187
|
+
def maxReadImageArgs(self) -> int: ...
|
|
188
|
+
|
|
189
|
+
def maxWriteImageArgs(self) -> int: ...
|
|
190
|
+
|
|
191
|
+
def maxSamplers(self) -> int: ...
|
|
192
|
+
|
|
193
|
+
def maxWorkGroupSize(self) -> int: ...
|
|
194
|
+
|
|
195
|
+
def maxWorkItemDims(self) -> int: ...
|
|
196
|
+
|
|
197
|
+
def memBaseAddrAlign(self) -> int: ...
|
|
198
|
+
|
|
199
|
+
def nativeVectorWidthChar(self) -> int: ...
|
|
200
|
+
|
|
201
|
+
def nativeVectorWidthShort(self) -> int: ...
|
|
202
|
+
|
|
203
|
+
def nativeVectorWidthInt(self) -> int: ...
|
|
204
|
+
|
|
205
|
+
def nativeVectorWidthLong(self) -> int: ...
|
|
206
|
+
|
|
207
|
+
def nativeVectorWidthFloat(self) -> int: ...
|
|
208
|
+
|
|
209
|
+
def nativeVectorWidthDouble(self) -> int: ...
|
|
210
|
+
|
|
211
|
+
def nativeVectorWidthHalf(self) -> int: ...
|
|
212
|
+
|
|
213
|
+
def preferredVectorWidthChar(self) -> int: ...
|
|
214
|
+
|
|
215
|
+
def preferredVectorWidthShort(self) -> int: ...
|
|
216
|
+
|
|
217
|
+
def preferredVectorWidthInt(self) -> int: ...
|
|
218
|
+
|
|
219
|
+
def preferredVectorWidthLong(self) -> int: ...
|
|
220
|
+
|
|
221
|
+
def preferredVectorWidthFloat(self) -> int: ...
|
|
222
|
+
|
|
223
|
+
def preferredVectorWidthDouble(self) -> int: ...
|
|
224
|
+
|
|
225
|
+
def preferredVectorWidthHalf(self) -> int: ...
|
|
226
|
+
|
|
227
|
+
def printfBufferSize(self) -> int: ...
|
|
228
|
+
|
|
229
|
+
def profilingTimerResolution(self) -> int: ...
|
|
230
|
+
|
|
231
|
+
@classmethod
|
|
232
|
+
def getDefault(cls) -> Device: ...
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
class OpenCLExecutionContext:
|
|
236
|
+
...
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
# Functions
|
|
240
|
+
def finish() -> None: ...
|
|
241
|
+
|
|
242
|
+
def haveAmdBlas() -> bool: ...
|
|
243
|
+
|
|
244
|
+
def haveAmdFft() -> bool: ...
|
|
245
|
+
|
|
246
|
+
def haveOpenCL() -> bool: ...
|
|
247
|
+
|
|
248
|
+
def setUseOpenCL(flag: bool) -> None: ...
|
|
249
|
+
|
|
250
|
+
def useOpenCL() -> bool: ...
|
|
251
|
+
|
|
252
|
+
|
cv2/ogl/__init__.pyi
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
__all__: list[str] = []
|
|
2
|
+
|
|
3
|
+
# Enumerations
|
|
4
|
+
POINTS: int
|
|
5
|
+
LINES: int
|
|
6
|
+
LINE_LOOP: int
|
|
7
|
+
LINE_STRIP: int
|
|
8
|
+
TRIANGLES: int
|
|
9
|
+
TRIANGLE_STRIP: int
|
|
10
|
+
TRIANGLE_FAN: int
|
|
11
|
+
QUADS: int
|
|
12
|
+
QUAD_STRIP: int
|
|
13
|
+
POLYGON: int
|
|
14
|
+
RenderModes = int
|
|
15
|
+
"""One of [POINTS, LINES, LINE_LOOP, LINE_STRIP, TRIANGLES, TRIANGLE_STRIP, TRIANGLE_FAN, QUADS, QUAD_STRIP, POLYGON]"""
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
Buffer_ARRAY_BUFFER: int
|
|
19
|
+
BUFFER_ARRAY_BUFFER: int
|
|
20
|
+
Buffer_ELEMENT_ARRAY_BUFFER: int
|
|
21
|
+
BUFFER_ELEMENT_ARRAY_BUFFER: int
|
|
22
|
+
Buffer_PIXEL_PACK_BUFFER: int
|
|
23
|
+
BUFFER_PIXEL_PACK_BUFFER: int
|
|
24
|
+
Buffer_PIXEL_UNPACK_BUFFER: int
|
|
25
|
+
BUFFER_PIXEL_UNPACK_BUFFER: int
|
|
26
|
+
Buffer_Target = int
|
|
27
|
+
"""One of [Buffer_ARRAY_BUFFER, BUFFER_ARRAY_BUFFER, Buffer_ELEMENT_ARRAY_BUFFER, BUFFER_ELEMENT_ARRAY_BUFFER, Buffer_PIXEL_PACK_BUFFER, BUFFER_PIXEL_PACK_BUFFER, Buffer_PIXEL_UNPACK_BUFFER, BUFFER_PIXEL_UNPACK_BUFFER]"""
|
|
28
|
+
|
|
29
|
+
Buffer_READ_ONLY: int
|
|
30
|
+
BUFFER_READ_ONLY: int
|
|
31
|
+
Buffer_WRITE_ONLY: int
|
|
32
|
+
BUFFER_WRITE_ONLY: int
|
|
33
|
+
Buffer_READ_WRITE: int
|
|
34
|
+
BUFFER_READ_WRITE: int
|
|
35
|
+
Buffer_Access = int
|
|
36
|
+
"""One of [Buffer_READ_ONLY, BUFFER_READ_ONLY, Buffer_WRITE_ONLY, BUFFER_WRITE_ONLY, Buffer_READ_WRITE, BUFFER_READ_WRITE]"""
|
|
37
|
+
|
|
38
|
+
Texture2D_NONE: int
|
|
39
|
+
TEXTURE2D_NONE: int
|
|
40
|
+
Texture2D_DEPTH_COMPONENT: int
|
|
41
|
+
TEXTURE2D_DEPTH_COMPONENT: int
|
|
42
|
+
Texture2D_RGB: int
|
|
43
|
+
TEXTURE2D_RGB: int
|
|
44
|
+
Texture2D_RGBA: int
|
|
45
|
+
TEXTURE2D_RGBA: int
|
|
46
|
+
Texture2D_Format = int
|
|
47
|
+
"""One of [Texture2D_NONE, TEXTURE2D_NONE, Texture2D_DEPTH_COMPONENT, TEXTURE2D_DEPTH_COMPONENT, Texture2D_RGB, TEXTURE2D_RGB, Texture2D_RGBA, TEXTURE2D_RGBA]"""
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
# Classes
|
|
51
|
+
|
cv2/omnidir/__init__.pyi
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
__all__: list[str] = []
|
|
2
|
+
|
|
3
|
+
import cv2
|
|
4
|
+
import cv2.typing
|
|
5
|
+
import typing as _typing
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
# Enumerations
|
|
9
|
+
CALIB_USE_GUESS: int
|
|
10
|
+
CALIB_FIX_SKEW: int
|
|
11
|
+
CALIB_FIX_K1: int
|
|
12
|
+
CALIB_FIX_K2: int
|
|
13
|
+
CALIB_FIX_P1: int
|
|
14
|
+
CALIB_FIX_P2: int
|
|
15
|
+
CALIB_FIX_XI: int
|
|
16
|
+
CALIB_FIX_GAMMA: int
|
|
17
|
+
CALIB_FIX_CENTER: int
|
|
18
|
+
RECTIFY_PERSPECTIVE: int
|
|
19
|
+
RECTIFY_CYLINDRICAL: int
|
|
20
|
+
RECTIFY_LONGLATI: int
|
|
21
|
+
RECTIFY_STEREOGRAPHIC: int
|
|
22
|
+
XYZRGB: int
|
|
23
|
+
XYZ: int
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
# Functions
|
|
28
|
+
@_typing.overload
|
|
29
|
+
def calibrate(objectPoints: _typing.Sequence[cv2.typing.MatLike], imagePoints: _typing.Sequence[cv2.typing.MatLike], size: cv2.typing.Size, K: cv2.typing.MatLike, xi: cv2.typing.MatLike, D: cv2.typing.MatLike, flags: int, criteria: cv2.typing.TermCriteria, rvecs: _typing.Sequence[cv2.typing.MatLike] | None = ..., tvecs: _typing.Sequence[cv2.typing.MatLike] | None = ..., idx: cv2.typing.MatLike | None = ...) -> tuple[float, cv2.typing.MatLike, cv2.typing.MatLike, cv2.typing.MatLike, _typing.Sequence[cv2.typing.MatLike], _typing.Sequence[cv2.typing.MatLike], cv2.typing.MatLike]: ...
|
|
30
|
+
@_typing.overload
|
|
31
|
+
def calibrate(objectPoints: _typing.Sequence[cv2.UMat], imagePoints: _typing.Sequence[cv2.UMat], size: cv2.typing.Size, K: cv2.UMat, xi: cv2.UMat, D: cv2.UMat, flags: int, criteria: cv2.typing.TermCriteria, rvecs: _typing.Sequence[cv2.UMat] | None = ..., tvecs: _typing.Sequence[cv2.UMat] | None = ..., idx: cv2.UMat | None = ...) -> tuple[float, cv2.UMat, cv2.UMat, cv2.UMat, _typing.Sequence[cv2.UMat], _typing.Sequence[cv2.UMat], cv2.UMat]: ...
|
|
32
|
+
|
|
33
|
+
@_typing.overload
|
|
34
|
+
def initUndistortRectifyMap(K: cv2.typing.MatLike, D: cv2.typing.MatLike, xi: cv2.typing.MatLike, R: cv2.typing.MatLike, P: cv2.typing.MatLike, size: cv2.typing.Size, m1type: int, flags: int, map1: cv2.typing.MatLike | None = ..., map2: cv2.typing.MatLike | None = ...) -> tuple[cv2.typing.MatLike, cv2.typing.MatLike]: ...
|
|
35
|
+
@_typing.overload
|
|
36
|
+
def initUndistortRectifyMap(K: cv2.UMat, D: cv2.UMat, xi: cv2.UMat, R: cv2.UMat, P: cv2.UMat, size: cv2.typing.Size, m1type: int, flags: int, map1: cv2.UMat | None = ..., map2: cv2.UMat | None = ...) -> tuple[cv2.UMat, cv2.UMat]: ...
|
|
37
|
+
|
|
38
|
+
@_typing.overload
|
|
39
|
+
def projectPoints(objectPoints: cv2.typing.MatLike, rvec: cv2.typing.MatLike, tvec: cv2.typing.MatLike, K: cv2.typing.MatLike, xi: float, D: cv2.typing.MatLike, imagePoints: cv2.typing.MatLike | None = ..., jacobian: cv2.typing.MatLike | None = ...) -> tuple[cv2.typing.MatLike, cv2.typing.MatLike]: ...
|
|
40
|
+
@_typing.overload
|
|
41
|
+
def projectPoints(objectPoints: cv2.UMat, rvec: cv2.UMat, tvec: cv2.UMat, K: cv2.UMat, xi: float, D: cv2.UMat, imagePoints: cv2.UMat | None = ..., jacobian: cv2.UMat | None = ...) -> tuple[cv2.UMat, cv2.UMat]: ...
|
|
42
|
+
|
|
43
|
+
@_typing.overload
|
|
44
|
+
def stereoCalibrate(objectPoints: _typing.Sequence[cv2.typing.MatLike], imagePoints1: _typing.Sequence[cv2.typing.MatLike], imagePoints2: _typing.Sequence[cv2.typing.MatLike], imageSize1: cv2.typing.Size, imageSize2: cv2.typing.Size, K1: cv2.typing.MatLike, xi1: cv2.typing.MatLike, D1: cv2.typing.MatLike, K2: cv2.typing.MatLike, xi2: cv2.typing.MatLike, D2: cv2.typing.MatLike, flags: int, criteria: cv2.typing.TermCriteria, rvec: cv2.typing.MatLike | None = ..., tvec: cv2.typing.MatLike | None = ..., rvecsL: _typing.Sequence[cv2.typing.MatLike] | None = ..., tvecsL: _typing.Sequence[cv2.typing.MatLike] | None = ..., idx: cv2.typing.MatLike | None = ...) -> tuple[float, _typing.Sequence[cv2.typing.MatLike], _typing.Sequence[cv2.typing.MatLike], _typing.Sequence[cv2.typing.MatLike], cv2.typing.MatLike, cv2.typing.MatLike, cv2.typing.MatLike, cv2.typing.MatLike, cv2.typing.MatLike, cv2.typing.MatLike, cv2.typing.MatLike, cv2.typing.MatLike, _typing.Sequence[cv2.typing.MatLike], _typing.Sequence[cv2.typing.MatLike], cv2.typing.MatLike]: ...
|
|
45
|
+
@_typing.overload
|
|
46
|
+
def stereoCalibrate(objectPoints: _typing.Sequence[cv2.UMat], imagePoints1: _typing.Sequence[cv2.UMat], imagePoints2: _typing.Sequence[cv2.UMat], imageSize1: cv2.typing.Size, imageSize2: cv2.typing.Size, K1: cv2.UMat, xi1: cv2.UMat, D1: cv2.UMat, K2: cv2.UMat, xi2: cv2.UMat, D2: cv2.UMat, flags: int, criteria: cv2.typing.TermCriteria, rvec: cv2.UMat | None = ..., tvec: cv2.UMat | None = ..., rvecsL: _typing.Sequence[cv2.UMat] | None = ..., tvecsL: _typing.Sequence[cv2.UMat] | None = ..., idx: cv2.UMat | None = ...) -> tuple[float, _typing.Sequence[cv2.UMat], _typing.Sequence[cv2.UMat], _typing.Sequence[cv2.UMat], cv2.UMat, cv2.UMat, cv2.UMat, cv2.UMat, cv2.UMat, cv2.UMat, cv2.UMat, cv2.UMat, _typing.Sequence[cv2.UMat], _typing.Sequence[cv2.UMat], cv2.UMat]: ...
|
|
47
|
+
|
|
48
|
+
@_typing.overload
|
|
49
|
+
def stereoReconstruct(image1: cv2.typing.MatLike, image2: cv2.typing.MatLike, K1: cv2.typing.MatLike, D1: cv2.typing.MatLike, xi1: cv2.typing.MatLike, K2: cv2.typing.MatLike, D2: cv2.typing.MatLike, xi2: cv2.typing.MatLike, R: cv2.typing.MatLike, T: cv2.typing.MatLike, flag: int, numDisparities: int, SADWindowSize: int, disparity: cv2.typing.MatLike | None = ..., image1Rec: cv2.typing.MatLike | None = ..., image2Rec: cv2.typing.MatLike | None = ..., newSize: cv2.typing.Size = ..., Knew: cv2.typing.MatLike | None = ..., pointCloud: cv2.typing.MatLike | None = ..., pointType: int = ...) -> tuple[cv2.typing.MatLike, cv2.typing.MatLike, cv2.typing.MatLike, cv2.typing.MatLike]: ...
|
|
50
|
+
@_typing.overload
|
|
51
|
+
def stereoReconstruct(image1: cv2.UMat, image2: cv2.UMat, K1: cv2.UMat, D1: cv2.UMat, xi1: cv2.UMat, K2: cv2.UMat, D2: cv2.UMat, xi2: cv2.UMat, R: cv2.UMat, T: cv2.UMat, flag: int, numDisparities: int, SADWindowSize: int, disparity: cv2.UMat | None = ..., image1Rec: cv2.UMat | None = ..., image2Rec: cv2.UMat | None = ..., newSize: cv2.typing.Size = ..., Knew: cv2.UMat | None = ..., pointCloud: cv2.UMat | None = ..., pointType: int = ...) -> tuple[cv2.UMat, cv2.UMat, cv2.UMat, cv2.UMat]: ...
|
|
52
|
+
|
|
53
|
+
@_typing.overload
|
|
54
|
+
def stereoRectify(R: cv2.typing.MatLike, T: cv2.typing.MatLike, R1: cv2.typing.MatLike | None = ..., R2: cv2.typing.MatLike | None = ...) -> tuple[cv2.typing.MatLike, cv2.typing.MatLike]: ...
|
|
55
|
+
@_typing.overload
|
|
56
|
+
def stereoRectify(R: cv2.UMat, T: cv2.UMat, R1: cv2.UMat | None = ..., R2: cv2.UMat | None = ...) -> tuple[cv2.UMat, cv2.UMat]: ...
|
|
57
|
+
|
|
58
|
+
@_typing.overload
|
|
59
|
+
def undistortImage(distorted: cv2.typing.MatLike, K: cv2.typing.MatLike, D: cv2.typing.MatLike, xi: cv2.typing.MatLike, flags: int, undistorted: cv2.typing.MatLike | None = ..., Knew: cv2.typing.MatLike | None = ..., new_size: cv2.typing.Size = ..., R: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
|
|
60
|
+
@_typing.overload
|
|
61
|
+
def undistortImage(distorted: cv2.UMat, K: cv2.UMat, D: cv2.UMat, xi: cv2.UMat, flags: int, undistorted: cv2.UMat | None = ..., Knew: cv2.UMat | None = ..., new_size: cv2.typing.Size = ..., R: cv2.UMat | None = ...) -> cv2.UMat: ...
|
|
62
|
+
|
|
63
|
+
@_typing.overload
|
|
64
|
+
def undistortPoints(distorted: cv2.typing.MatLike, K: cv2.typing.MatLike, D: cv2.typing.MatLike, xi: cv2.typing.MatLike, R: cv2.typing.MatLike, undistorted: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
|
|
65
|
+
@_typing.overload
|
|
66
|
+
def undistortPoints(distorted: cv2.UMat, K: cv2.UMat, D: cv2.UMat, xi: cv2.UMat, R: cv2.UMat, undistorted: cv2.UMat | None = ...) -> cv2.UMat: ...
|
|
67
|
+
|
|
68
|
+
|