__init__.pyi 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553
  1. __all__: list[str] = []
  2. import cv2
  3. import cv2.typing
  4. import typing as _typing
  5. # Enumerations
  6. FEATURE_SET_COMPUTE_10: int
  7. FEATURE_SET_COMPUTE_11: int
  8. FEATURE_SET_COMPUTE_12: int
  9. FEATURE_SET_COMPUTE_13: int
  10. FEATURE_SET_COMPUTE_20: int
  11. FEATURE_SET_COMPUTE_21: int
  12. FEATURE_SET_COMPUTE_30: int
  13. FEATURE_SET_COMPUTE_32: int
  14. FEATURE_SET_COMPUTE_35: int
  15. FEATURE_SET_COMPUTE_50: int
  16. GLOBAL_ATOMICS: int
  17. SHARED_ATOMICS: int
  18. NATIVE_DOUBLE: int
  19. WARP_SHUFFLE_FUNCTIONS: int
  20. DYNAMIC_PARALLELISM: int
  21. FeatureSet = int
  22. """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]"""
  23. HostMem_PAGE_LOCKED: int
  24. HOST_MEM_PAGE_LOCKED: int
  25. HostMem_SHARED: int
  26. HOST_MEM_SHARED: int
  27. HostMem_WRITE_COMBINED: int
  28. HOST_MEM_WRITE_COMBINED: int
  29. HostMem_AllocType = int
  30. """One of [HostMem_PAGE_LOCKED, HOST_MEM_PAGE_LOCKED, HostMem_SHARED, HOST_MEM_SHARED, HostMem_WRITE_COMBINED, HOST_MEM_WRITE_COMBINED]"""
  31. Event_DEFAULT: int
  32. EVENT_DEFAULT: int
  33. Event_BLOCKING_SYNC: int
  34. EVENT_BLOCKING_SYNC: int
  35. Event_DISABLE_TIMING: int
  36. EVENT_DISABLE_TIMING: int
  37. Event_INTERPROCESS: int
  38. EVENT_INTERPROCESS: int
  39. Event_CreateFlags = int
  40. """One of [Event_DEFAULT, EVENT_DEFAULT, Event_BLOCKING_SYNC, EVENT_BLOCKING_SYNC, Event_DISABLE_TIMING, EVENT_DISABLE_TIMING, Event_INTERPROCESS, EVENT_INTERPROCESS]"""
  41. DeviceInfo_ComputeModeDefault: int
  42. DEVICE_INFO_COMPUTE_MODE_DEFAULT: int
  43. DeviceInfo_ComputeModeExclusive: int
  44. DEVICE_INFO_COMPUTE_MODE_EXCLUSIVE: int
  45. DeviceInfo_ComputeModeProhibited: int
  46. DEVICE_INFO_COMPUTE_MODE_PROHIBITED: int
  47. DeviceInfo_ComputeModeExclusiveProcess: int
  48. DEVICE_INFO_COMPUTE_MODE_EXCLUSIVE_PROCESS: int
  49. DeviceInfo_ComputeMode = int
  50. """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]"""
  51. SURF_CUDA_X_ROW: int
  52. SURF_CUDA_Y_ROW: int
  53. SURF_CUDA_LAPLACIAN_ROW: int
  54. SURF_CUDA_OCTAVE_ROW: int
  55. SURF_CUDA_SIZE_ROW: int
  56. SURF_CUDA_ANGLE_ROW: int
  57. SURF_CUDA_HESSIAN_ROW: int
  58. SURF_CUDA_ROWS_COUNT: int
  59. SURF_CUDA_KeypointLayout = int
  60. """One of [SURF_CUDA_X_ROW, SURF_CUDA_Y_ROW, SURF_CUDA_LAPLACIAN_ROW, SURF_CUDA_OCTAVE_ROW, SURF_CUDA_SIZE_ROW, SURF_CUDA_ANGLE_ROW, SURF_CUDA_HESSIAN_ROW, SURF_CUDA_ROWS_COUNT]"""
  61. # Classes
  62. class GpuMat:
  63. @property
  64. def step(self) -> int: ...
  65. # Classes
  66. class Allocator:
  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. @staticmethod
  92. def defaultAllocator() -> GpuMat.Allocator: ...
  93. @staticmethod
  94. def setDefaultAllocator(allocator: GpuMat.Allocator) -> None: ...
  95. @staticmethod
  96. def getStdAllocator() -> GpuMat.Allocator: ...
  97. @_typing.overload
  98. def create(self, rows: int, cols: int, type: int) -> None: ...
  99. @_typing.overload
  100. def create(self, size: cv2.typing.Size, type: int) -> None: ...
  101. def release(self) -> None: ...
  102. def swap(self, mat: GpuMat) -> None: ...
  103. @_typing.overload
  104. def upload(self, arr: cv2.typing.MatLike) -> None: ...
  105. @_typing.overload
  106. def upload(self, arr: GpuMat) -> None: ...
  107. @_typing.overload
  108. def upload(self, arr: cv2.UMat) -> None: ...
  109. @_typing.overload
  110. def upload(self, arr: cv2.typing.MatLike, stream: Stream) -> None: ...
  111. @_typing.overload
  112. def upload(self, arr: GpuMat, stream: Stream) -> None: ...
  113. @_typing.overload
  114. def upload(self, arr: cv2.UMat, stream: Stream) -> None: ...
  115. @_typing.overload
  116. def download(self, dst: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
  117. @_typing.overload
  118. def download(self, dst: GpuMat | None = ...) -> GpuMat: ...
  119. @_typing.overload
  120. def download(self, dst: cv2.UMat | None = ...) -> cv2.UMat: ...
  121. @_typing.overload
  122. def download(self, stream: Stream, dst: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
  123. @_typing.overload
  124. def download(self, stream: Stream, dst: GpuMat | None = ...) -> GpuMat: ...
  125. @_typing.overload
  126. def download(self, stream: Stream, dst: cv2.UMat | None = ...) -> cv2.UMat: ...
  127. def clone(self) -> GpuMat: ...
  128. @_typing.overload
  129. def copyTo(self, dst: GpuMat | None = ...) -> GpuMat: ...
  130. @_typing.overload
  131. def copyTo(self, stream: Stream, dst: GpuMat | None = ...) -> GpuMat: ...
  132. @_typing.overload
  133. def copyTo(self, mask: GpuMat, dst: GpuMat | None = ...) -> GpuMat: ...
  134. @_typing.overload
  135. def copyTo(self, mask: GpuMat, stream: Stream, dst: GpuMat | None = ...) -> GpuMat: ...
  136. @_typing.overload
  137. def setTo(self, s: cv2.typing.Scalar) -> GpuMat: ...
  138. @_typing.overload
  139. def setTo(self, s: cv2.typing.Scalar, stream: Stream) -> GpuMat: ...
  140. @_typing.overload
  141. def setTo(self, s: cv2.typing.Scalar, mask: cv2.typing.MatLike) -> GpuMat: ...
  142. @_typing.overload
  143. def setTo(self, s: cv2.typing.Scalar, mask: GpuMat) -> GpuMat: ...
  144. @_typing.overload
  145. def setTo(self, s: cv2.typing.Scalar, mask: cv2.UMat) -> GpuMat: ...
  146. @_typing.overload
  147. def setTo(self, s: cv2.typing.Scalar, mask: cv2.typing.MatLike, stream: Stream) -> GpuMat: ...
  148. @_typing.overload
  149. def setTo(self, s: cv2.typing.Scalar, mask: GpuMat, stream: Stream) -> GpuMat: ...
  150. @_typing.overload
  151. def setTo(self, s: cv2.typing.Scalar, mask: cv2.UMat, stream: Stream) -> GpuMat: ...
  152. @_typing.overload
  153. def convertTo(self, rtype: int, dst: GpuMat | None = ...) -> GpuMat: ...
  154. @_typing.overload
  155. def convertTo(self, rtype: int, stream: Stream, dst: GpuMat | None = ...) -> GpuMat: ...
  156. @_typing.overload
  157. def convertTo(self, rtype: int, dst: GpuMat | None = ..., alpha: float = ..., beta: float = ...) -> GpuMat: ...
  158. @_typing.overload
  159. def convertTo(self, rtype: int, alpha: float, beta: float, stream: Stream, dst: GpuMat | None = ...) -> GpuMat: ...
  160. def assignTo(self, m: GpuMat, type: int = ...) -> None: ...
  161. def row(self, y: int) -> GpuMat: ...
  162. def col(self, x: int) -> GpuMat: ...
  163. @_typing.overload
  164. def rowRange(self, startrow: int, endrow: int) -> GpuMat: ...
  165. @_typing.overload
  166. def rowRange(self, r: cv2.typing.Range) -> GpuMat: ...
  167. @_typing.overload
  168. def colRange(self, startcol: int, endcol: int) -> GpuMat: ...
  169. @_typing.overload
  170. def colRange(self, r: cv2.typing.Range) -> GpuMat: ...
  171. def reshape(self, cn: int, rows: int = ...) -> GpuMat: ...
  172. def locateROI(self, wholeSize: cv2.typing.Size, ofs: cv2.typing.Point) -> None: ...
  173. def adjustROI(self, dtop: int, dbottom: int, dleft: int, dright: int) -> GpuMat: ...
  174. def isContinuous(self) -> bool: ...
  175. def elemSize(self) -> int: ...
  176. def elemSize1(self) -> int: ...
  177. def type(self) -> int: ...
  178. def depth(self) -> int: ...
  179. def channels(self) -> int: ...
  180. def step1(self) -> int: ...
  181. def size(self) -> cv2.typing.Size: ...
  182. def empty(self) -> bool: ...
  183. def cudaPtr(self) -> cv2.typing.IntPointer: ...
  184. def updateContinuityFlag(self) -> None: ...
  185. class GpuData:
  186. ...
  187. class GpuMatND:
  188. ...
  189. class BufferPool:
  190. # Functions
  191. def __init__(self, stream: Stream) -> None: ...
  192. @_typing.overload
  193. def getBuffer(self, rows: int, cols: int, type: int) -> GpuMat: ...
  194. @_typing.overload
  195. def getBuffer(self, size: cv2.typing.Size, type: int) -> GpuMat: ...
  196. def getAllocator(self) -> GpuMat.Allocator: ...
  197. class HostMem:
  198. @property
  199. def step(self) -> int: ...
  200. # Functions
  201. @_typing.overload
  202. def __init__(self, alloc_type: HostMem_AllocType = ...) -> None: ...
  203. @_typing.overload
  204. def __init__(self, rows: int, cols: int, type: int, alloc_type: HostMem_AllocType = ...) -> None: ...
  205. @_typing.overload
  206. def __init__(self, size: cv2.typing.Size, type: int, alloc_type: HostMem_AllocType = ...) -> None: ...
  207. @_typing.overload
  208. def __init__(self, arr: cv2.typing.MatLike, alloc_type: HostMem_AllocType = ...) -> None: ...
  209. @_typing.overload
  210. def __init__(self, arr: GpuMat, alloc_type: HostMem_AllocType = ...) -> None: ...
  211. @_typing.overload
  212. def __init__(self, arr: cv2.UMat, alloc_type: HostMem_AllocType = ...) -> None: ...
  213. def swap(self, b: HostMem) -> None: ...
  214. def clone(self) -> HostMem: ...
  215. def create(self, rows: int, cols: int, type: int) -> None: ...
  216. def reshape(self, cn: int, rows: int = ...) -> HostMem: ...
  217. def createMatHeader(self) -> cv2.typing.MatLike: ...
  218. def isContinuous(self) -> bool: ...
  219. def elemSize(self) -> int: ...
  220. def elemSize1(self) -> int: ...
  221. def type(self) -> int: ...
  222. def depth(self) -> int: ...
  223. def channels(self) -> int: ...
  224. def step1(self) -> int: ...
  225. def size(self) -> cv2.typing.Size: ...
  226. def empty(self) -> bool: ...
  227. class Stream:
  228. # Functions
  229. @_typing.overload
  230. def __init__(self) -> None: ...
  231. @_typing.overload
  232. def __init__(self, allocator: GpuMat.Allocator) -> None: ...
  233. @_typing.overload
  234. def __init__(self, cudaFlags: int) -> None: ...
  235. def queryIfComplete(self) -> bool: ...
  236. def waitForCompletion(self) -> None: ...
  237. def waitEvent(self, event: Event) -> None: ...
  238. @classmethod
  239. def Null(cls) -> Stream: ...
  240. def cudaPtr(self) -> cv2.typing.IntPointer: ...
  241. class Event:
  242. # Functions
  243. def __init__(self, flags: Event_CreateFlags = ...) -> None: ...
  244. def record(self, stream: Stream = ...) -> None: ...
  245. def queryIfComplete(self) -> bool: ...
  246. def waitForCompletion(self) -> None: ...
  247. @staticmethod
  248. def elapsedTime(start: Event, end: Event) -> float: ...
  249. class TargetArchs:
  250. # Functions
  251. @staticmethod
  252. def has(major: int, minor: int) -> bool: ...
  253. @staticmethod
  254. def hasPtx(major: int, minor: int) -> bool: ...
  255. @staticmethod
  256. def hasBin(major: int, minor: int) -> bool: ...
  257. @staticmethod
  258. def hasEqualOrLessPtx(major: int, minor: int) -> bool: ...
  259. @staticmethod
  260. def hasEqualOrGreater(major: int, minor: int) -> bool: ...
  261. @staticmethod
  262. def hasEqualOrGreaterPtx(major: int, minor: int) -> bool: ...
  263. @staticmethod
  264. def hasEqualOrGreaterBin(major: int, minor: int) -> bool: ...
  265. class DeviceInfo:
  266. # Functions
  267. @_typing.overload
  268. def __init__(self) -> None: ...
  269. @_typing.overload
  270. def __init__(self, device_id: int) -> None: ...
  271. def deviceID(self) -> int: ...
  272. def totalGlobalMem(self) -> int: ...
  273. def sharedMemPerBlock(self) -> int: ...
  274. def regsPerBlock(self) -> int: ...
  275. def warpSize(self) -> int: ...
  276. def memPitch(self) -> int: ...
  277. def maxThreadsPerBlock(self) -> int: ...
  278. def maxThreadsDim(self) -> cv2.typing.Vec3i: ...
  279. def maxGridSize(self) -> cv2.typing.Vec3i: ...
  280. def clockRate(self) -> int: ...
  281. def totalConstMem(self) -> int: ...
  282. def majorVersion(self) -> int: ...
  283. def minorVersion(self) -> int: ...
  284. def textureAlignment(self) -> int: ...
  285. def texturePitchAlignment(self) -> int: ...
  286. def multiProcessorCount(self) -> int: ...
  287. def kernelExecTimeoutEnabled(self) -> bool: ...
  288. def integrated(self) -> bool: ...
  289. def canMapHostMemory(self) -> bool: ...
  290. def computeMode(self) -> DeviceInfo_ComputeMode: ...
  291. def maxTexture1D(self) -> int: ...
  292. def maxTexture1DMipmap(self) -> int: ...
  293. def maxTexture1DLinear(self) -> int: ...
  294. def maxTexture2D(self) -> cv2.typing.Vec2i: ...
  295. def maxTexture2DMipmap(self) -> cv2.typing.Vec2i: ...
  296. def maxTexture2DLinear(self) -> cv2.typing.Vec3i: ...
  297. def maxTexture2DGather(self) -> cv2.typing.Vec2i: ...
  298. def maxTexture3D(self) -> cv2.typing.Vec3i: ...
  299. def maxTextureCubemap(self) -> int: ...
  300. def maxTexture1DLayered(self) -> cv2.typing.Vec2i: ...
  301. def maxTexture2DLayered(self) -> cv2.typing.Vec3i: ...
  302. def maxTextureCubemapLayered(self) -> cv2.typing.Vec2i: ...
  303. def maxSurface1D(self) -> int: ...
  304. def maxSurface2D(self) -> cv2.typing.Vec2i: ...
  305. def maxSurface3D(self) -> cv2.typing.Vec3i: ...
  306. def maxSurface1DLayered(self) -> cv2.typing.Vec2i: ...
  307. def maxSurface2DLayered(self) -> cv2.typing.Vec3i: ...
  308. def maxSurfaceCubemap(self) -> int: ...
  309. def maxSurfaceCubemapLayered(self) -> cv2.typing.Vec2i: ...
  310. def surfaceAlignment(self) -> int: ...
  311. def concurrentKernels(self) -> bool: ...
  312. def ECCEnabled(self) -> bool: ...
  313. def pciBusID(self) -> int: ...
  314. def pciDeviceID(self) -> int: ...
  315. def pciDomainID(self) -> int: ...
  316. def tccDriver(self) -> bool: ...
  317. def asyncEngineCount(self) -> int: ...
  318. def unifiedAddressing(self) -> bool: ...
  319. def memoryClockRate(self) -> int: ...
  320. def memoryBusWidth(self) -> int: ...
  321. def l2CacheSize(self) -> int: ...
  322. def maxThreadsPerMultiProcessor(self) -> int: ...
  323. def queryMemory(self, totalMemory: int, freeMemory: int) -> None: ...
  324. def freeMemory(self) -> int: ...
  325. def totalMemory(self) -> int: ...
  326. def isCompatible(self) -> bool: ...
  327. class SURF_CUDA:
  328. @property
  329. def hessianThreshold(self) -> float: ...
  330. @property
  331. def nOctaves(self) -> int: ...
  332. @property
  333. def nOctaveLayers(self) -> int: ...
  334. @property
  335. def extended(self) -> bool: ...
  336. @property
  337. def upright(self) -> bool: ...
  338. @property
  339. def keypointsRatio(self) -> float: ...
  340. # Functions
  341. @classmethod
  342. def create(cls, _hessianThreshold: float, _nOctaves: int = ..., _nOctaveLayers: int = ..., _extended: bool = ..., _keypointsRatio: float = ..., _upright: bool = ...) -> SURF_CUDA: ...
  343. def descriptorSize(self) -> int: ...
  344. def defaultNorm(self) -> int: ...
  345. def downloadKeypoints(self, keypointsGPU: GpuMat) -> _typing.Sequence[cv2.KeyPoint]: ...
  346. def detect(self, img: GpuMat, mask: GpuMat, keypoints: GpuMat | None = ...) -> GpuMat: ...
  347. def detectWithDescriptors(self, img: GpuMat, mask: GpuMat, keypoints: GpuMat | None = ..., descriptors: GpuMat | None = ..., useProvidedKeypoints: bool = ...) -> tuple[GpuMat, GpuMat]: ...
  348. # Functions
  349. @_typing.overload
  350. def createContinuous(rows: int, cols: int, type: int, arr: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
  351. @_typing.overload
  352. def createContinuous(rows: int, cols: int, type: int, arr: GpuMat | None = ...) -> GpuMat: ...
  353. @_typing.overload
  354. def createContinuous(rows: int, cols: int, type: int, arr: cv2.UMat | None = ...) -> cv2.UMat: ...
  355. @_typing.overload
  356. def createGpuMatFromCudaMemory(rows: int, cols: int, type: int, cudaMemoryAddress: int, step: int = ...) -> GpuMat: ...
  357. @_typing.overload
  358. def createGpuMatFromCudaMemory(size: cv2.typing.Size, type: int, cudaMemoryAddress: int, step: int = ...) -> GpuMat: ...
  359. @_typing.overload
  360. def ensureSizeIsEnough(rows: int, cols: int, type: int, arr: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
  361. @_typing.overload
  362. def ensureSizeIsEnough(rows: int, cols: int, type: int, arr: GpuMat | None = ...) -> GpuMat: ...
  363. @_typing.overload
  364. def ensureSizeIsEnough(rows: int, cols: int, type: int, arr: cv2.UMat | None = ...) -> cv2.UMat: ...
  365. def fastNlMeansDenoising(src: GpuMat, h: float, dst: GpuMat | None = ..., search_window: int = ..., block_size: int = ..., stream: Stream = ...) -> GpuMat: ...
  366. def fastNlMeansDenoisingColored(src: GpuMat, h_luminance: float, photo_render: float, dst: GpuMat | None = ..., search_window: int = ..., block_size: int = ..., stream: Stream = ...) -> GpuMat: ...
  367. def getCudaEnabledDeviceCount() -> int: ...
  368. def getDevice() -> int: ...
  369. def nonLocalMeans(src: GpuMat, h: float, dst: GpuMat | None = ..., search_window: int = ..., block_size: int = ..., borderMode: int = ..., stream: Stream = ...) -> GpuMat: ...
  370. def printCudaDeviceInfo(device: int) -> None: ...
  371. def printShortCudaDeviceInfo(device: int) -> None: ...
  372. def registerPageLocked(m: cv2.typing.MatLike) -> None: ...
  373. def resetDevice() -> None: ...
  374. def setBufferPoolConfig(deviceId: int, stackSize: int, stackCount: int) -> None: ...
  375. def setBufferPoolUsage(on: bool) -> None: ...
  376. def setDevice(device: int) -> None: ...
  377. def unregisterPageLocked(m: cv2.typing.MatLike) -> None: ...
  378. def wrapStream(cudaStreamMemoryAddress: int) -> Stream: ...