__init__.pyi 22 KB

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