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