opencv-python 5.1.0.95__cp37-abi3-win_arm64.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 (47) hide show
  1. cv2/Error/__init__.pyi +118 -0
  2. cv2/LICENSE-3RD-PARTY.txt +3645 -0
  3. cv2/LICENSE.txt +21 -0
  4. cv2/__init__.py +189 -0
  5. cv2/__init__.pyi +7168 -0
  6. cv2/aruco/__init__.pyi +331 -0
  7. cv2/barcode/__init__.pyi +40 -0
  8. cv2/ccm/__init__.pyi +165 -0
  9. cv2/config-3.py +24 -0
  10. cv2/config.py +5 -0
  11. cv2/cuda/__init__.pyi +513 -0
  12. cv2/cv2.pyd +4 -0
  13. cv2/data/__init__.py +3 -0
  14. cv2/detail/__init__.pyi +543 -0
  15. cv2/dnn/__init__.pyi +690 -0
  16. cv2/fisheye/__init__.pyi +88 -0
  17. cv2/flann/__init__.pyi +65 -0
  18. cv2/instr/__init__.pyi +24 -0
  19. cv2/ipp/__init__.pyi +14 -0
  20. cv2/load_config_py2.py +6 -0
  21. cv2/load_config_py3.py +9 -0
  22. cv2/mat_wrapper/__init__.py +40 -0
  23. cv2/mcc/__init__.pyi +118 -0
  24. cv2/misc/__init__.py +1 -0
  25. cv2/misc/version.py +5 -0
  26. cv2/ocl/__init__.pyi +252 -0
  27. cv2/ogl/__init__.pyi +119 -0
  28. cv2/parallel/__init__.pyi +6 -0
  29. cv2/py.typed +0 -0
  30. cv2/samples/__init__.pyi +12 -0
  31. cv2/segmentation/__init__.pyi +39 -0
  32. cv2/slam/__init__.pyi +80 -0
  33. cv2/typing/__init__.py +159 -0
  34. cv2/utils/__init__.py +14 -0
  35. cv2/utils/__init__.pyi +110 -0
  36. cv2/utils/fs/__init__.pyi +6 -0
  37. cv2/utils/logging/__init__.pyi +22 -0
  38. cv2/utils/nested/__init__.pyi +31 -0
  39. cv2/version.py +5 -0
  40. cv2/videoio_registry/__init__.pyi +34 -0
  41. cv2/viz3d/__init__.pyi +63 -0
  42. opencv_python-5.1.0.95.dist-info/LICENSE-3RD-PARTY.txt +3645 -0
  43. opencv_python-5.1.0.95.dist-info/LICENSE.txt +21 -0
  44. opencv_python-5.1.0.95.dist-info/METADATA +333 -0
  45. opencv_python-5.1.0.95.dist-info/RECORD +47 -0
  46. opencv_python-5.1.0.95.dist-info/WHEEL +5 -0
  47. opencv_python-5.1.0.95.dist-info/top_level.txt +1 -0
cv2/cuda/__init__.pyi ADDED
@@ -0,0 +1,513 @@
1
+ __all__: list[str] = []
2
+
3
+ import cv2
4
+ import cv2.typing
5
+ import typing as _typing
6
+
7
+
8
+ # Enumerations
9
+ FEATURE_SET_COMPUTE_10: int
10
+ FEATURE_SET_COMPUTE_11: int
11
+ FEATURE_SET_COMPUTE_12: int
12
+ FEATURE_SET_COMPUTE_13: int
13
+ FEATURE_SET_COMPUTE_20: int
14
+ FEATURE_SET_COMPUTE_21: int
15
+ FEATURE_SET_COMPUTE_30: int
16
+ FEATURE_SET_COMPUTE_32: int
17
+ FEATURE_SET_COMPUTE_35: int
18
+ FEATURE_SET_COMPUTE_50: int
19
+ GLOBAL_ATOMICS: int
20
+ SHARED_ATOMICS: int
21
+ NATIVE_DOUBLE: int
22
+ WARP_SHUFFLE_FUNCTIONS: int
23
+ DYNAMIC_PARALLELISM: int
24
+ FeatureSet = int
25
+ """One of [FEATURE_SET_COMPUTE_10, FEATURE_SET_COMPUTE_11, FEATURE_SET_COMPUTE_12, FEATURE_SET_COMPUTE_13, FEATURE_SET_COMPUTE_20, FEATURE_SET_COMPUTE_21, FEATURE_SET_COMPUTE_30, FEATURE_SET_COMPUTE_32, FEATURE_SET_COMPUTE_35, FEATURE_SET_COMPUTE_50, GLOBAL_ATOMICS, SHARED_ATOMICS, NATIVE_DOUBLE, WARP_SHUFFLE_FUNCTIONS, DYNAMIC_PARALLELISM]"""
26
+
27
+
28
+ HostMem_PAGE_LOCKED: int
29
+ HOST_MEM_PAGE_LOCKED: int
30
+ HostMem_SHARED: int
31
+ HOST_MEM_SHARED: int
32
+ HostMem_WRITE_COMBINED: int
33
+ HOST_MEM_WRITE_COMBINED: int
34
+ HostMem_AllocType = int
35
+ """One of [HostMem_PAGE_LOCKED, HOST_MEM_PAGE_LOCKED, HostMem_SHARED, HOST_MEM_SHARED, HostMem_WRITE_COMBINED, HOST_MEM_WRITE_COMBINED]"""
36
+
37
+ Event_DEFAULT: int
38
+ EVENT_DEFAULT: int
39
+ Event_BLOCKING_SYNC: int
40
+ EVENT_BLOCKING_SYNC: int
41
+ Event_DISABLE_TIMING: int
42
+ EVENT_DISABLE_TIMING: int
43
+ Event_INTERPROCESS: int
44
+ EVENT_INTERPROCESS: int
45
+ Event_CreateFlags = int
46
+ """One of [Event_DEFAULT, EVENT_DEFAULT, Event_BLOCKING_SYNC, EVENT_BLOCKING_SYNC, Event_DISABLE_TIMING, EVENT_DISABLE_TIMING, Event_INTERPROCESS, EVENT_INTERPROCESS]"""
47
+
48
+ DeviceInfo_ComputeModeDefault: int
49
+ DEVICE_INFO_COMPUTE_MODE_DEFAULT: int
50
+ DeviceInfo_ComputeModeExclusive: int
51
+ DEVICE_INFO_COMPUTE_MODE_EXCLUSIVE: int
52
+ DeviceInfo_ComputeModeProhibited: int
53
+ DEVICE_INFO_COMPUTE_MODE_PROHIBITED: int
54
+ DeviceInfo_ComputeModeExclusiveProcess: int
55
+ DEVICE_INFO_COMPUTE_MODE_EXCLUSIVE_PROCESS: int
56
+ DeviceInfo_ComputeMode = int
57
+ """One of [DeviceInfo_ComputeModeDefault, DEVICE_INFO_COMPUTE_MODE_DEFAULT, DeviceInfo_ComputeModeExclusive, DEVICE_INFO_COMPUTE_MODE_EXCLUSIVE, DeviceInfo_ComputeModeProhibited, DEVICE_INFO_COMPUTE_MODE_PROHIBITED, DeviceInfo_ComputeModeExclusiveProcess, DEVICE_INFO_COMPUTE_MODE_EXCLUSIVE_PROCESS]"""
58
+
59
+
60
+ # Classes
61
+ class GpuMat:
62
+ @property
63
+ def step(self) -> int: ...
64
+
65
+ # Classes
66
+ class Allocator:
67
+ ...
68
+
69
+
70
+ # Functions
71
+ @_typing.overload
72
+ def __init__(self, allocator: GpuMat.Allocator = ...) -> None: ...
73
+ @_typing.overload
74
+ def __init__(self, rows: int, cols: int, type: int, allocator: GpuMat.Allocator = ...) -> None: ...
75
+ @_typing.overload
76
+ def __init__(self, size: cv2.typing.Size, type: int, allocator: GpuMat.Allocator = ...) -> None: ...
77
+ @_typing.overload
78
+ def __init__(self, rows: int, cols: int, type: int, s: cv2.typing.Scalar, allocator: GpuMat.Allocator = ...) -> None: ...
79
+ @_typing.overload
80
+ def __init__(self, size: cv2.typing.Size, type: int, s: cv2.typing.Scalar, allocator: GpuMat.Allocator = ...) -> None: ...
81
+ @_typing.overload
82
+ def __init__(self, m: GpuMat) -> None: ...
83
+ @_typing.overload
84
+ def __init__(self, m: GpuMat, rowRange: cv2.typing.Range, colRange: cv2.typing.Range) -> None: ...
85
+ @_typing.overload
86
+ def __init__(self, m: GpuMat, roi: cv2.typing.Rect) -> None: ...
87
+ @_typing.overload
88
+ def __init__(self, arr: cv2.typing.MatLike, allocator: GpuMat.Allocator = ...) -> None: ...
89
+ @_typing.overload
90
+ def __init__(self, arr: GpuMat, allocator: GpuMat.Allocator = ...) -> None: ...
91
+ @_typing.overload
92
+ def __init__(self, arr: cv2.UMat, allocator: GpuMat.Allocator = ...) -> None: ...
93
+
94
+ @staticmethod
95
+ def defaultAllocator() -> GpuMat.Allocator: ...
96
+
97
+ @staticmethod
98
+ def setDefaultAllocator(allocator: GpuMat.Allocator) -> None: ...
99
+
100
+ @staticmethod
101
+ def getStdAllocator() -> GpuMat.Allocator: ...
102
+
103
+ @_typing.overload
104
+ def create(self, rows: int, cols: int, type: int) -> None: ...
105
+ @_typing.overload
106
+ def create(self, size: cv2.typing.Size, type: int) -> None: ...
107
+
108
+ def release(self) -> None: ...
109
+
110
+ def swap(self, mat: GpuMat) -> None: ...
111
+
112
+ @_typing.overload
113
+ def upload(self, arr: cv2.typing.MatLike) -> None: ...
114
+ @_typing.overload
115
+ def upload(self, arr: GpuMat) -> None: ...
116
+ @_typing.overload
117
+ def upload(self, arr: cv2.UMat) -> None: ...
118
+ @_typing.overload
119
+ def upload(self, arr: cv2.typing.MatLike, stream: Stream) -> None: ...
120
+ @_typing.overload
121
+ def upload(self, arr: GpuMat, stream: Stream) -> None: ...
122
+ @_typing.overload
123
+ def upload(self, arr: cv2.UMat, stream: Stream) -> None: ...
124
+
125
+ @_typing.overload
126
+ def download(self, dst: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
127
+ @_typing.overload
128
+ def download(self, dst: GpuMat | None = ...) -> GpuMat: ...
129
+ @_typing.overload
130
+ def download(self, dst: cv2.UMat | None = ...) -> cv2.UMat: ...
131
+ @_typing.overload
132
+ def download(self, stream: Stream, dst: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
133
+ @_typing.overload
134
+ def download(self, stream: Stream, dst: GpuMat | None = ...) -> GpuMat: ...
135
+ @_typing.overload
136
+ def download(self, stream: Stream, dst: cv2.UMat | None = ...) -> cv2.UMat: ...
137
+
138
+ def clone(self) -> GpuMat: ...
139
+
140
+ @_typing.overload
141
+ def copyTo(self, dst: GpuMat | None = ...) -> GpuMat: ...
142
+ @_typing.overload
143
+ def copyTo(self, stream: Stream, dst: GpuMat | None = ...) -> GpuMat: ...
144
+ @_typing.overload
145
+ def copyTo(self, mask: GpuMat, dst: GpuMat | None = ...) -> GpuMat: ...
146
+ @_typing.overload
147
+ def copyTo(self, mask: GpuMat, stream: Stream, dst: GpuMat | None = ...) -> GpuMat: ...
148
+
149
+ @_typing.overload
150
+ def setTo(self, s: cv2.typing.Scalar) -> GpuMat: ...
151
+ @_typing.overload
152
+ def setTo(self, s: cv2.typing.Scalar, stream: Stream) -> GpuMat: ...
153
+ @_typing.overload
154
+ def setTo(self, s: cv2.typing.Scalar, mask: cv2.typing.MatLike) -> GpuMat: ...
155
+ @_typing.overload
156
+ def setTo(self, s: cv2.typing.Scalar, mask: GpuMat) -> GpuMat: ...
157
+ @_typing.overload
158
+ def setTo(self, s: cv2.typing.Scalar, mask: cv2.UMat) -> GpuMat: ...
159
+ @_typing.overload
160
+ def setTo(self, s: cv2.typing.Scalar, mask: cv2.typing.MatLike, stream: Stream) -> GpuMat: ...
161
+ @_typing.overload
162
+ def setTo(self, s: cv2.typing.Scalar, mask: GpuMat, stream: Stream) -> GpuMat: ...
163
+ @_typing.overload
164
+ def setTo(self, s: cv2.typing.Scalar, mask: cv2.UMat, stream: Stream) -> GpuMat: ...
165
+
166
+ @_typing.overload
167
+ def convertTo(self, rtype: int, dst: GpuMat | None = ...) -> GpuMat: ...
168
+ @_typing.overload
169
+ def convertTo(self, rtype: int, stream: Stream, dst: GpuMat | None = ...) -> GpuMat: ...
170
+ @_typing.overload
171
+ def convertTo(self, rtype: int, dst: GpuMat | None = ..., alpha: float = ..., beta: float = ...) -> GpuMat: ...
172
+ @_typing.overload
173
+ def convertTo(self, rtype: int, alpha: float, beta: float, stream: Stream, dst: GpuMat | None = ...) -> GpuMat: ...
174
+
175
+ def assignTo(self, m: GpuMat, type: int = ...) -> None: ...
176
+
177
+ def row(self, y: int) -> GpuMat: ...
178
+
179
+ def col(self, x: int) -> GpuMat: ...
180
+
181
+ @_typing.overload
182
+ def rowRange(self, startrow: int, endrow: int) -> GpuMat: ...
183
+ @_typing.overload
184
+ def rowRange(self, r: cv2.typing.Range) -> GpuMat: ...
185
+
186
+ @_typing.overload
187
+ def colRange(self, startcol: int, endcol: int) -> GpuMat: ...
188
+ @_typing.overload
189
+ def colRange(self, r: cv2.typing.Range) -> GpuMat: ...
190
+
191
+ def reshape(self, cn: int, rows: int = ...) -> GpuMat: ...
192
+
193
+ def locateROI(self, wholeSize: cv2.typing.Size, ofs: cv2.typing.Point) -> None: ...
194
+
195
+ def adjustROI(self, dtop: int, dbottom: int, dleft: int, dright: int) -> GpuMat: ...
196
+
197
+ def isContinuous(self) -> bool: ...
198
+
199
+ def elemSize(self) -> int: ...
200
+
201
+ def elemSize1(self) -> int: ...
202
+
203
+ def type(self) -> int: ...
204
+
205
+ def depth(self) -> int: ...
206
+
207
+ def channels(self) -> int: ...
208
+
209
+ def step1(self) -> int: ...
210
+
211
+ def size(self) -> cv2.typing.Size: ...
212
+
213
+ def empty(self) -> bool: ...
214
+
215
+ def cudaPtr(self) -> cv2.typing.IntPointer: ...
216
+
217
+ def updateContinuityFlag(self) -> None: ...
218
+
219
+
220
+ class GpuData:
221
+ ...
222
+
223
+ class GpuMatND:
224
+ ...
225
+
226
+ class BufferPool:
227
+ # Functions
228
+ def __init__(self, stream: Stream) -> None: ...
229
+
230
+ @_typing.overload
231
+ def getBuffer(self, rows: int, cols: int, type: int) -> GpuMat: ...
232
+ @_typing.overload
233
+ def getBuffer(self, size: cv2.typing.Size, type: int) -> GpuMat: ...
234
+
235
+ def getAllocator(self) -> GpuMat.Allocator: ...
236
+
237
+
238
+ class HostMem:
239
+ @property
240
+ def step(self) -> int: ...
241
+
242
+ # Functions
243
+ @_typing.overload
244
+ def __init__(self, alloc_type: HostMem_AllocType = ...) -> None: ...
245
+ @_typing.overload
246
+ def __init__(self, rows: int, cols: int, type: int, alloc_type: HostMem_AllocType = ...) -> None: ...
247
+ @_typing.overload
248
+ def __init__(self, size: cv2.typing.Size, type: int, alloc_type: HostMem_AllocType = ...) -> None: ...
249
+ @_typing.overload
250
+ def __init__(self, arr: cv2.typing.MatLike, alloc_type: HostMem_AllocType = ...) -> None: ...
251
+ @_typing.overload
252
+ def __init__(self, arr: GpuMat, alloc_type: HostMem_AllocType = ...) -> None: ...
253
+ @_typing.overload
254
+ def __init__(self, arr: cv2.UMat, alloc_type: HostMem_AllocType = ...) -> None: ...
255
+
256
+ def swap(self, b: HostMem) -> None: ...
257
+
258
+ def clone(self) -> HostMem: ...
259
+
260
+ def create(self, rows: int, cols: int, type: int) -> None: ...
261
+
262
+ def reshape(self, cn: int, rows: int = ...) -> HostMem: ...
263
+
264
+ def createMatHeader(self) -> cv2.typing.MatLike: ...
265
+
266
+ def isContinuous(self) -> bool: ...
267
+
268
+ def elemSize(self) -> int: ...
269
+
270
+ def elemSize1(self) -> int: ...
271
+
272
+ def type(self) -> int: ...
273
+
274
+ def depth(self) -> int: ...
275
+
276
+ def channels(self) -> int: ...
277
+
278
+ def step1(self) -> int: ...
279
+
280
+ def size(self) -> cv2.typing.Size: ...
281
+
282
+ def empty(self) -> bool: ...
283
+
284
+
285
+ class Stream:
286
+ # Functions
287
+ @_typing.overload
288
+ def __init__(self) -> None: ...
289
+ @_typing.overload
290
+ def __init__(self, allocator: GpuMat.Allocator) -> None: ...
291
+ @_typing.overload
292
+ def __init__(self, cudaFlags: int) -> None: ...
293
+
294
+ def queryIfComplete(self) -> bool: ...
295
+
296
+ def waitForCompletion(self) -> None: ...
297
+
298
+ def waitEvent(self, event: Event) -> None: ...
299
+
300
+ @classmethod
301
+ def Null(cls) -> Stream: ...
302
+
303
+ def cudaPtr(self) -> cv2.typing.IntPointer: ...
304
+
305
+
306
+ class Event:
307
+ # Functions
308
+ def __init__(self, flags: Event_CreateFlags = ...) -> None: ...
309
+
310
+ def record(self, stream: Stream = ...) -> None: ...
311
+
312
+ def queryIfComplete(self) -> bool: ...
313
+
314
+ def waitForCompletion(self) -> None: ...
315
+
316
+ @staticmethod
317
+ def elapsedTime(start: Event, end: Event) -> float: ...
318
+
319
+
320
+ class TargetArchs:
321
+ # Functions
322
+ @staticmethod
323
+ def has(major: int, minor: int) -> bool: ...
324
+
325
+ @staticmethod
326
+ def hasPtx(major: int, minor: int) -> bool: ...
327
+
328
+ @staticmethod
329
+ def hasBin(major: int, minor: int) -> bool: ...
330
+
331
+ @staticmethod
332
+ def hasEqualOrLessPtx(major: int, minor: int) -> bool: ...
333
+
334
+ @staticmethod
335
+ def hasEqualOrGreater(major: int, minor: int) -> bool: ...
336
+
337
+ @staticmethod
338
+ def hasEqualOrGreaterPtx(major: int, minor: int) -> bool: ...
339
+
340
+ @staticmethod
341
+ def hasEqualOrGreaterBin(major: int, minor: int) -> bool: ...
342
+
343
+
344
+ class DeviceInfo:
345
+ # Functions
346
+ @_typing.overload
347
+ def __init__(self) -> None: ...
348
+ @_typing.overload
349
+ def __init__(self, device_id: int) -> None: ...
350
+
351
+ def deviceID(self) -> int: ...
352
+
353
+ def totalGlobalMem(self) -> int: ...
354
+
355
+ def sharedMemPerBlock(self) -> int: ...
356
+
357
+ def regsPerBlock(self) -> int: ...
358
+
359
+ def warpSize(self) -> int: ...
360
+
361
+ def memPitch(self) -> int: ...
362
+
363
+ def maxThreadsPerBlock(self) -> int: ...
364
+
365
+ def maxThreadsDim(self) -> cv2.typing.Vec3i: ...
366
+
367
+ def maxGridSize(self) -> cv2.typing.Vec3i: ...
368
+
369
+ def clockRate(self) -> int: ...
370
+
371
+ def totalConstMem(self) -> int: ...
372
+
373
+ def majorVersion(self) -> int: ...
374
+
375
+ def minorVersion(self) -> int: ...
376
+
377
+ def textureAlignment(self) -> int: ...
378
+
379
+ def texturePitchAlignment(self) -> int: ...
380
+
381
+ def multiProcessorCount(self) -> int: ...
382
+
383
+ def kernelExecTimeoutEnabled(self) -> bool: ...
384
+
385
+ def integrated(self) -> bool: ...
386
+
387
+ def canMapHostMemory(self) -> bool: ...
388
+
389
+ def computeMode(self) -> DeviceInfo_ComputeMode: ...
390
+
391
+ def maxTexture1D(self) -> int: ...
392
+
393
+ def maxTexture1DMipmap(self) -> int: ...
394
+
395
+ def maxTexture1DLinear(self) -> int: ...
396
+
397
+ def maxTexture2D(self) -> cv2.typing.Vec2i: ...
398
+
399
+ def maxTexture2DMipmap(self) -> cv2.typing.Vec2i: ...
400
+
401
+ def maxTexture2DLinear(self) -> cv2.typing.Vec3i: ...
402
+
403
+ def maxTexture2DGather(self) -> cv2.typing.Vec2i: ...
404
+
405
+ def maxTexture3D(self) -> cv2.typing.Vec3i: ...
406
+
407
+ def maxTextureCubemap(self) -> int: ...
408
+
409
+ def maxTexture1DLayered(self) -> cv2.typing.Vec2i: ...
410
+
411
+ def maxTexture2DLayered(self) -> cv2.typing.Vec3i: ...
412
+
413
+ def maxTextureCubemapLayered(self) -> cv2.typing.Vec2i: ...
414
+
415
+ def maxSurface1D(self) -> int: ...
416
+
417
+ def maxSurface2D(self) -> cv2.typing.Vec2i: ...
418
+
419
+ def maxSurface3D(self) -> cv2.typing.Vec3i: ...
420
+
421
+ def maxSurface1DLayered(self) -> cv2.typing.Vec2i: ...
422
+
423
+ def maxSurface2DLayered(self) -> cv2.typing.Vec3i: ...
424
+
425
+ def maxSurfaceCubemap(self) -> int: ...
426
+
427
+ def maxSurfaceCubemapLayered(self) -> cv2.typing.Vec2i: ...
428
+
429
+ def surfaceAlignment(self) -> int: ...
430
+
431
+ def concurrentKernels(self) -> bool: ...
432
+
433
+ def ECCEnabled(self) -> bool: ...
434
+
435
+ def pciBusID(self) -> int: ...
436
+
437
+ def pciDeviceID(self) -> int: ...
438
+
439
+ def pciDomainID(self) -> int: ...
440
+
441
+ def tccDriver(self) -> bool: ...
442
+
443
+ def asyncEngineCount(self) -> int: ...
444
+
445
+ def unifiedAddressing(self) -> bool: ...
446
+
447
+ def memoryClockRate(self) -> int: ...
448
+
449
+ def memoryBusWidth(self) -> int: ...
450
+
451
+ def l2CacheSize(self) -> int: ...
452
+
453
+ def maxThreadsPerMultiProcessor(self) -> int: ...
454
+
455
+ def queryMemory(self, totalMemory: int, freeMemory: int) -> None: ...
456
+
457
+ def freeMemory(self) -> int: ...
458
+
459
+ def totalMemory(self) -> int: ...
460
+
461
+ def isCompatible(self) -> bool: ...
462
+
463
+
464
+
465
+ # Functions
466
+ @_typing.overload
467
+ def createContinuous(rows: int, cols: int, type: int, arr: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
468
+ @_typing.overload
469
+ def createContinuous(rows: int, cols: int, type: int, arr: GpuMat | None = ...) -> GpuMat: ...
470
+ @_typing.overload
471
+ def createContinuous(rows: int, cols: int, type: int, arr: cv2.UMat | None = ...) -> cv2.UMat: ...
472
+
473
+ @_typing.overload
474
+ def createGpuMatFromCudaMemory(rows: int, cols: int, type: int, cudaMemoryAddress: int, step: int = ...) -> GpuMat: ...
475
+ @_typing.overload
476
+ def createGpuMatFromCudaMemory(size: cv2.typing.Size, type: int, cudaMemoryAddress: int, step: int = ...) -> GpuMat: ...
477
+
478
+ @_typing.overload
479
+ def ensureSizeIsEnough(rows: int, cols: int, type: int, arr: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
480
+ @_typing.overload
481
+ def ensureSizeIsEnough(rows: int, cols: int, type: int, arr: GpuMat | None = ...) -> GpuMat: ...
482
+ @_typing.overload
483
+ def ensureSizeIsEnough(rows: int, cols: int, type: int, arr: cv2.UMat | None = ...) -> cv2.UMat: ...
484
+
485
+ def fastNlMeansDenoising(src: GpuMat, h: float, dst: GpuMat | None = ..., search_window: int = ..., block_size: int = ..., stream: Stream = ...) -> GpuMat: ...
486
+
487
+ def fastNlMeansDenoisingColored(src: GpuMat, h_luminance: float, photo_render: float, dst: GpuMat | None = ..., search_window: int = ..., block_size: int = ..., stream: Stream = ...) -> GpuMat: ...
488
+
489
+ def getCudaEnabledDeviceCount() -> int: ...
490
+
491
+ def getDevice() -> int: ...
492
+
493
+ def nonLocalMeans(src: GpuMat, h: float, dst: GpuMat | None = ..., search_window: int = ..., block_size: int = ..., borderMode: int = ..., stream: Stream = ...) -> GpuMat: ...
494
+
495
+ def printCudaDeviceInfo(device: int) -> None: ...
496
+
497
+ def printShortCudaDeviceInfo(device: int) -> None: ...
498
+
499
+ def registerPageLocked(m: cv2.typing.MatLike) -> None: ...
500
+
501
+ def resetDevice() -> None: ...
502
+
503
+ def setBufferPoolConfig(deviceId: int, stackSize: int, stackCount: int) -> None: ...
504
+
505
+ def setBufferPoolUsage(on: bool) -> None: ...
506
+
507
+ def setDevice(device: int) -> None: ...
508
+
509
+ def unregisterPageLocked(m: cv2.typing.MatLike) -> None: ...
510
+
511
+ def wrapStream(cudaStreamMemoryAddress: int) -> Stream: ...
512
+
513
+
cv2/cv2.pyd ADDED
@@ -0,0 +1,4 @@
1
+ [diffend] Oversized file quarantined before diffing.
2
+ name: cv2/cv2.pyd
3
+ size: 55357440 bytes
4
+ sha256: 1878a29a30d7e26692ab82f0f837c73198a075ec802597fbb2502ae1ea271ede
cv2/data/__init__.py ADDED
@@ -0,0 +1,3 @@
1
+ import os
2
+
3
+ haarcascades = os.path.join(os.path.dirname(__file__), "")