__init__.pyi 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600
  1. __all__: list[str] = []
  2. import cv2
  3. import cv2.gapi
  4. import cv2.gapi.ie
  5. import cv2.gapi.onnx
  6. import cv2.gapi.ov
  7. import cv2.typing
  8. import numpy
  9. import typing as _typing
  10. # Enumerations
  11. TEST_CUSTOM: int
  12. TEST_EQ: int
  13. TEST_NE: int
  14. TEST_LE: int
  15. TEST_LT: int
  16. TEST_GE: int
  17. TEST_GT: int
  18. TestOp = int
  19. """One of [TEST_CUSTOM, TEST_EQ, TEST_NE, TEST_LE, TEST_LT, TEST_GE, TEST_GT]"""
  20. WAVE_CORRECT_HORIZ: int
  21. WAVE_CORRECT_VERT: int
  22. WAVE_CORRECT_AUTO: int
  23. WaveCorrectKind = int
  24. """One of [WAVE_CORRECT_HORIZ, WAVE_CORRECT_VERT, WAVE_CORRECT_AUTO]"""
  25. OpaqueKind_CV_UNKNOWN: int
  26. OPAQUE_KIND_CV_UNKNOWN: int
  27. OpaqueKind_CV_BOOL: int
  28. OPAQUE_KIND_CV_BOOL: int
  29. OpaqueKind_CV_INT: int
  30. OPAQUE_KIND_CV_INT: int
  31. OpaqueKind_CV_INT64: int
  32. OPAQUE_KIND_CV_INT64: int
  33. OpaqueKind_CV_DOUBLE: int
  34. OPAQUE_KIND_CV_DOUBLE: int
  35. OpaqueKind_CV_FLOAT: int
  36. OPAQUE_KIND_CV_FLOAT: int
  37. OpaqueKind_CV_UINT64: int
  38. OPAQUE_KIND_CV_UINT64: int
  39. OpaqueKind_CV_STRING: int
  40. OPAQUE_KIND_CV_STRING: int
  41. OpaqueKind_CV_POINT: int
  42. OPAQUE_KIND_CV_POINT: int
  43. OpaqueKind_CV_POINT2F: int
  44. OPAQUE_KIND_CV_POINT2F: int
  45. OpaqueKind_CV_POINT3F: int
  46. OPAQUE_KIND_CV_POINT3F: int
  47. OpaqueKind_CV_SIZE: int
  48. OPAQUE_KIND_CV_SIZE: int
  49. OpaqueKind_CV_RECT: int
  50. OPAQUE_KIND_CV_RECT: int
  51. OpaqueKind_CV_SCALAR: int
  52. OPAQUE_KIND_CV_SCALAR: int
  53. OpaqueKind_CV_MAT: int
  54. OPAQUE_KIND_CV_MAT: int
  55. OpaqueKind_CV_DRAW_PRIM: int
  56. OPAQUE_KIND_CV_DRAW_PRIM: int
  57. OpaqueKind = int
  58. """One of [OpaqueKind_CV_UNKNOWN, OPAQUE_KIND_CV_UNKNOWN, OpaqueKind_CV_BOOL, OPAQUE_KIND_CV_BOOL, OpaqueKind_CV_INT, OPAQUE_KIND_CV_INT, OpaqueKind_CV_INT64, OPAQUE_KIND_CV_INT64, OpaqueKind_CV_DOUBLE, OPAQUE_KIND_CV_DOUBLE, OpaqueKind_CV_FLOAT, OPAQUE_KIND_CV_FLOAT, OpaqueKind_CV_UINT64, OPAQUE_KIND_CV_UINT64, OpaqueKind_CV_STRING, OPAQUE_KIND_CV_STRING, OpaqueKind_CV_POINT, OPAQUE_KIND_CV_POINT, OpaqueKind_CV_POINT2F, OPAQUE_KIND_CV_POINT2F, OpaqueKind_CV_POINT3F, OPAQUE_KIND_CV_POINT3F, OpaqueKind_CV_SIZE, OPAQUE_KIND_CV_SIZE, OpaqueKind_CV_RECT, OPAQUE_KIND_CV_RECT, OpaqueKind_CV_SCALAR, OPAQUE_KIND_CV_SCALAR, OpaqueKind_CV_MAT, OPAQUE_KIND_CV_MAT, OpaqueKind_CV_DRAW_PRIM, OPAQUE_KIND_CV_DRAW_PRIM]"""
  59. ArgKind_OPAQUE_VAL: int
  60. ARG_KIND_OPAQUE_VAL: int
  61. ArgKind_OPAQUE: int
  62. ARG_KIND_OPAQUE: int
  63. ArgKind_GOBJREF: int
  64. ARG_KIND_GOBJREF: int
  65. ArgKind_GMAT: int
  66. ARG_KIND_GMAT: int
  67. ArgKind_GMATP: int
  68. ARG_KIND_GMATP: int
  69. ArgKind_GFRAME: int
  70. ARG_KIND_GFRAME: int
  71. ArgKind_GSCALAR: int
  72. ARG_KIND_GSCALAR: int
  73. ArgKind_GARRAY: int
  74. ARG_KIND_GARRAY: int
  75. ArgKind_GOPAQUE: int
  76. ARG_KIND_GOPAQUE: int
  77. ArgKind = int
  78. """One of [ArgKind_OPAQUE_VAL, ARG_KIND_OPAQUE_VAL, ArgKind_OPAQUE, ARG_KIND_OPAQUE, ArgKind_GOBJREF, ARG_KIND_GOBJREF, ArgKind_GMAT, ARG_KIND_GMAT, ArgKind_GMATP, ARG_KIND_GMATP, ArgKind_GFRAME, ARG_KIND_GFRAME, ArgKind_GSCALAR, ARG_KIND_GSCALAR, ArgKind_GARRAY, ARG_KIND_GARRAY, ArgKind_GOPAQUE, ARG_KIND_GOPAQUE]"""
  79. Blender_NO: int
  80. BLENDER_NO: int
  81. Blender_FEATHER: int
  82. BLENDER_FEATHER: int
  83. Blender_MULTI_BAND: int
  84. BLENDER_MULTI_BAND: int
  85. ExposureCompensator_NO: int
  86. EXPOSURE_COMPENSATOR_NO: int
  87. ExposureCompensator_GAIN: int
  88. EXPOSURE_COMPENSATOR_GAIN: int
  89. ExposureCompensator_GAIN_BLOCKS: int
  90. EXPOSURE_COMPENSATOR_GAIN_BLOCKS: int
  91. ExposureCompensator_CHANNELS: int
  92. EXPOSURE_COMPENSATOR_CHANNELS: int
  93. ExposureCompensator_CHANNELS_BLOCKS: int
  94. EXPOSURE_COMPENSATOR_CHANNELS_BLOCKS: int
  95. SeamFinder_NO: int
  96. SEAM_FINDER_NO: int
  97. SeamFinder_VORONOI_SEAM: int
  98. SEAM_FINDER_VORONOI_SEAM: int
  99. SeamFinder_DP_SEAM: int
  100. SEAM_FINDER_DP_SEAM: int
  101. DpSeamFinder_COLOR: int
  102. DP_SEAM_FINDER_COLOR: int
  103. DpSeamFinder_COLOR_GRAD: int
  104. DP_SEAM_FINDER_COLOR_GRAD: int
  105. DpSeamFinder_CostFunction = int
  106. """One of [DpSeamFinder_COLOR, DP_SEAM_FINDER_COLOR, DpSeamFinder_COLOR_GRAD, DP_SEAM_FINDER_COLOR_GRAD]"""
  107. Timelapser_AS_IS: int
  108. TIMELAPSER_AS_IS: int
  109. Timelapser_CROP: int
  110. TIMELAPSER_CROP: int
  111. GraphCutSeamFinderBase_COST_COLOR: int
  112. GRAPH_CUT_SEAM_FINDER_BASE_COST_COLOR: int
  113. GraphCutSeamFinderBase_COST_COLOR_GRAD: int
  114. GRAPH_CUT_SEAM_FINDER_BASE_COST_COLOR_GRAD: int
  115. GraphCutSeamFinderBase_CostType = int
  116. """One of [GraphCutSeamFinderBase_COST_COLOR, GRAPH_CUT_SEAM_FINDER_BASE_COST_COLOR, GraphCutSeamFinderBase_COST_COLOR_GRAD, GRAPH_CUT_SEAM_FINDER_BASE_COST_COLOR_GRAD]"""
  117. TrackerSamplerCSC_MODE_INIT_POS: int
  118. TRACKER_SAMPLER_CSC_MODE_INIT_POS: int
  119. TrackerSamplerCSC_MODE_INIT_NEG: int
  120. TRACKER_SAMPLER_CSC_MODE_INIT_NEG: int
  121. TrackerSamplerCSC_MODE_TRACK_POS: int
  122. TRACKER_SAMPLER_CSC_MODE_TRACK_POS: int
  123. TrackerSamplerCSC_MODE_TRACK_NEG: int
  124. TRACKER_SAMPLER_CSC_MODE_TRACK_NEG: int
  125. TrackerSamplerCSC_MODE_DETECT: int
  126. TRACKER_SAMPLER_CSC_MODE_DETECT: int
  127. TrackerSamplerCSC_MODE = int
  128. """One of [TrackerSamplerCSC_MODE_INIT_POS, TRACKER_SAMPLER_CSC_MODE_INIT_POS, TrackerSamplerCSC_MODE_INIT_NEG, TRACKER_SAMPLER_CSC_MODE_INIT_NEG, TrackerSamplerCSC_MODE_TRACK_POS, TRACKER_SAMPLER_CSC_MODE_TRACK_POS, TrackerSamplerCSC_MODE_TRACK_NEG, TRACKER_SAMPLER_CSC_MODE_TRACK_NEG, TrackerSamplerCSC_MODE_DETECT, TRACKER_SAMPLER_CSC_MODE_DETECT]"""
  129. # Classes
  130. class Blender:
  131. # Functions
  132. @classmethod
  133. def createDefault(cls, type: int, try_gpu: bool = ...) -> Blender: ...
  134. @_typing.overload
  135. def prepare(self, corners: _typing.Sequence[cv2.typing.Point], sizes: _typing.Sequence[cv2.typing.Size]) -> None: ...
  136. @_typing.overload
  137. def prepare(self, dst_roi: cv2.typing.Rect) -> None: ...
  138. @_typing.overload
  139. def feed(self, img: cv2.typing.MatLike, mask: cv2.typing.MatLike, tl: cv2.typing.Point) -> None: ...
  140. @_typing.overload
  141. def feed(self, img: cv2.UMat, mask: cv2.UMat, tl: cv2.typing.Point) -> None: ...
  142. @_typing.overload
  143. def blend(self, dst: cv2.typing.MatLike, dst_mask: cv2.typing.MatLike) -> tuple[cv2.typing.MatLike, cv2.typing.MatLike]: ...
  144. @_typing.overload
  145. def blend(self, dst: cv2.UMat, dst_mask: cv2.UMat) -> tuple[cv2.UMat, cv2.UMat]: ...
  146. class FeatherBlender(Blender):
  147. # Functions
  148. def __init__(self, sharpness: float = ...) -> None: ...
  149. def sharpness(self) -> float: ...
  150. def setSharpness(self, val: float) -> None: ...
  151. def prepare(self, dst_roi: cv2.typing.Rect) -> None: ...
  152. @_typing.overload
  153. def feed(self, img: cv2.typing.MatLike, mask: cv2.typing.MatLike, tl: cv2.typing.Point) -> None: ...
  154. @_typing.overload
  155. def feed(self, img: cv2.UMat, mask: cv2.UMat, tl: cv2.typing.Point) -> None: ...
  156. @_typing.overload
  157. def blend(self, dst: cv2.typing.MatLike, dst_mask: cv2.typing.MatLike) -> tuple[cv2.typing.MatLike, cv2.typing.MatLike]: ...
  158. @_typing.overload
  159. def blend(self, dst: cv2.UMat, dst_mask: cv2.UMat) -> tuple[cv2.UMat, cv2.UMat]: ...
  160. def createWeightMaps(self, masks: _typing.Sequence[cv2.UMat], corners: _typing.Sequence[cv2.typing.Point], weight_maps: _typing.Sequence[cv2.UMat]) -> tuple[cv2.typing.Rect, _typing.Sequence[cv2.UMat]]: ...
  161. class MultiBandBlender(Blender):
  162. # Functions
  163. def __init__(self, try_gpu: int = ..., num_bands: int = ..., weight_type: int = ...) -> None: ...
  164. def numBands(self) -> int: ...
  165. def setNumBands(self, val: int) -> None: ...
  166. def prepare(self, dst_roi: cv2.typing.Rect) -> None: ...
  167. @_typing.overload
  168. def feed(self, img: cv2.typing.MatLike, mask: cv2.typing.MatLike, tl: cv2.typing.Point) -> None: ...
  169. @_typing.overload
  170. def feed(self, img: cv2.UMat, mask: cv2.UMat, tl: cv2.typing.Point) -> None: ...
  171. @_typing.overload
  172. def blend(self, dst: cv2.typing.MatLike, dst_mask: cv2.typing.MatLike) -> tuple[cv2.typing.MatLike, cv2.typing.MatLike]: ...
  173. @_typing.overload
  174. def blend(self, dst: cv2.UMat, dst_mask: cv2.UMat) -> tuple[cv2.UMat, cv2.UMat]: ...
  175. class CameraParams:
  176. focal: float
  177. aspect: float
  178. ppx: float
  179. ppy: float
  180. R: cv2.typing.MatLike
  181. t: cv2.typing.MatLike
  182. # Functions
  183. def K(self) -> cv2.typing.MatLike: ...
  184. class ExposureCompensator:
  185. # Functions
  186. @classmethod
  187. def createDefault(cls, type: int) -> ExposureCompensator: ...
  188. def feed(self, corners: _typing.Sequence[cv2.typing.Point], images: _typing.Sequence[cv2.UMat], masks: _typing.Sequence[cv2.UMat]) -> None: ...
  189. @_typing.overload
  190. def apply(self, index: int, corner: cv2.typing.Point, image: cv2.typing.MatLike, mask: cv2.typing.MatLike) -> cv2.typing.MatLike: ...
  191. @_typing.overload
  192. def apply(self, index: int, corner: cv2.typing.Point, image: cv2.UMat, mask: cv2.UMat) -> cv2.UMat: ...
  193. def getMatGains(self, arg1: _typing.Sequence[cv2.typing.MatLike] | None = ...) -> _typing.Sequence[cv2.typing.MatLike]: ...
  194. def setMatGains(self, arg1: _typing.Sequence[cv2.typing.MatLike]) -> None: ...
  195. def setUpdateGain(self, b: bool) -> None: ...
  196. def getUpdateGain(self) -> bool: ...
  197. class NoExposureCompensator(ExposureCompensator):
  198. # Functions
  199. @_typing.overload
  200. def apply(self, arg1: int, arg2: cv2.typing.Point, arg3: cv2.typing.MatLike, arg4: cv2.typing.MatLike) -> cv2.typing.MatLike: ...
  201. @_typing.overload
  202. def apply(self, arg1: int, arg2: cv2.typing.Point, arg3: cv2.UMat, arg4: cv2.UMat) -> cv2.UMat: ...
  203. def getMatGains(self, umv: _typing.Sequence[cv2.typing.MatLike] | None = ...) -> _typing.Sequence[cv2.typing.MatLike]: ...
  204. def setMatGains(self, umv: _typing.Sequence[cv2.typing.MatLike]) -> None: ...
  205. class GainCompensator(ExposureCompensator):
  206. # Functions
  207. @_typing.overload
  208. def __init__(self) -> None: ...
  209. @_typing.overload
  210. def __init__(self, nr_feeds: int) -> None: ...
  211. @_typing.overload
  212. def apply(self, index: int, corner: cv2.typing.Point, image: cv2.typing.MatLike, mask: cv2.typing.MatLike) -> cv2.typing.MatLike: ...
  213. @_typing.overload
  214. def apply(self, index: int, corner: cv2.typing.Point, image: cv2.UMat, mask: cv2.UMat) -> cv2.UMat: ...
  215. def getMatGains(self, umv: _typing.Sequence[cv2.typing.MatLike] | None = ...) -> _typing.Sequence[cv2.typing.MatLike]: ...
  216. def setMatGains(self, umv: _typing.Sequence[cv2.typing.MatLike]) -> None: ...
  217. def setNrFeeds(self, nr_feeds: int) -> None: ...
  218. def getNrFeeds(self) -> int: ...
  219. def setSimilarityThreshold(self, similarity_threshold: float) -> None: ...
  220. def getSimilarityThreshold(self) -> float: ...
  221. class ChannelsCompensator(ExposureCompensator):
  222. # Functions
  223. def __init__(self, nr_feeds: int = ...) -> None: ...
  224. @_typing.overload
  225. def apply(self, index: int, corner: cv2.typing.Point, image: cv2.typing.MatLike, mask: cv2.typing.MatLike) -> cv2.typing.MatLike: ...
  226. @_typing.overload
  227. def apply(self, index: int, corner: cv2.typing.Point, image: cv2.UMat, mask: cv2.UMat) -> cv2.UMat: ...
  228. def getMatGains(self, umv: _typing.Sequence[cv2.typing.MatLike] | None = ...) -> _typing.Sequence[cv2.typing.MatLike]: ...
  229. def setMatGains(self, umv: _typing.Sequence[cv2.typing.MatLike]) -> None: ...
  230. def setNrFeeds(self, nr_feeds: int) -> None: ...
  231. def getNrFeeds(self) -> int: ...
  232. def setSimilarityThreshold(self, similarity_threshold: float) -> None: ...
  233. def getSimilarityThreshold(self) -> float: ...
  234. class BlocksCompensator(ExposureCompensator):
  235. # Functions
  236. @_typing.overload
  237. def apply(self, index: int, corner: cv2.typing.Point, image: cv2.typing.MatLike, mask: cv2.typing.MatLike) -> cv2.typing.MatLike: ...
  238. @_typing.overload
  239. def apply(self, index: int, corner: cv2.typing.Point, image: cv2.UMat, mask: cv2.UMat) -> cv2.UMat: ...
  240. def getMatGains(self, umv: _typing.Sequence[cv2.typing.MatLike] | None = ...) -> _typing.Sequence[cv2.typing.MatLike]: ...
  241. def setMatGains(self, umv: _typing.Sequence[cv2.typing.MatLike]) -> None: ...
  242. def setNrFeeds(self, nr_feeds: int) -> None: ...
  243. def getNrFeeds(self) -> int: ...
  244. def setSimilarityThreshold(self, similarity_threshold: float) -> None: ...
  245. def getSimilarityThreshold(self) -> float: ...
  246. @_typing.overload
  247. def setBlockSize(self, width: int, height: int) -> None: ...
  248. @_typing.overload
  249. def setBlockSize(self, size: cv2.typing.Size) -> None: ...
  250. def getBlockSize(self) -> cv2.typing.Size: ...
  251. def setNrGainsFilteringIterations(self, nr_iterations: int) -> None: ...
  252. def getNrGainsFilteringIterations(self) -> int: ...
  253. class BlocksGainCompensator(BlocksCompensator):
  254. # Functions
  255. @_typing.overload
  256. def __init__(self, bl_width: int = ..., bl_height: int = ...) -> None: ...
  257. @_typing.overload
  258. def __init__(self, bl_width: int, bl_height: int, nr_feeds: int) -> None: ...
  259. @_typing.overload
  260. def apply(self, index: int, corner: cv2.typing.Point, image: cv2.typing.MatLike, mask: cv2.typing.MatLike) -> cv2.typing.MatLike: ...
  261. @_typing.overload
  262. def apply(self, index: int, corner: cv2.typing.Point, image: cv2.UMat, mask: cv2.UMat) -> cv2.UMat: ...
  263. def getMatGains(self, umv: _typing.Sequence[cv2.typing.MatLike] | None = ...) -> _typing.Sequence[cv2.typing.MatLike]: ...
  264. def setMatGains(self, umv: _typing.Sequence[cv2.typing.MatLike]) -> None: ...
  265. class BlocksChannelsCompensator(BlocksCompensator):
  266. # Functions
  267. def __init__(self, bl_width: int = ..., bl_height: int = ..., nr_feeds: int = ...) -> None: ...
  268. class ImageFeatures:
  269. img_idx: int
  270. img_size: cv2.typing.Size
  271. keypoints: _typing.Sequence[cv2.KeyPoint]
  272. descriptors: cv2.UMat
  273. # Functions
  274. def getKeypoints(self) -> _typing.Sequence[cv2.KeyPoint]: ...
  275. class MatchesInfo:
  276. src_img_idx: int
  277. dst_img_idx: int
  278. matches: _typing.Sequence[cv2.DMatch]
  279. inliers_mask: numpy.ndarray[_typing.Any, numpy.dtype[numpy.uint8]]
  280. num_inliers: int
  281. H: cv2.typing.MatLike
  282. confidence: float
  283. # Functions
  284. def getMatches(self) -> _typing.Sequence[cv2.DMatch]: ...
  285. def getInliers(self) -> numpy.ndarray[_typing.Any, numpy.dtype[numpy.uint8]]: ...
  286. class FeaturesMatcher:
  287. # Functions
  288. def apply(self, features1: ImageFeatures, features2: ImageFeatures) -> MatchesInfo: ...
  289. def apply2(self, features: _typing.Sequence[ImageFeatures], mask: cv2.UMat | None = ...) -> _typing.Sequence[MatchesInfo]: ...
  290. def isThreadSafe(self) -> bool: ...
  291. def collectGarbage(self) -> None: ...
  292. class BestOf2NearestMatcher(FeaturesMatcher):
  293. # Functions
  294. def __init__(self, try_use_gpu: bool = ..., match_conf: float = ..., num_matches_thresh1: int = ..., num_matches_thresh2: int = ..., matches_confindece_thresh: float = ...) -> None: ...
  295. def collectGarbage(self) -> None: ...
  296. @classmethod
  297. def create(cls, try_use_gpu: bool = ..., match_conf: float = ..., num_matches_thresh1: int = ..., num_matches_thresh2: int = ..., matches_confindece_thresh: float = ...) -> BestOf2NearestMatcher: ...
  298. class BestOf2NearestRangeMatcher(BestOf2NearestMatcher):
  299. # Functions
  300. def __init__(self, range_width: int = ..., try_use_gpu: bool = ..., match_conf: float = ..., num_matches_thresh1: int = ..., num_matches_thresh2: int = ...) -> None: ...
  301. class AffineBestOf2NearestMatcher(BestOf2NearestMatcher):
  302. # Functions
  303. def __init__(self, full_affine: bool = ..., try_use_gpu: bool = ..., match_conf: float = ..., num_matches_thresh1: int = ...) -> None: ...
  304. class Estimator:
  305. # Functions
  306. def apply(self, features: _typing.Sequence[ImageFeatures], pairwise_matches: _typing.Sequence[MatchesInfo], cameras: _typing.Sequence[CameraParams]) -> tuple[bool, _typing.Sequence[CameraParams]]: ...
  307. class HomographyBasedEstimator(Estimator):
  308. # Functions
  309. def __init__(self, is_focals_estimated: bool = ...) -> None: ...
  310. class AffineBasedEstimator(Estimator):
  311. # Functions
  312. def __init__(self) -> None: ...
  313. class BundleAdjusterBase(Estimator):
  314. # Functions
  315. def refinementMask(self) -> cv2.typing.MatLike: ...
  316. def setRefinementMask(self, mask: cv2.typing.MatLike) -> None: ...
  317. def confThresh(self) -> float: ...
  318. def setConfThresh(self, conf_thresh: float) -> None: ...
  319. def termCriteria(self) -> cv2.typing.TermCriteria: ...
  320. def setTermCriteria(self, term_criteria: cv2.typing.TermCriteria) -> None: ...
  321. class NoBundleAdjuster(BundleAdjusterBase):
  322. # Functions
  323. def __init__(self) -> None: ...
  324. class BundleAdjusterReproj(BundleAdjusterBase):
  325. # Functions
  326. def __init__(self) -> None: ...
  327. class BundleAdjusterRay(BundleAdjusterBase):
  328. # Functions
  329. def __init__(self) -> None: ...
  330. class BundleAdjusterAffine(BundleAdjusterBase):
  331. # Functions
  332. def __init__(self) -> None: ...
  333. class BundleAdjusterAffinePartial(BundleAdjusterBase):
  334. # Functions
  335. def __init__(self) -> None: ...
  336. class SeamFinder:
  337. # Functions
  338. def find(self, src: _typing.Sequence[cv2.UMat], corners: _typing.Sequence[cv2.typing.Point], masks: _typing.Sequence[cv2.UMat]) -> _typing.Sequence[cv2.UMat]: ...
  339. @classmethod
  340. def createDefault(cls, type: int) -> SeamFinder: ...
  341. class NoSeamFinder(SeamFinder):
  342. # Functions
  343. def find(self, arg1: _typing.Sequence[cv2.UMat], arg2: _typing.Sequence[cv2.typing.Point], arg3: _typing.Sequence[cv2.UMat]) -> _typing.Sequence[cv2.UMat]: ...
  344. class PairwiseSeamFinder(SeamFinder):
  345. # Functions
  346. def find(self, src: _typing.Sequence[cv2.UMat], corners: _typing.Sequence[cv2.typing.Point], masks: _typing.Sequence[cv2.UMat]) -> _typing.Sequence[cv2.UMat]: ...
  347. class VoronoiSeamFinder(PairwiseSeamFinder):
  348. # Functions
  349. def find(self, src: _typing.Sequence[cv2.UMat], corners: _typing.Sequence[cv2.typing.Point], masks: _typing.Sequence[cv2.UMat]) -> _typing.Sequence[cv2.UMat]: ...
  350. class DpSeamFinder(SeamFinder):
  351. # Functions
  352. def __init__(self, costFunc: str) -> None: ...
  353. def setCostFunction(self, val: str) -> None: ...
  354. class GraphCutSeamFinder:
  355. # Functions
  356. def __init__(self, cost_type: str, terminal_cost: float = ..., bad_region_penalty: float = ...) -> None: ...
  357. def find(self, src: _typing.Sequence[cv2.UMat], corners: _typing.Sequence[cv2.typing.Point], masks: _typing.Sequence[cv2.UMat]) -> _typing.Sequence[cv2.UMat]: ...
  358. class Timelapser:
  359. # Functions
  360. @classmethod
  361. def createDefault(cls, type: int) -> Timelapser: ...
  362. def initialize(self, corners: _typing.Sequence[cv2.typing.Point], sizes: _typing.Sequence[cv2.typing.Size]) -> None: ...
  363. @_typing.overload
  364. def process(self, img: cv2.typing.MatLike, mask: cv2.typing.MatLike, tl: cv2.typing.Point) -> None: ...
  365. @_typing.overload
  366. def process(self, img: cv2.UMat, mask: cv2.UMat, tl: cv2.typing.Point) -> None: ...
  367. def getDst(self) -> cv2.UMat: ...
  368. class TimelapserCrop(Timelapser):
  369. ...
  370. class ProjectorBase:
  371. ...
  372. class SphericalProjector(ProjectorBase):
  373. # Functions
  374. def mapForward(self, x: float, y: float, u: float, v: float) -> None: ...
  375. def mapBackward(self, u: float, v: float, x: float, y: float) -> None: ...
  376. # Functions
  377. def calibrateRotatingCamera(Hs: _typing.Sequence[cv2.typing.MatLike], K: cv2.typing.MatLike | None = ...) -> tuple[bool, cv2.typing.MatLike]: ...
  378. @_typing.overload
  379. def computeImageFeatures(featuresFinder: cv2.Feature2D, images: _typing.Sequence[cv2.typing.MatLike], masks: _typing.Sequence[cv2.typing.MatLike] | None = ...) -> _typing.Sequence[ImageFeatures]: ...
  380. @_typing.overload
  381. def computeImageFeatures(featuresFinder: cv2.Feature2D, images: _typing.Sequence[cv2.UMat], masks: _typing.Sequence[cv2.UMat] | None = ...) -> _typing.Sequence[ImageFeatures]: ...
  382. @_typing.overload
  383. def computeImageFeatures2(featuresFinder: cv2.Feature2D, image: cv2.typing.MatLike, mask: cv2.typing.MatLike | None = ...) -> ImageFeatures: ...
  384. @_typing.overload
  385. def computeImageFeatures2(featuresFinder: cv2.Feature2D, image: cv2.UMat, mask: cv2.UMat | None = ...) -> ImageFeatures: ...
  386. @_typing.overload
  387. def createLaplacePyr(img: cv2.typing.MatLike, num_levels: int, pyr: _typing.Sequence[cv2.UMat]) -> _typing.Sequence[cv2.UMat]: ...
  388. @_typing.overload
  389. def createLaplacePyr(img: cv2.UMat, num_levels: int, pyr: _typing.Sequence[cv2.UMat]) -> _typing.Sequence[cv2.UMat]: ...
  390. @_typing.overload
  391. def createLaplacePyrGpu(img: cv2.typing.MatLike, num_levels: int, pyr: _typing.Sequence[cv2.UMat]) -> _typing.Sequence[cv2.UMat]: ...
  392. @_typing.overload
  393. def createLaplacePyrGpu(img: cv2.UMat, num_levels: int, pyr: _typing.Sequence[cv2.UMat]) -> _typing.Sequence[cv2.UMat]: ...
  394. @_typing.overload
  395. def createWeightMap(mask: cv2.typing.MatLike, sharpness: float, weight: cv2.typing.MatLike) -> cv2.typing.MatLike: ...
  396. @_typing.overload
  397. def createWeightMap(mask: cv2.UMat, sharpness: float, weight: cv2.UMat) -> cv2.UMat: ...
  398. def focalsFromHomography(H: cv2.typing.MatLike, f0: float, f1: float, f0_ok: bool, f1_ok: bool) -> None: ...
  399. def leaveBiggestComponent(features: _typing.Sequence[ImageFeatures], pairwise_matches: _typing.Sequence[MatchesInfo], conf_threshold: float) -> _typing.Sequence[int]: ...
  400. def matchesGraphAsString(paths: _typing.Sequence[str], pairwise_matches: _typing.Sequence[MatchesInfo], conf_threshold: float) -> str: ...
  401. @_typing.overload
  402. def normalizeUsingWeightMap(weight: cv2.typing.MatLike, src: cv2.typing.MatLike) -> cv2.typing.MatLike: ...
  403. @_typing.overload
  404. def normalizeUsingWeightMap(weight: cv2.UMat, src: cv2.UMat) -> cv2.UMat: ...
  405. def overlapRoi(tl1: cv2.typing.Point, tl2: cv2.typing.Point, sz1: cv2.typing.Size, sz2: cv2.typing.Size, roi: cv2.typing.Rect) -> bool: ...
  406. def restoreImageFromLaplacePyr(pyr: _typing.Sequence[cv2.UMat]) -> _typing.Sequence[cv2.UMat]: ...
  407. def restoreImageFromLaplacePyrGpu(pyr: _typing.Sequence[cv2.UMat]) -> _typing.Sequence[cv2.UMat]: ...
  408. @_typing.overload
  409. def resultRoi(corners: _typing.Sequence[cv2.typing.Point], images: _typing.Sequence[cv2.UMat]) -> cv2.typing.Rect: ...
  410. @_typing.overload
  411. def resultRoi(corners: _typing.Sequence[cv2.typing.Point], sizes: _typing.Sequence[cv2.typing.Size]) -> cv2.typing.Rect: ...
  412. def resultRoiIntersection(corners: _typing.Sequence[cv2.typing.Point], sizes: _typing.Sequence[cv2.typing.Size]) -> cv2.typing.Rect: ...
  413. def resultTl(corners: _typing.Sequence[cv2.typing.Point]) -> cv2.typing.Point: ...
  414. def selectRandomSubset(count: int, size: int, subset: _typing.Sequence[int]) -> None: ...
  415. def stitchingLogLevel() -> int: ...
  416. @_typing.overload
  417. def strip(params: cv2.gapi.ie.PyParams) -> cv2.gapi.GNetParam: ...
  418. @_typing.overload
  419. def strip(params: cv2.gapi.onnx.PyParams) -> cv2.gapi.GNetParam: ...
  420. @_typing.overload
  421. def strip(params: cv2.gapi.ov.PyParams) -> cv2.gapi.GNetParam: ...
  422. def waveCorrect(rmats: _typing.Sequence[cv2.typing.MatLike], kind: WaveCorrectKind) -> _typing.Sequence[cv2.typing.MatLike]: ...