opencv-contrib-python 4.13.0.90__cp37-abi3-macosx_14_0_x86_64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- cv2/.dylibs/libaom.3.13.1.dylib +0 -0
- cv2/.dylibs/libavif.16.3.0.dylib +0 -0
- cv2/.dylibs/libdav1d.7.dylib +0 -0
- cv2/.dylibs/libvmaf.3.dylib +0 -0
- cv2/Error/__init__.pyi +118 -0
- cv2/LICENSE-3RD-PARTY.txt +3513 -0
- cv2/LICENSE.txt +21 -0
- cv2/__init__.py +181 -0
- cv2/__init__.pyi +6858 -0
- cv2/aruco/__init__.pyi +410 -0
- cv2/barcode/__init__.pyi +40 -0
- cv2/bgsegm/__init__.pyi +202 -0
- cv2/bioinspired/__init__.pyi +121 -0
- cv2/ccm/__init__.pyi +167 -0
- cv2/colored_kinfu/__init__.pyi +96 -0
- cv2/config-3.py +24 -0
- cv2/config.py +5 -0
- cv2/cuda/__init__.pyi +553 -0
- cv2/cv2.abi3.so +0 -0
- cv2/data/__init__.py +3 -0
- cv2/data/haarcascade_eye.xml +12213 -0
- cv2/data/haarcascade_eye_tree_eyeglasses.xml +22619 -0
- cv2/data/haarcascade_frontalcatface.xml +14382 -0
- cv2/data/haarcascade_frontalcatface_extended.xml +13394 -0
- cv2/data/haarcascade_frontalface_alt.xml +24350 -0
- cv2/data/haarcascade_frontalface_alt2.xml +20719 -0
- cv2/data/haarcascade_frontalface_alt_tree.xml +96484 -0
- cv2/data/haarcascade_frontalface_default.xml +33314 -0
- cv2/data/haarcascade_fullbody.xml +17030 -0
- cv2/data/haarcascade_lefteye_2splits.xml +7390 -0
- cv2/data/haarcascade_license_plate_rus_16stages.xml +1404 -0
- cv2/data/haarcascade_lowerbody.xml +14056 -0
- cv2/data/haarcascade_profileface.xml +29690 -0
- cv2/data/haarcascade_righteye_2splits.xml +7407 -0
- cv2/data/haarcascade_russian_plate_number.xml +2656 -0
- cv2/data/haarcascade_smile.xml +6729 -0
- cv2/data/haarcascade_upperbody.xml +28134 -0
- cv2/datasets/__init__.pyi +80 -0
- cv2/detail/__init__.pyi +627 -0
- cv2/dnn/__init__.pyi +549 -0
- cv2/dnn_superres/__init__.pyi +37 -0
- cv2/dpm/__init__.pyi +10 -0
- cv2/dynafu/__init__.pyi +43 -0
- cv2/face/__init__.pyi +220 -0
- cv2/fisheye/__init__.pyi +88 -0
- cv2/flann/__init__.pyi +65 -0
- cv2/ft/__init__.pyi +98 -0
- cv2/gapi/__init__.py +323 -0
- cv2/gapi/__init__.pyi +349 -0
- cv2/gapi/core/__init__.pyi +7 -0
- cv2/gapi/core/cpu/__init__.pyi +9 -0
- cv2/gapi/core/fluid/__init__.pyi +9 -0
- cv2/gapi/core/ocl/__init__.pyi +9 -0
- cv2/gapi/ie/__init__.pyi +51 -0
- cv2/gapi/ie/detail/__init__.pyi +12 -0
- cv2/gapi/imgproc/__init__.pyi +5 -0
- cv2/gapi/imgproc/fluid/__init__.pyi +9 -0
- cv2/gapi/oak/__init__.pyi +37 -0
- cv2/gapi/onnx/__init__.pyi +55 -0
- cv2/gapi/onnx/ep/__init__.pyi +63 -0
- cv2/gapi/ot/__init__.pyi +32 -0
- cv2/gapi/ot/cpu/__init__.pyi +9 -0
- cv2/gapi/ov/__init__.pyi +74 -0
- cv2/gapi/own/__init__.pyi +5 -0
- cv2/gapi/own/detail/__init__.pyi +10 -0
- cv2/gapi/render/__init__.pyi +5 -0
- cv2/gapi/render/ocv/__init__.pyi +9 -0
- cv2/gapi/streaming/__init__.pyi +42 -0
- cv2/gapi/video/__init__.pyi +10 -0
- cv2/gapi/wip/__init__.pyi +43 -0
- cv2/gapi/wip/draw/__init__.pyi +119 -0
- cv2/gapi/wip/gst/__init__.pyi +17 -0
- cv2/gapi/wip/onevpl/__init__.pyi +16 -0
- cv2/hfs/__init__.pyi +53 -0
- cv2/img_hash/__init__.pyi +116 -0
- cv2/instr/__init__.pyi +24 -0
- cv2/intensity_transform/__init__.pyi +27 -0
- cv2/ipp/__init__.pyi +14 -0
- cv2/kinfu/__init__.pyi +133 -0
- cv2/kinfu/detail/__init__.pyi +7 -0
- cv2/large_kinfu/__init__.pyi +73 -0
- cv2/legacy/__init__.pyi +93 -0
- cv2/line_descriptor/__init__.pyi +112 -0
- cv2/linemod/__init__.pyi +151 -0
- cv2/load_config_py2.py +6 -0
- cv2/load_config_py3.py +9 -0
- cv2/mat_wrapper/__init__.py +40 -0
- cv2/mcc/__init__.pyi +109 -0
- cv2/misc/__init__.py +1 -0
- cv2/misc/version.py +5 -0
- cv2/ml/__init__.pyi +696 -0
- cv2/motempl/__init__.pyi +29 -0
- cv2/multicalib/__init__.pyi +10 -0
- cv2/ocl/__init__.pyi +252 -0
- cv2/ogl/__init__.pyi +51 -0
- cv2/omnidir/__init__.pyi +68 -0
- cv2/optflow/__init__.pyi +286 -0
- cv2/parallel/__init__.pyi +6 -0
- cv2/phase_unwrapping/__init__.pyi +41 -0
- cv2/plot/__init__.pyi +64 -0
- cv2/ppf_match_3d/__init__.pyi +91 -0
- cv2/py.typed +0 -0
- cv2/quality/__init__.pyi +149 -0
- cv2/rapid/__init__.pyi +91 -0
- cv2/reg/__init__.pyi +210 -0
- cv2/rgbd/__init__.pyi +449 -0
- cv2/saliency/__init__.pyi +117 -0
- cv2/samples/__init__.pyi +12 -0
- cv2/segmentation/__init__.pyi +39 -0
- cv2/signal/__init__.pyi +14 -0
- cv2/stereo/__init__.pyi +88 -0
- cv2/structured_light/__init__.pyi +94 -0
- cv2/text/__init__.pyi +204 -0
- cv2/typing/__init__.py +180 -0
- cv2/utils/__init__.py +14 -0
- cv2/utils/__init__.pyi +110 -0
- cv2/utils/fs/__init__.pyi +6 -0
- cv2/utils/logging/__init__.pyi +22 -0
- cv2/utils/nested/__init__.pyi +31 -0
- cv2/version.py +5 -0
- cv2/videoio_registry/__init__.pyi +31 -0
- cv2/videostab/__init__.pyi +16 -0
- cv2/wechat_qrcode/__init__.pyi +23 -0
- cv2/xfeatures2d/__init__.pyi +537 -0
- cv2/ximgproc/__init__.pyi +746 -0
- cv2/ximgproc/segmentation/__init__.pyi +116 -0
- cv2/xphoto/__init__.pyi +142 -0
- opencv_contrib_python-4.13.0.90.dist-info/LICENSE-3RD-PARTY.txt +3513 -0
- opencv_contrib_python-4.13.0.90.dist-info/LICENSE.txt +21 -0
- opencv_contrib_python-4.13.0.90.dist-info/METADATA +300 -0
- opencv_contrib_python-4.13.0.90.dist-info/RECORD +133 -0
- opencv_contrib_python-4.13.0.90.dist-info/WHEEL +6 -0
- opencv_contrib_python-4.13.0.90.dist-info/top_level.txt +1 -0
cv2/hfs/__init__.pyi
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
__all__: list[str] = []
|
|
2
|
+
|
|
3
|
+
import cv2
|
|
4
|
+
import cv2.typing
|
|
5
|
+
import typing as _typing
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
# Classes
|
|
9
|
+
class HfsSegment(cv2.Algorithm):
|
|
10
|
+
# Functions
|
|
11
|
+
def setSegEgbThresholdI(self, c: float) -> None: ...
|
|
12
|
+
|
|
13
|
+
def getSegEgbThresholdI(self) -> float: ...
|
|
14
|
+
|
|
15
|
+
def setMinRegionSizeI(self, n: int) -> None: ...
|
|
16
|
+
|
|
17
|
+
def getMinRegionSizeI(self) -> int: ...
|
|
18
|
+
|
|
19
|
+
def setSegEgbThresholdII(self, c: float) -> None: ...
|
|
20
|
+
|
|
21
|
+
def getSegEgbThresholdII(self) -> float: ...
|
|
22
|
+
|
|
23
|
+
def setMinRegionSizeII(self, n: int) -> None: ...
|
|
24
|
+
|
|
25
|
+
def getMinRegionSizeII(self) -> int: ...
|
|
26
|
+
|
|
27
|
+
def setSpatialWeight(self, w: float) -> None: ...
|
|
28
|
+
|
|
29
|
+
def getSpatialWeight(self) -> float: ...
|
|
30
|
+
|
|
31
|
+
def setSlicSpixelSize(self, n: int) -> None: ...
|
|
32
|
+
|
|
33
|
+
def getSlicSpixelSize(self) -> int: ...
|
|
34
|
+
|
|
35
|
+
def setNumSlicIter(self, n: int) -> None: ...
|
|
36
|
+
|
|
37
|
+
def getNumSlicIter(self) -> int: ...
|
|
38
|
+
|
|
39
|
+
@_typing.overload
|
|
40
|
+
def performSegmentGpu(self, src: cv2.typing.MatLike, ifDraw: bool = ...) -> cv2.typing.MatLike: ...
|
|
41
|
+
@_typing.overload
|
|
42
|
+
def performSegmentGpu(self, src: cv2.UMat, ifDraw: bool = ...) -> cv2.typing.MatLike: ...
|
|
43
|
+
|
|
44
|
+
@_typing.overload
|
|
45
|
+
def performSegmentCpu(self, src: cv2.typing.MatLike, ifDraw: bool = ...) -> cv2.typing.MatLike: ...
|
|
46
|
+
@_typing.overload
|
|
47
|
+
def performSegmentCpu(self, src: cv2.UMat, ifDraw: bool = ...) -> cv2.typing.MatLike: ...
|
|
48
|
+
|
|
49
|
+
@classmethod
|
|
50
|
+
def create(cls, height: int, width: int, segEgbThresholdI: float = ..., minRegionSizeI: int = ..., segEgbThresholdII: float = ..., minRegionSizeII: int = ..., spatialWeight: float = ..., slicSpixelSize: int = ..., numSlicIter: int = ...) -> HfsSegment: ...
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
__all__: list[str] = []
|
|
2
|
+
|
|
3
|
+
import cv2
|
|
4
|
+
import cv2.typing
|
|
5
|
+
import typing as _typing
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
# Enumerations
|
|
9
|
+
BLOCK_MEAN_HASH_MODE_0: int
|
|
10
|
+
BLOCK_MEAN_HASH_MODE_1: int
|
|
11
|
+
BlockMeanHashMode = int
|
|
12
|
+
"""One of [BLOCK_MEAN_HASH_MODE_0, BLOCK_MEAN_HASH_MODE_1]"""
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
# Classes
|
|
17
|
+
class AverageHash(ImgHashBase):
|
|
18
|
+
# Functions
|
|
19
|
+
@classmethod
|
|
20
|
+
def create(cls) -> AverageHash: ...
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class ImgHashBase(cv2.Algorithm):
|
|
24
|
+
# Functions
|
|
25
|
+
@_typing.overload
|
|
26
|
+
def compute(self, inputArr: cv2.typing.MatLike, outputArr: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
|
|
27
|
+
@_typing.overload
|
|
28
|
+
def compute(self, inputArr: cv2.UMat, outputArr: cv2.UMat | None = ...) -> cv2.UMat: ...
|
|
29
|
+
|
|
30
|
+
@_typing.overload
|
|
31
|
+
def compare(self, hashOne: cv2.typing.MatLike, hashTwo: cv2.typing.MatLike) -> float: ...
|
|
32
|
+
@_typing.overload
|
|
33
|
+
def compare(self, hashOne: cv2.UMat, hashTwo: cv2.UMat) -> float: ...
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
class BlockMeanHash(ImgHashBase):
|
|
37
|
+
# Functions
|
|
38
|
+
def setMode(self, mode: int) -> None: ...
|
|
39
|
+
|
|
40
|
+
def getMean(self) -> _typing.Sequence[float]: ...
|
|
41
|
+
|
|
42
|
+
@classmethod
|
|
43
|
+
def create(cls, mode: int = ...) -> BlockMeanHash: ...
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
class ColorMomentHash(ImgHashBase):
|
|
47
|
+
# Functions
|
|
48
|
+
@classmethod
|
|
49
|
+
def create(cls) -> ColorMomentHash: ...
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
class MarrHildrethHash(ImgHashBase):
|
|
53
|
+
# Functions
|
|
54
|
+
def getAlpha(self) -> float: ...
|
|
55
|
+
|
|
56
|
+
def getScale(self) -> float: ...
|
|
57
|
+
|
|
58
|
+
def setKernelParam(self, alpha: float, scale: float) -> None: ...
|
|
59
|
+
|
|
60
|
+
@classmethod
|
|
61
|
+
def create(cls, alpha: float = ..., scale: float = ...) -> MarrHildrethHash: ...
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
class PHash(ImgHashBase):
|
|
65
|
+
# Functions
|
|
66
|
+
@classmethod
|
|
67
|
+
def create(cls) -> PHash: ...
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
class RadialVarianceHash(ImgHashBase):
|
|
71
|
+
# Functions
|
|
72
|
+
@classmethod
|
|
73
|
+
def create(cls, sigma: float = ..., numOfAngleLine: int = ...) -> RadialVarianceHash: ...
|
|
74
|
+
|
|
75
|
+
def getNumOfAngleLine(self) -> int: ...
|
|
76
|
+
|
|
77
|
+
def getSigma(self) -> float: ...
|
|
78
|
+
|
|
79
|
+
def setNumOfAngleLine(self, value: int) -> None: ...
|
|
80
|
+
|
|
81
|
+
def setSigma(self, value: float) -> None: ...
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
# Functions
|
|
86
|
+
@_typing.overload
|
|
87
|
+
def averageHash(inputArr: cv2.typing.MatLike, outputArr: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
|
|
88
|
+
@_typing.overload
|
|
89
|
+
def averageHash(inputArr: cv2.UMat, outputArr: cv2.UMat | None = ...) -> cv2.UMat: ...
|
|
90
|
+
|
|
91
|
+
@_typing.overload
|
|
92
|
+
def blockMeanHash(inputArr: cv2.typing.MatLike, outputArr: cv2.typing.MatLike | None = ..., mode: int = ...) -> cv2.typing.MatLike: ...
|
|
93
|
+
@_typing.overload
|
|
94
|
+
def blockMeanHash(inputArr: cv2.UMat, outputArr: cv2.UMat | None = ..., mode: int = ...) -> cv2.UMat: ...
|
|
95
|
+
|
|
96
|
+
@_typing.overload
|
|
97
|
+
def colorMomentHash(inputArr: cv2.typing.MatLike, outputArr: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
|
|
98
|
+
@_typing.overload
|
|
99
|
+
def colorMomentHash(inputArr: cv2.UMat, outputArr: cv2.UMat | None = ...) -> cv2.UMat: ...
|
|
100
|
+
|
|
101
|
+
@_typing.overload
|
|
102
|
+
def marrHildrethHash(inputArr: cv2.typing.MatLike, outputArr: cv2.typing.MatLike | None = ..., alpha: float = ..., scale: float = ...) -> cv2.typing.MatLike: ...
|
|
103
|
+
@_typing.overload
|
|
104
|
+
def marrHildrethHash(inputArr: cv2.UMat, outputArr: cv2.UMat | None = ..., alpha: float = ..., scale: float = ...) -> cv2.UMat: ...
|
|
105
|
+
|
|
106
|
+
@_typing.overload
|
|
107
|
+
def pHash(inputArr: cv2.typing.MatLike, outputArr: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
|
|
108
|
+
@_typing.overload
|
|
109
|
+
def pHash(inputArr: cv2.UMat, outputArr: cv2.UMat | None = ...) -> cv2.UMat: ...
|
|
110
|
+
|
|
111
|
+
@_typing.overload
|
|
112
|
+
def radialVarianceHash(inputArr: cv2.typing.MatLike, outputArr: cv2.typing.MatLike | None = ..., sigma: float = ..., numOfAngleLine: int = ...) -> cv2.typing.MatLike: ...
|
|
113
|
+
@_typing.overload
|
|
114
|
+
def radialVarianceHash(inputArr: cv2.UMat, outputArr: cv2.UMat | None = ..., sigma: float = ..., numOfAngleLine: int = ...) -> cv2.UMat: ...
|
|
115
|
+
|
|
116
|
+
|
cv2/instr/__init__.pyi
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
__all__: list[str] = []
|
|
2
|
+
|
|
3
|
+
# Enumerations
|
|
4
|
+
TYPE_GENERAL: int
|
|
5
|
+
TYPE_MARKER: int
|
|
6
|
+
TYPE_WRAPPER: int
|
|
7
|
+
TYPE_FUN: int
|
|
8
|
+
TYPE = int
|
|
9
|
+
"""One of [TYPE_GENERAL, TYPE_MARKER, TYPE_WRAPPER, TYPE_FUN]"""
|
|
10
|
+
|
|
11
|
+
IMPL_PLAIN: int
|
|
12
|
+
IMPL_IPP: int
|
|
13
|
+
IMPL_OPENCL: int
|
|
14
|
+
IMPL = int
|
|
15
|
+
"""One of [IMPL_PLAIN, IMPL_IPP, IMPL_OPENCL]"""
|
|
16
|
+
|
|
17
|
+
FLAGS_NONE: int
|
|
18
|
+
FLAGS_MAPPING: int
|
|
19
|
+
FLAGS_EXPAND_SAME_NAMES: int
|
|
20
|
+
FLAGS = int
|
|
21
|
+
"""One of [FLAGS_NONE, FLAGS_MAPPING, FLAGS_EXPAND_SAME_NAMES]"""
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
__all__: list[str] = []
|
|
2
|
+
|
|
3
|
+
import cv2
|
|
4
|
+
import cv2.typing
|
|
5
|
+
import typing as _typing
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
# Functions
|
|
9
|
+
@_typing.overload
|
|
10
|
+
def BIMEF(input: cv2.typing.MatLike, output: cv2.typing.MatLike | None = ..., mu: float = ..., a: float = ..., b: float = ...) -> cv2.typing.MatLike: ...
|
|
11
|
+
@_typing.overload
|
|
12
|
+
def BIMEF(input: cv2.UMat, output: cv2.UMat | None = ..., mu: float = ..., a: float = ..., b: float = ...) -> cv2.UMat: ...
|
|
13
|
+
|
|
14
|
+
@_typing.overload
|
|
15
|
+
def BIMEF2(input: cv2.typing.MatLike, k: float, mu: float, a: float, b: float, output: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
|
|
16
|
+
@_typing.overload
|
|
17
|
+
def BIMEF2(input: cv2.UMat, k: float, mu: float, a: float, b: float, output: cv2.UMat | None = ...) -> cv2.UMat: ...
|
|
18
|
+
|
|
19
|
+
def autoscaling(input: cv2.typing.MatLike, output: cv2.typing.MatLike) -> None: ...
|
|
20
|
+
|
|
21
|
+
def contrastStretching(input: cv2.typing.MatLike, output: cv2.typing.MatLike, r1: int, s1: int, r2: int, s2: int) -> None: ...
|
|
22
|
+
|
|
23
|
+
def gammaCorrection(input: cv2.typing.MatLike, output: cv2.typing.MatLike, gamma: float) -> None: ...
|
|
24
|
+
|
|
25
|
+
def logTransform(input: cv2.typing.MatLike, output: cv2.typing.MatLike) -> None: ...
|
|
26
|
+
|
|
27
|
+
|
cv2/ipp/__init__.pyi
ADDED
cv2/kinfu/__init__.pyi
ADDED
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
__all__: list[str] = []
|
|
2
|
+
|
|
3
|
+
import cv2
|
|
4
|
+
import cv2.typing
|
|
5
|
+
import typing as _typing
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
from cv2.kinfu import detail as detail
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
# Enumerations
|
|
12
|
+
VolumeType_TSDF: int
|
|
13
|
+
VOLUME_TYPE_TSDF: int
|
|
14
|
+
VolumeType_HASHTSDF: int
|
|
15
|
+
VOLUME_TYPE_HASHTSDF: int
|
|
16
|
+
VolumeType_COLOREDTSDF: int
|
|
17
|
+
VOLUME_TYPE_COLOREDTSDF: int
|
|
18
|
+
VolumeType = int
|
|
19
|
+
"""One of [VolumeType_TSDF, VOLUME_TYPE_TSDF, VolumeType_HASHTSDF, VOLUME_TYPE_HASHTSDF, VolumeType_COLOREDTSDF, VOLUME_TYPE_COLOREDTSDF]"""
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
# Classes
|
|
24
|
+
class Params:
|
|
25
|
+
frameSize: cv2.typing.Size
|
|
26
|
+
volumeType: VolumeType
|
|
27
|
+
intr: cv2.typing.Matx33f
|
|
28
|
+
rgb_intr: cv2.typing.Matx33f
|
|
29
|
+
depthFactor: float
|
|
30
|
+
bilateral_sigma_depth: float
|
|
31
|
+
bilateral_sigma_spatial: float
|
|
32
|
+
bilateral_kernel_size: int
|
|
33
|
+
pyramidLevels: int
|
|
34
|
+
volumeDims: cv2.typing.Vec3i
|
|
35
|
+
voxelSize: float
|
|
36
|
+
tsdf_min_camera_movement: float
|
|
37
|
+
tsdf_trunc_dist: float
|
|
38
|
+
tsdf_max_weight: int
|
|
39
|
+
raycast_step_factor: float
|
|
40
|
+
lightPose: cv2.typing.Vec3f
|
|
41
|
+
icpDistThresh: float
|
|
42
|
+
icpAngleThresh: float
|
|
43
|
+
icpIterations: _typing.Sequence[int]
|
|
44
|
+
truncateThreshold: float
|
|
45
|
+
|
|
46
|
+
# Functions
|
|
47
|
+
@_typing.overload
|
|
48
|
+
def __init__(self) -> None: ...
|
|
49
|
+
@_typing.overload
|
|
50
|
+
def __init__(self, volumeInitialPoseRot: cv2.typing.Matx33f, volumeInitialPoseTransl: cv2.typing.Vec3f) -> None: ...
|
|
51
|
+
@_typing.overload
|
|
52
|
+
def __init__(self, volumeInitialPose: cv2.typing.Matx44f) -> None: ...
|
|
53
|
+
|
|
54
|
+
@_typing.overload
|
|
55
|
+
def setInitialVolumePose(self, R: cv2.typing.Matx33f, t: cv2.typing.Vec3f) -> None: ...
|
|
56
|
+
@_typing.overload
|
|
57
|
+
def setInitialVolumePose(self, homogen_tf: cv2.typing.Matx44f) -> None: ...
|
|
58
|
+
|
|
59
|
+
@classmethod
|
|
60
|
+
def defaultParams(cls) -> Params: ...
|
|
61
|
+
|
|
62
|
+
@classmethod
|
|
63
|
+
def coarseParams(cls) -> Params: ...
|
|
64
|
+
|
|
65
|
+
@classmethod
|
|
66
|
+
def hashTSDFParams(cls, isCoarse: bool) -> Params: ...
|
|
67
|
+
|
|
68
|
+
@classmethod
|
|
69
|
+
def coloredTSDFParams(cls, isCoarse: bool) -> Params: ...
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
class KinFu:
|
|
73
|
+
# Functions
|
|
74
|
+
@classmethod
|
|
75
|
+
def create(cls, _params: Params) -> KinFu: ...
|
|
76
|
+
|
|
77
|
+
@_typing.overload
|
|
78
|
+
def render(self, image: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
|
|
79
|
+
@_typing.overload
|
|
80
|
+
def render(self, image: cv2.UMat | None = ...) -> cv2.UMat: ...
|
|
81
|
+
@_typing.overload
|
|
82
|
+
def render(self, cameraPose: cv2.typing.Matx44f, image: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
|
|
83
|
+
@_typing.overload
|
|
84
|
+
def render(self, cameraPose: cv2.typing.Matx44f, image: cv2.UMat | None = ...) -> cv2.UMat: ...
|
|
85
|
+
|
|
86
|
+
@_typing.overload
|
|
87
|
+
def getCloud(self, points: cv2.typing.MatLike | None = ..., normals: cv2.typing.MatLike | None = ...) -> tuple[cv2.typing.MatLike, cv2.typing.MatLike]: ...
|
|
88
|
+
@_typing.overload
|
|
89
|
+
def getCloud(self, points: cv2.UMat | None = ..., normals: cv2.UMat | None = ...) -> tuple[cv2.UMat, cv2.UMat]: ...
|
|
90
|
+
|
|
91
|
+
@_typing.overload
|
|
92
|
+
def getPoints(self, points: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
|
|
93
|
+
@_typing.overload
|
|
94
|
+
def getPoints(self, points: cv2.UMat | None = ...) -> cv2.UMat: ...
|
|
95
|
+
|
|
96
|
+
@_typing.overload
|
|
97
|
+
def getNormals(self, points: cv2.typing.MatLike, normals: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
|
|
98
|
+
@_typing.overload
|
|
99
|
+
def getNormals(self, points: cv2.UMat, normals: cv2.UMat | None = ...) -> cv2.UMat: ...
|
|
100
|
+
|
|
101
|
+
def reset(self) -> None: ...
|
|
102
|
+
|
|
103
|
+
@_typing.overload
|
|
104
|
+
def update(self, depth: cv2.typing.MatLike) -> bool: ...
|
|
105
|
+
@_typing.overload
|
|
106
|
+
def update(self, depth: cv2.UMat) -> bool: ...
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
class Volume:
|
|
110
|
+
...
|
|
111
|
+
|
|
112
|
+
class VolumeParams:
|
|
113
|
+
type: VolumeType
|
|
114
|
+
resolution: cv2.typing.Vec3i
|
|
115
|
+
voxelSize: float
|
|
116
|
+
tsdfTruncDist: float
|
|
117
|
+
maxWeight: int
|
|
118
|
+
depthTruncThreshold: float
|
|
119
|
+
raycastStepFactor: float
|
|
120
|
+
|
|
121
|
+
# Functions
|
|
122
|
+
@classmethod
|
|
123
|
+
def defaultParams(cls, _volumeType: VolumeType) -> VolumeParams: ...
|
|
124
|
+
|
|
125
|
+
@classmethod
|
|
126
|
+
def coarseParams(cls, _volumeType: VolumeType) -> VolumeParams: ...
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
# Functions
|
|
131
|
+
def makeVolume(_volumeType: VolumeType, _voxelSize: float, _pose: cv2.typing.Matx44f, _raycastStepFactor: float, _truncDist: float, _maxWeight: int, _truncateThreshold: float, _resolution: cv2.typing.Vec3i) -> Volume: ...
|
|
132
|
+
|
|
133
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
__all__: list[str] = []
|
|
2
|
+
|
|
3
|
+
import cv2
|
|
4
|
+
import cv2.typing
|
|
5
|
+
import typing as _typing
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
# Classes
|
|
9
|
+
class Params:
|
|
10
|
+
frameSize: cv2.typing.Size
|
|
11
|
+
intr: cv2.typing.Matx33f
|
|
12
|
+
rgb_intr: cv2.typing.Matx33f
|
|
13
|
+
depthFactor: float
|
|
14
|
+
bilateral_sigma_depth: float
|
|
15
|
+
bilateral_sigma_spatial: float
|
|
16
|
+
bilateral_kernel_size: int
|
|
17
|
+
pyramidLevels: int
|
|
18
|
+
tsdf_min_camera_movement: float
|
|
19
|
+
lightPose: cv2.typing.Vec3f
|
|
20
|
+
icpDistThresh: float
|
|
21
|
+
icpAngleThresh: float
|
|
22
|
+
icpIterations: _typing.Sequence[int]
|
|
23
|
+
truncateThreshold: float
|
|
24
|
+
|
|
25
|
+
# Functions
|
|
26
|
+
@classmethod
|
|
27
|
+
def defaultParams(cls) -> Params: ...
|
|
28
|
+
|
|
29
|
+
@classmethod
|
|
30
|
+
def coarseParams(cls) -> Params: ...
|
|
31
|
+
|
|
32
|
+
@classmethod
|
|
33
|
+
def hashTSDFParams(cls, isCoarse: bool) -> Params: ...
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
class LargeKinfu:
|
|
37
|
+
# Functions
|
|
38
|
+
@classmethod
|
|
39
|
+
def create(cls, _params: Params) -> LargeKinfu: ...
|
|
40
|
+
|
|
41
|
+
@_typing.overload
|
|
42
|
+
def render(self, image: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
|
|
43
|
+
@_typing.overload
|
|
44
|
+
def render(self, image: cv2.UMat | None = ...) -> cv2.UMat: ...
|
|
45
|
+
@_typing.overload
|
|
46
|
+
def render(self, cameraPose: cv2.typing.Matx44f, image: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
|
|
47
|
+
@_typing.overload
|
|
48
|
+
def render(self, cameraPose: cv2.typing.Matx44f, image: cv2.UMat | None = ...) -> cv2.UMat: ...
|
|
49
|
+
|
|
50
|
+
@_typing.overload
|
|
51
|
+
def getCloud(self, points: cv2.typing.MatLike | None = ..., normals: cv2.typing.MatLike | None = ...) -> tuple[cv2.typing.MatLike, cv2.typing.MatLike]: ...
|
|
52
|
+
@_typing.overload
|
|
53
|
+
def getCloud(self, points: cv2.UMat | None = ..., normals: cv2.UMat | None = ...) -> tuple[cv2.UMat, cv2.UMat]: ...
|
|
54
|
+
|
|
55
|
+
@_typing.overload
|
|
56
|
+
def getPoints(self, points: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
|
|
57
|
+
@_typing.overload
|
|
58
|
+
def getPoints(self, points: cv2.UMat | None = ...) -> cv2.UMat: ...
|
|
59
|
+
|
|
60
|
+
@_typing.overload
|
|
61
|
+
def getNormals(self, points: cv2.typing.MatLike, normals: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
|
|
62
|
+
@_typing.overload
|
|
63
|
+
def getNormals(self, points: cv2.UMat, normals: cv2.UMat | None = ...) -> cv2.UMat: ...
|
|
64
|
+
|
|
65
|
+
def reset(self) -> None: ...
|
|
66
|
+
|
|
67
|
+
@_typing.overload
|
|
68
|
+
def update(self, depth: cv2.typing.MatLike) -> bool: ...
|
|
69
|
+
@_typing.overload
|
|
70
|
+
def update(self, depth: cv2.UMat) -> bool: ...
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
cv2/legacy/__init__.pyi
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
__all__: list[str] = []
|
|
2
|
+
|
|
3
|
+
import cv2
|
|
4
|
+
import cv2.typing
|
|
5
|
+
import typing as _typing
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
# Classes
|
|
9
|
+
class Tracker(cv2.Algorithm):
|
|
10
|
+
# Functions
|
|
11
|
+
@_typing.overload
|
|
12
|
+
def init(self, image: cv2.typing.MatLike, boundingBox: cv2.typing.Rect2d) -> bool: ...
|
|
13
|
+
@_typing.overload
|
|
14
|
+
def init(self, image: cv2.UMat, boundingBox: cv2.typing.Rect2d) -> bool: ...
|
|
15
|
+
|
|
16
|
+
@_typing.overload
|
|
17
|
+
def update(self, image: cv2.typing.MatLike) -> tuple[bool, cv2.typing.Rect2d]: ...
|
|
18
|
+
@_typing.overload
|
|
19
|
+
def update(self, image: cv2.UMat) -> tuple[bool, cv2.typing.Rect2d]: ...
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class TrackerMIL(Tracker):
|
|
23
|
+
# Functions
|
|
24
|
+
@classmethod
|
|
25
|
+
def create(cls) -> TrackerMIL: ...
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class TrackerBoosting(Tracker):
|
|
29
|
+
# Functions
|
|
30
|
+
@classmethod
|
|
31
|
+
def create(cls) -> TrackerBoosting: ...
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
class TrackerMedianFlow(Tracker):
|
|
35
|
+
# Functions
|
|
36
|
+
@classmethod
|
|
37
|
+
def create(cls) -> TrackerMedianFlow: ...
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
class TrackerTLD(Tracker):
|
|
41
|
+
# Functions
|
|
42
|
+
@classmethod
|
|
43
|
+
def create(cls) -> TrackerTLD: ...
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
class TrackerKCF(Tracker):
|
|
47
|
+
# Functions
|
|
48
|
+
@classmethod
|
|
49
|
+
def create(cls) -> TrackerKCF: ...
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
class TrackerMOSSE(Tracker):
|
|
53
|
+
# Functions
|
|
54
|
+
@classmethod
|
|
55
|
+
def create(cls) -> TrackerMOSSE: ...
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
class MultiTracker(cv2.Algorithm):
|
|
59
|
+
# Functions
|
|
60
|
+
def __init__(self) -> None: ...
|
|
61
|
+
|
|
62
|
+
@_typing.overload
|
|
63
|
+
def add(self, newTracker: Tracker, image: cv2.typing.MatLike, boundingBox: cv2.typing.Rect2d) -> bool: ...
|
|
64
|
+
@_typing.overload
|
|
65
|
+
def add(self, newTracker: Tracker, image: cv2.UMat, boundingBox: cv2.typing.Rect2d) -> bool: ...
|
|
66
|
+
|
|
67
|
+
@_typing.overload
|
|
68
|
+
def update(self, image: cv2.typing.MatLike) -> tuple[bool, _typing.Sequence[cv2.typing.Rect2d]]: ...
|
|
69
|
+
@_typing.overload
|
|
70
|
+
def update(self, image: cv2.UMat) -> tuple[bool, _typing.Sequence[cv2.typing.Rect2d]]: ...
|
|
71
|
+
|
|
72
|
+
def getObjects(self) -> _typing.Sequence[cv2.typing.Rect2d]: ...
|
|
73
|
+
|
|
74
|
+
@classmethod
|
|
75
|
+
def create(cls) -> MultiTracker: ...
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
class TrackerCSRT(Tracker):
|
|
79
|
+
# Functions
|
|
80
|
+
@classmethod
|
|
81
|
+
def create(cls) -> TrackerCSRT: ...
|
|
82
|
+
|
|
83
|
+
@_typing.overload
|
|
84
|
+
def setInitialMask(self, mask: cv2.typing.MatLike) -> None: ...
|
|
85
|
+
@_typing.overload
|
|
86
|
+
def setInitialMask(self, mask: cv2.UMat) -> None: ...
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
# Functions
|
|
91
|
+
def upgradeTrackingAPI(legacy_tracker: Tracker) -> Tracker: ...
|
|
92
|
+
|
|
93
|
+
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
__all__: list[str] = []
|
|
2
|
+
|
|
3
|
+
import cv2
|
|
4
|
+
import cv2.typing
|
|
5
|
+
import typing as _typing
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
# Classes
|
|
9
|
+
class KeyLine:
|
|
10
|
+
angle: float
|
|
11
|
+
class_id: int
|
|
12
|
+
octave: int
|
|
13
|
+
pt: cv2.typing.Point2f
|
|
14
|
+
response: float
|
|
15
|
+
size: float
|
|
16
|
+
startPointX: float
|
|
17
|
+
startPointY: float
|
|
18
|
+
endPointX: float
|
|
19
|
+
endPointY: float
|
|
20
|
+
sPointInOctaveX: float
|
|
21
|
+
sPointInOctaveY: float
|
|
22
|
+
ePointInOctaveX: float
|
|
23
|
+
ePointInOctaveY: float
|
|
24
|
+
lineLength: float
|
|
25
|
+
numOfPixels: int
|
|
26
|
+
|
|
27
|
+
# Functions
|
|
28
|
+
def __init__(self) -> None: ...
|
|
29
|
+
|
|
30
|
+
def getStartPoint(self) -> cv2.typing.Point2f: ...
|
|
31
|
+
|
|
32
|
+
def getEndPoint(self) -> cv2.typing.Point2f: ...
|
|
33
|
+
|
|
34
|
+
def getStartPointInOctave(self) -> cv2.typing.Point2f: ...
|
|
35
|
+
|
|
36
|
+
def getEndPointInOctave(self) -> cv2.typing.Point2f: ...
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
class BinaryDescriptor(cv2.Algorithm):
|
|
40
|
+
# Functions
|
|
41
|
+
@classmethod
|
|
42
|
+
def createBinaryDescriptor(cls) -> BinaryDescriptor: ...
|
|
43
|
+
|
|
44
|
+
def getNumOfOctaves(self) -> int: ...
|
|
45
|
+
|
|
46
|
+
def setNumOfOctaves(self, octaves: int) -> None: ...
|
|
47
|
+
|
|
48
|
+
def getWidthOfBand(self) -> int: ...
|
|
49
|
+
|
|
50
|
+
def setWidthOfBand(self, width: int) -> None: ...
|
|
51
|
+
|
|
52
|
+
def getReductionRatio(self) -> int: ...
|
|
53
|
+
|
|
54
|
+
def setReductionRatio(self, rRatio: int) -> None: ...
|
|
55
|
+
|
|
56
|
+
def detect(self, image: cv2.typing.MatLike, mask: cv2.typing.MatLike | None = ...) -> _typing.Sequence[KeyLine]: ...
|
|
57
|
+
|
|
58
|
+
def compute(self, image: cv2.typing.MatLike, keylines: _typing.Sequence[KeyLine], descriptors: cv2.typing.MatLike | None = ..., returnFloatDescr: bool = ...) -> tuple[_typing.Sequence[KeyLine], cv2.typing.MatLike]: ...
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
class LSDParam:
|
|
62
|
+
scale: float
|
|
63
|
+
sigma_scale: float
|
|
64
|
+
quant: float
|
|
65
|
+
ang_th: float
|
|
66
|
+
log_eps: float
|
|
67
|
+
density_th: float
|
|
68
|
+
n_bins: int
|
|
69
|
+
|
|
70
|
+
# Functions
|
|
71
|
+
def __init__(self) -> None: ...
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
class LSDDetector(cv2.Algorithm):
|
|
75
|
+
# Functions
|
|
76
|
+
def __init__(self, _params: LSDParam) -> None: ...
|
|
77
|
+
|
|
78
|
+
@classmethod
|
|
79
|
+
def createLSDDetector(cls) -> LSDDetector: ...
|
|
80
|
+
|
|
81
|
+
@classmethod
|
|
82
|
+
def createLSDDetectorWithParams(cls, params: LSDParam) -> LSDDetector: ...
|
|
83
|
+
|
|
84
|
+
@_typing.overload
|
|
85
|
+
def detect(self, image: cv2.typing.MatLike, scale: int, numOctaves: int, mask: cv2.typing.MatLike | None = ...) -> _typing.Sequence[KeyLine]: ...
|
|
86
|
+
@_typing.overload
|
|
87
|
+
def detect(self, images: _typing.Sequence[cv2.typing.MatLike], keylines: _typing.Sequence[_typing.Sequence[KeyLine]], scale: int, numOctaves: int, masks: _typing.Sequence[cv2.typing.MatLike] | None = ...) -> None: ...
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
class BinaryDescriptorMatcher(cv2.Algorithm):
|
|
91
|
+
# Functions
|
|
92
|
+
def __init__(self) -> None: ...
|
|
93
|
+
|
|
94
|
+
def match(self, queryDescriptors: cv2.typing.MatLike, trainDescriptors: cv2.typing.MatLike, mask: cv2.typing.MatLike | None = ...) -> _typing.Sequence[cv2.DMatch]: ...
|
|
95
|
+
|
|
96
|
+
def matchQuery(self, queryDescriptors: cv2.typing.MatLike, masks: _typing.Sequence[cv2.typing.MatLike] | None = ...) -> _typing.Sequence[cv2.DMatch]: ...
|
|
97
|
+
|
|
98
|
+
def knnMatch(self, queryDescriptors: cv2.typing.MatLike, trainDescriptors: cv2.typing.MatLike, k: int, mask: cv2.typing.MatLike | None = ..., compactResult: bool = ...) -> _typing.Sequence[_typing.Sequence[cv2.DMatch]]: ...
|
|
99
|
+
|
|
100
|
+
def knnMatchQuery(self, queryDescriptors: cv2.typing.MatLike, matches: _typing.Sequence[_typing.Sequence[cv2.DMatch]], k: int, masks: _typing.Sequence[cv2.typing.MatLike] | None = ..., compactResult: bool = ...) -> None: ...
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
class DrawLinesMatchesFlags:
|
|
104
|
+
...
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
# Functions
|
|
108
|
+
def drawKeylines(image: cv2.typing.MatLike, keylines: _typing.Sequence[KeyLine], outImage: cv2.typing.MatLike | None = ..., color: cv2.typing.Scalar = ..., flags: int = ...) -> cv2.typing.MatLike: ...
|
|
109
|
+
|
|
110
|
+
def drawLineMatches(img1: cv2.typing.MatLike, keylines1: _typing.Sequence[KeyLine], img2: cv2.typing.MatLike, keylines2: _typing.Sequence[KeyLine], matches1to2: _typing.Sequence[cv2.DMatch], outImg: cv2.typing.MatLike | None = ..., matchColor: cv2.typing.Scalar = ..., singleLineColor: cv2.typing.Scalar = ..., matchesMask: _typing.Sequence[str] = ..., flags: int = ...) -> cv2.typing.MatLike: ...
|
|
111
|
+
|
|
112
|
+
|