opencv-python 5.1.0.95__cp37-abi3-win_arm64.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.
Files changed (47) hide show
  1. cv2/Error/__init__.pyi +118 -0
  2. cv2/LICENSE-3RD-PARTY.txt +3645 -0
  3. cv2/LICENSE.txt +21 -0
  4. cv2/__init__.py +189 -0
  5. cv2/__init__.pyi +7168 -0
  6. cv2/aruco/__init__.pyi +331 -0
  7. cv2/barcode/__init__.pyi +40 -0
  8. cv2/ccm/__init__.pyi +165 -0
  9. cv2/config-3.py +24 -0
  10. cv2/config.py +5 -0
  11. cv2/cuda/__init__.pyi +513 -0
  12. cv2/cv2.pyd +4 -0
  13. cv2/data/__init__.py +3 -0
  14. cv2/detail/__init__.pyi +543 -0
  15. cv2/dnn/__init__.pyi +690 -0
  16. cv2/fisheye/__init__.pyi +88 -0
  17. cv2/flann/__init__.pyi +65 -0
  18. cv2/instr/__init__.pyi +24 -0
  19. cv2/ipp/__init__.pyi +14 -0
  20. cv2/load_config_py2.py +6 -0
  21. cv2/load_config_py3.py +9 -0
  22. cv2/mat_wrapper/__init__.py +40 -0
  23. cv2/mcc/__init__.pyi +118 -0
  24. cv2/misc/__init__.py +1 -0
  25. cv2/misc/version.py +5 -0
  26. cv2/ocl/__init__.pyi +252 -0
  27. cv2/ogl/__init__.pyi +119 -0
  28. cv2/parallel/__init__.pyi +6 -0
  29. cv2/py.typed +0 -0
  30. cv2/samples/__init__.pyi +12 -0
  31. cv2/segmentation/__init__.pyi +39 -0
  32. cv2/slam/__init__.pyi +80 -0
  33. cv2/typing/__init__.py +159 -0
  34. cv2/utils/__init__.py +14 -0
  35. cv2/utils/__init__.pyi +110 -0
  36. cv2/utils/fs/__init__.pyi +6 -0
  37. cv2/utils/logging/__init__.pyi +22 -0
  38. cv2/utils/nested/__init__.pyi +31 -0
  39. cv2/version.py +5 -0
  40. cv2/videoio_registry/__init__.pyi +34 -0
  41. cv2/viz3d/__init__.pyi +63 -0
  42. opencv_python-5.1.0.95.dist-info/LICENSE-3RD-PARTY.txt +3645 -0
  43. opencv_python-5.1.0.95.dist-info/LICENSE.txt +21 -0
  44. opencv_python-5.1.0.95.dist-info/METADATA +333 -0
  45. opencv_python-5.1.0.95.dist-info/RECORD +47 -0
  46. opencv_python-5.1.0.95.dist-info/WHEEL +5 -0
  47. opencv_python-5.1.0.95.dist-info/top_level.txt +1 -0
cv2/ogl/__init__.pyi ADDED
@@ -0,0 +1,119 @@
1
+ __all__: list[str] = []
2
+
3
+ # Enumerations
4
+ POINTS: int
5
+ LINES: int
6
+ LINE_LOOP: int
7
+ LINE_STRIP: int
8
+ TRIANGLES: int
9
+ TRIANGLE_STRIP: int
10
+ TRIANGLE_FAN: int
11
+ QUADS: int
12
+ QUAD_STRIP: int
13
+ POLYGON: int
14
+ RenderModes = int
15
+ """One of [POINTS, LINES, LINE_LOOP, LINE_STRIP, TRIANGLES, TRIANGLE_STRIP, TRIANGLE_FAN, QUADS, QUAD_STRIP, POLYGON]"""
16
+
17
+ UNSIGNED_BYTE: int
18
+ UNSIGNED_SHORT: int
19
+ UNSIGNED_INT: int
20
+ IndexType = int
21
+ """One of [UNSIGNED_BYTE, UNSIGNED_SHORT, UNSIGNED_INT]"""
22
+
23
+ DEPTH_TEST: int
24
+ CULL_FACE: int
25
+ BLEND: int
26
+ Capability = int
27
+ """One of [DEPTH_TEST, CULL_FACE, BLEND]"""
28
+
29
+ BLEND_ZERO: int
30
+ BLEND_ONE: int
31
+ BLEND_SRC_COLOR: int
32
+ BLEND_ONE_MINUS_SRC_COLOR: int
33
+ BLEND_SRC_ALPHA: int
34
+ BLEND_ONE_MINUS_SRC_ALPHA: int
35
+ BLEND_DST_ALPHA: int
36
+ BLEND_ONE_MINUS_DST_ALPHA: int
37
+ BLEND_DST_COLOR: int
38
+ BLEND_ONE_MINUS_DST_COLOR: int
39
+ BlendFactor = int
40
+ """One of [BLEND_ZERO, BLEND_ONE, BLEND_SRC_COLOR, BLEND_ONE_MINUS_SRC_COLOR, BLEND_SRC_ALPHA, BLEND_ONE_MINUS_SRC_ALPHA, BLEND_DST_ALPHA, BLEND_ONE_MINUS_DST_ALPHA, BLEND_DST_COLOR, BLEND_ONE_MINUS_DST_COLOR]"""
41
+
42
+
43
+ Buffer_ARRAY_BUFFER: int
44
+ BUFFER_ARRAY_BUFFER: int
45
+ Buffer_ELEMENT_ARRAY_BUFFER: int
46
+ BUFFER_ELEMENT_ARRAY_BUFFER: int
47
+ Buffer_PIXEL_PACK_BUFFER: int
48
+ BUFFER_PIXEL_PACK_BUFFER: int
49
+ Buffer_PIXEL_UNPACK_BUFFER: int
50
+ BUFFER_PIXEL_UNPACK_BUFFER: int
51
+ Buffer_TEXTURE_BUFFER: int
52
+ BUFFER_TEXTURE_BUFFER: int
53
+ Buffer_Target = int
54
+ """One of [Buffer_ARRAY_BUFFER, BUFFER_ARRAY_BUFFER, Buffer_ELEMENT_ARRAY_BUFFER, BUFFER_ELEMENT_ARRAY_BUFFER, Buffer_PIXEL_PACK_BUFFER, BUFFER_PIXEL_PACK_BUFFER, Buffer_PIXEL_UNPACK_BUFFER, BUFFER_PIXEL_UNPACK_BUFFER, Buffer_TEXTURE_BUFFER, BUFFER_TEXTURE_BUFFER]"""
55
+
56
+ Buffer_READ_ONLY: int
57
+ BUFFER_READ_ONLY: int
58
+ Buffer_WRITE_ONLY: int
59
+ BUFFER_WRITE_ONLY: int
60
+ Buffer_READ_WRITE: int
61
+ BUFFER_READ_WRITE: int
62
+ Buffer_Access = int
63
+ """One of [Buffer_READ_ONLY, BUFFER_READ_ONLY, Buffer_WRITE_ONLY, BUFFER_WRITE_ONLY, Buffer_READ_WRITE, BUFFER_READ_WRITE]"""
64
+
65
+ Texture2D_NONE: int
66
+ TEXTURE2D_NONE: int
67
+ Texture2D_DEPTH_COMPONENT: int
68
+ TEXTURE2D_DEPTH_COMPONENT: int
69
+ Texture2D_RGB: int
70
+ TEXTURE2D_RGB: int
71
+ Texture2D_RGBA: int
72
+ TEXTURE2D_RGBA: int
73
+ Texture2D_Format = int
74
+ """One of [Texture2D_NONE, TEXTURE2D_NONE, Texture2D_DEPTH_COMPONENT, TEXTURE2D_DEPTH_COMPONENT, Texture2D_RGB, TEXTURE2D_RGB, Texture2D_RGBA, TEXTURE2D_RGBA]"""
75
+
76
+ TextureBuffer_NONE: int
77
+ TEXTURE_BUFFER_NONE: int
78
+ TextureBuffer_R32F: int
79
+ TEXTURE_BUFFER_R32F: int
80
+ TextureBuffer_RG32F: int
81
+ TEXTURE_BUFFER_RG32F: int
82
+ TextureBuffer_RGBA32F: int
83
+ TEXTURE_BUFFER_RGBA32F: int
84
+ TextureBuffer_R32I: int
85
+ TEXTURE_BUFFER_R32I: int
86
+ TextureBuffer_RG32I: int
87
+ TEXTURE_BUFFER_RG32I: int
88
+ TextureBuffer_RGBA32I: int
89
+ TEXTURE_BUFFER_RGBA32I: int
90
+ TextureBuffer_Format = int
91
+ """One of [TextureBuffer_NONE, TEXTURE_BUFFER_NONE, TextureBuffer_R32F, TEXTURE_BUFFER_R32F, TextureBuffer_RG32F, TEXTURE_BUFFER_RG32F, TextureBuffer_RGBA32F, TEXTURE_BUFFER_RGBA32F, TextureBuffer_R32I, TEXTURE_BUFFER_R32I, TextureBuffer_RG32I, TEXTURE_BUFFER_RG32I, TextureBuffer_RGBA32I, TEXTURE_BUFFER_RGBA32I]"""
92
+
93
+ Attribute_BYTE: int
94
+ ATTRIBUTE_BYTE: int
95
+ Attribute_UNSIGNED_BYTE: int
96
+ ATTRIBUTE_UNSIGNED_BYTE: int
97
+ Attribute_SHORT: int
98
+ ATTRIBUTE_SHORT: int
99
+ Attribute_UNSIGNED_SHORT: int
100
+ ATTRIBUTE_UNSIGNED_SHORT: int
101
+ Attribute_INT: int
102
+ ATTRIBUTE_INT: int
103
+ Attribute_UNSIGNED_INT: int
104
+ ATTRIBUTE_UNSIGNED_INT: int
105
+ Attribute_FLOAT: int
106
+ ATTRIBUTE_FLOAT: int
107
+ Attribute_Type = int
108
+ """One of [Attribute_BYTE, ATTRIBUTE_BYTE, Attribute_UNSIGNED_BYTE, ATTRIBUTE_UNSIGNED_BYTE, Attribute_SHORT, ATTRIBUTE_SHORT, Attribute_UNSIGNED_SHORT, ATTRIBUTE_UNSIGNED_SHORT, Attribute_INT, ATTRIBUTE_INT, Attribute_UNSIGNED_INT, ATTRIBUTE_UNSIGNED_INT, Attribute_FLOAT, ATTRIBUTE_FLOAT]"""
109
+
110
+ Shader_FRAGMENT: int
111
+ SHADER_FRAGMENT: int
112
+ Shader_VERTEX: int
113
+ SHADER_VERTEX: int
114
+ Shader_ShaderType = int
115
+ """One of [Shader_FRAGMENT, SHADER_FRAGMENT, Shader_VERTEX, SHADER_VERTEX]"""
116
+
117
+
118
+ # Classes
119
+
@@ -0,0 +1,6 @@
1
+ __all__: list[str] = []
2
+
3
+ # Functions
4
+ def setParallelForBackend(backendName: str, propagateNumThreads: bool = ...) -> bool: ...
5
+
6
+
cv2/py.typed ADDED
File without changes
@@ -0,0 +1,12 @@
1
+ __all__: list[str] = []
2
+
3
+ # Functions
4
+ def addSamplesDataSearchPath(path: str) -> None: ...
5
+
6
+ def addSamplesDataSearchSubDirectory(subdir: str) -> None: ...
7
+
8
+ def findFile(relative_path: str, required: bool = ..., silentMode: bool = ...) -> str: ...
9
+
10
+ def findFileOrKeep(relative_path: str, silentMode: bool = ...) -> str: ...
11
+
12
+
@@ -0,0 +1,39 @@
1
+ __all__: list[str] = []
2
+
3
+ import cv2
4
+ import cv2.typing
5
+ import typing as _typing
6
+
7
+
8
+ # Classes
9
+ class IntelligentScissorsMB:
10
+ # Functions
11
+ def __init__(self) -> None: ...
12
+
13
+ def setWeights(self, weight_non_edge: float, weight_gradient_direction: float, weight_gradient_magnitude: float) -> IntelligentScissorsMB: ...
14
+
15
+ def setGradientMagnitudeMaxLimit(self, gradient_magnitude_threshold_max: float = ...) -> IntelligentScissorsMB: ...
16
+
17
+ def setEdgeFeatureZeroCrossingParameters(self, gradient_magnitude_min_value: float = ...) -> IntelligentScissorsMB: ...
18
+
19
+ def setEdgeFeatureCannyParameters(self, threshold1: float, threshold2: float, apertureSize: int = ..., L2gradient: bool = ...) -> IntelligentScissorsMB: ...
20
+
21
+ @_typing.overload
22
+ def applyImage(self, image: cv2.typing.MatLike) -> IntelligentScissorsMB: ...
23
+ @_typing.overload
24
+ def applyImage(self, image: cv2.UMat) -> IntelligentScissorsMB: ...
25
+
26
+ @_typing.overload
27
+ def applyImageFeatures(self, non_edge: cv2.typing.MatLike, gradient_direction: cv2.typing.MatLike, gradient_magnitude: cv2.typing.MatLike, image: cv2.typing.MatLike | None = ...) -> IntelligentScissorsMB: ...
28
+ @_typing.overload
29
+ def applyImageFeatures(self, non_edge: cv2.UMat, gradient_direction: cv2.UMat, gradient_magnitude: cv2.UMat, image: cv2.UMat | None = ...) -> IntelligentScissorsMB: ...
30
+
31
+ def buildMap(self, sourcePt: cv2.typing.Point) -> None: ...
32
+
33
+ @_typing.overload
34
+ def getContour(self, targetPt: cv2.typing.Point, contour: cv2.typing.MatLike | None = ..., backward: bool = ...) -> cv2.typing.MatLike: ...
35
+ @_typing.overload
36
+ def getContour(self, targetPt: cv2.typing.Point, contour: cv2.UMat | None = ..., backward: bool = ...) -> cv2.UMat: ...
37
+
38
+
39
+
cv2/slam/__init__.pyi ADDED
@@ -0,0 +1,80 @@
1
+ __all__: list[str] = []
2
+
3
+ import cv2
4
+ import cv2.typing
5
+ import typing as _typing
6
+
7
+
8
+ # Enumerations
9
+ NOT_INITIALIZED: int
10
+ INITIALIZING: int
11
+ TRACKING: int
12
+ OdometryState = int
13
+ """One of [NOT_INITIALIZED, INITIALIZING, TRACKING]"""
14
+
15
+
16
+
17
+ # Classes
18
+ class OdometryParams:
19
+ minInitInliers: int
20
+ minInitParallaxDeg: float
21
+ minInitPoints: int
22
+ hfRatioThresh: float
23
+ minGrowthParallaxDeg: float
24
+ essentialRansacThresh: float
25
+ essentialRansacConfidence: float
26
+ pnpReprojThresh: float
27
+ pnpMinInliers: int
28
+ pnpRansacIters: int
29
+ pnpConfidence: float
30
+ motionModelRadius: float
31
+ motionModelRadiusWide: float
32
+ motionModelMinMatches: int
33
+ descProjThresh: float
34
+ opticalFlowMinInliers: int
35
+ kfMinFrames: int
36
+ kfMaxFrames: int
37
+ kfInlierRatio: float
38
+ kfMinInliers: int
39
+ kfRotThreshDeg: float
40
+ kfTransThresh: float
41
+ localMapTopK: int
42
+ localMapNeighborK: int
43
+ localMapRadius: float
44
+
45
+ # Functions
46
+ def __init__(self) -> None: ...
47
+
48
+
49
+ class VisualOdometry:
50
+ # Functions
51
+ @classmethod
52
+ @_typing.overload
53
+ def create(cls, detector: cv2.Feature2D, matcher: cv2.DescriptorMatcher, cameraMatrix: cv2.typing.MatLike, distCoeffs: cv2.typing.MatLike | None = ..., params: OdometryParams = ...) -> VisualOdometry: ...
54
+ @classmethod
55
+ @_typing.overload
56
+ def create(cls, detector: cv2.Feature2D, matcher: cv2.DescriptorMatcher, cameraMatrix: cv2.UMat, distCoeffs: cv2.UMat | None = ..., params: OdometryParams = ...) -> VisualOdometry: ...
57
+
58
+ @_typing.overload
59
+ def processFrame(self, image: cv2.typing.MatLike) -> bool: ...
60
+ @_typing.overload
61
+ def processFrame(self, image: cv2.UMat) -> bool: ...
62
+
63
+ def reset(self) -> None: ...
64
+
65
+ def getState(self) -> OdometryState: ...
66
+
67
+ def getLastPose(self) -> cv2.typing.Matx44d: ...
68
+
69
+ def getNumKeyframes(self) -> int: ...
70
+
71
+ def getNumMapPoints(self) -> int: ...
72
+
73
+ def getTrajectory(self) -> _typing.Sequence[cv2.typing.Matx44d]: ...
74
+
75
+ def getParams(self) -> OdometryParams: ...
76
+
77
+ def setParams(self, params: OdometryParams) -> None: ...
78
+
79
+
80
+
cv2/typing/__init__.py ADDED
@@ -0,0 +1,159 @@
1
+ __all__ = [
2
+ "IntPointer",
3
+ "MatLike",
4
+ "MatShape",
5
+ "Size",
6
+ "Size2f",
7
+ "Scalar",
8
+ "Point",
9
+ "Point2i",
10
+ "Point2f",
11
+ "Point2d",
12
+ "Point3i",
13
+ "Point3f",
14
+ "Point3d",
15
+ "Range",
16
+ "Rect",
17
+ "Rect2i",
18
+ "Rect2f",
19
+ "Rect2d",
20
+ "Moments",
21
+ "RotatedRect",
22
+ "TermCriteria",
23
+ "Vec2i",
24
+ "Vec2f",
25
+ "Vec2d",
26
+ "Vec3i",
27
+ "Vec3f",
28
+ "Vec3d",
29
+ "Vec4i",
30
+ "Vec4f",
31
+ "Vec4d",
32
+ "Vec6f",
33
+ "FeatureDetector",
34
+ "DescriptorExtractor",
35
+ "FeatureExtractor",
36
+ "Matx33f",
37
+ "Matx33d",
38
+ "Matx44f",
39
+ "Matx44d",
40
+ "LayerId",
41
+ "LayerParams",
42
+ "IndexParams",
43
+ "SearchParams",
44
+ "map_string_and_string",
45
+ "map_string_and_int",
46
+ "map_string_and_vector_size_t",
47
+ "map_string_and_vector_float",
48
+ "map_int_and_double",
49
+ ]
50
+
51
+ import cv2.mat_wrapper
52
+ import cv2.dnn
53
+ import numpy
54
+ import cv2
55
+ import typing as _typing
56
+
57
+
58
+ if _typing.TYPE_CHECKING:
59
+ NumPyArrayNumeric = numpy.ndarray[_typing.Any, numpy.dtype[numpy.integer[_typing.Any] | numpy.floating[_typing.Any]]]
60
+ else:
61
+ NumPyArrayNumeric = numpy.ndarray
62
+
63
+
64
+ if _typing.TYPE_CHECKING:
65
+ NumPyArrayFloat32 = numpy.ndarray[_typing.Any, numpy.dtype[numpy.float32]]
66
+ else:
67
+ NumPyArrayFloat32 = numpy.ndarray
68
+
69
+
70
+ if _typing.TYPE_CHECKING:
71
+ NumPyArrayFloat64 = numpy.ndarray[_typing.Any, numpy.dtype[numpy.float64]]
72
+ else:
73
+ NumPyArrayFloat64 = numpy.ndarray
74
+
75
+
76
+ if _typing.TYPE_CHECKING:
77
+ TermCriteria_Type = cv2.TermCriteria_Type
78
+ else:
79
+ TermCriteria_Type = int
80
+
81
+
82
+ IntPointer = int
83
+ """Represents an arbitrary pointer"""
84
+ MatLike = _typing.Union[cv2.mat_wrapper.Mat, NumPyArrayNumeric]
85
+ MatShape = _typing.Sequence[int]
86
+ Size = _typing.Sequence[int]
87
+ """Required length is 2"""
88
+ Size2f = _typing.Sequence[float]
89
+ """Required length is 2"""
90
+ Scalar = _typing.Union[_typing.Sequence[float], float]
91
+ """Max sequence length is at most 4"""
92
+ Point = _typing.Sequence[int]
93
+ """Required length is 2"""
94
+ Point2i = Point
95
+ Point2f = _typing.Sequence[float]
96
+ """Required length is 2"""
97
+ Point2d = _typing.Sequence[float]
98
+ """Required length is 2"""
99
+ Point3i = _typing.Sequence[int]
100
+ """Required length is 3"""
101
+ Point3f = _typing.Sequence[float]
102
+ """Required length is 3"""
103
+ Point3d = _typing.Sequence[float]
104
+ """Required length is 3"""
105
+ Range = _typing.Sequence[int]
106
+ """Required length is 2"""
107
+ Rect = _typing.Sequence[int]
108
+ """Required length is 4"""
109
+ Rect2i = _typing.Sequence[int]
110
+ """Required length is 4"""
111
+ Rect2f = _typing.Sequence[float]
112
+ """Required length is 4"""
113
+ Rect2d = _typing.Sequence[float]
114
+ """Required length is 4"""
115
+ Moments = _typing.Dict[str, float]
116
+ RotatedRect = _typing.Tuple[Point2f, Size2f, float]
117
+ """Any type providing sequence protocol is supported"""
118
+ TermCriteria = _typing.Tuple[TermCriteria_Type, int, float]
119
+ """Any type providing sequence protocol is supported"""
120
+ Vec2i = _typing.Sequence[int]
121
+ """Required length is 2"""
122
+ Vec2f = _typing.Sequence[float]
123
+ """Required length is 2"""
124
+ Vec2d = _typing.Sequence[float]
125
+ """Required length is 2"""
126
+ Vec3i = _typing.Sequence[int]
127
+ """Required length is 3"""
128
+ Vec3f = _typing.Sequence[float]
129
+ """Required length is 3"""
130
+ Vec3d = _typing.Sequence[float]
131
+ """Required length is 3"""
132
+ Vec4i = _typing.Sequence[int]
133
+ """Required length is 4"""
134
+ Vec4f = _typing.Sequence[float]
135
+ """Required length is 4"""
136
+ Vec4d = _typing.Sequence[float]
137
+ """Required length is 4"""
138
+ Vec6f = _typing.Sequence[float]
139
+ """Required length is 6"""
140
+ FeatureDetector = cv2.Feature2D
141
+ DescriptorExtractor = cv2.Feature2D
142
+ FeatureExtractor = cv2.Feature2D
143
+ Matx33f = NumPyArrayFloat32
144
+ """NDArray(shape=(3, 3), dtype=numpy.float32)"""
145
+ Matx33d = NumPyArrayFloat64
146
+ """NDArray(shape=(3, 3), dtype=numpy.float64)"""
147
+ Matx44f = NumPyArrayFloat32
148
+ """NDArray(shape=(4, 4), dtype=numpy.float32)"""
149
+ Matx44d = NumPyArrayFloat64
150
+ """NDArray(shape=(4, 4), dtype=numpy.float64)"""
151
+ LayerId = cv2.dnn.DictValue
152
+ LayerParams = _typing.Dict[str, _typing.Union[int, float, str]]
153
+ IndexParams = _typing.Dict[str, _typing.Union[bool, int, float, str]]
154
+ SearchParams = _typing.Dict[str, _typing.Union[bool, int, float, str]]
155
+ map_string_and_string = _typing.Dict[str, str]
156
+ map_string_and_int = _typing.Dict[str, int]
157
+ map_string_and_vector_size_t = _typing.Dict[str, _typing.Sequence[int]]
158
+ map_string_and_vector_float = _typing.Dict[str, _typing.Sequence[float]]
159
+ map_int_and_double = _typing.Dict[int, float]
cv2/utils/__init__.py ADDED
@@ -0,0 +1,14 @@
1
+ from collections import namedtuple
2
+
3
+ import cv2
4
+
5
+
6
+ NativeMethodPatchedResult = namedtuple("NativeMethodPatchedResult",
7
+ ("py", "native"))
8
+
9
+
10
+ def testOverwriteNativeMethod(arg):
11
+ return NativeMethodPatchedResult(
12
+ arg + 1,
13
+ cv2.utils._native.testOverwriteNativeMethod(arg)
14
+ )
cv2/utils/__init__.pyi ADDED
@@ -0,0 +1,110 @@
1
+ __all__: list[str] = []
2
+
3
+ import cv2
4
+ import cv2.typing
5
+ import typing as _typing
6
+
7
+
8
+ from cv2.utils import fs as fs
9
+ from cv2.utils import logging as logging
10
+ from cv2.utils import nested as nested
11
+
12
+
13
+ # Classes
14
+ class ClassWithKeywordProperties:
15
+ lambda_: int
16
+ @property
17
+ def except_(self) -> int: ...
18
+
19
+ # Functions
20
+ def __init__(self, lambda_arg: int = ..., except_arg: int = ...) -> None: ...
21
+
22
+
23
+
24
+ # Functions
25
+ @_typing.overload
26
+ def copyMatAndDumpNamedArguments(src: cv2.typing.MatLike, dst: cv2.typing.MatLike | None = ..., lambda_: int = ..., sigma: float = ...) -> tuple[str, cv2.typing.MatLike]: ...
27
+ @_typing.overload
28
+ def copyMatAndDumpNamedArguments(src: cv2.UMat, dst: cv2.UMat | None = ..., lambda_: int = ..., sigma: float = ...) -> tuple[str, cv2.UMat]: ...
29
+
30
+ def dumpBool(argument: bool) -> str: ...
31
+
32
+ def dumpCString(argument: str) -> str: ...
33
+
34
+ def dumpDouble(argument: float) -> str: ...
35
+
36
+ def dumpFloat(argument: float) -> str: ...
37
+
38
+ @_typing.overload
39
+ def dumpInputArray(argument: cv2.typing.MatLike) -> str: ...
40
+ @_typing.overload
41
+ def dumpInputArray(argument: cv2.UMat) -> str: ...
42
+
43
+ @_typing.overload
44
+ def dumpInputArrayOfArrays(argument: _typing.Sequence[cv2.typing.MatLike]) -> str: ...
45
+ @_typing.overload
46
+ def dumpInputArrayOfArrays(argument: _typing.Sequence[cv2.UMat]) -> str: ...
47
+
48
+ @_typing.overload
49
+ def dumpInputOutputArray(argument: cv2.typing.MatLike) -> tuple[str, cv2.typing.MatLike]: ...
50
+ @_typing.overload
51
+ def dumpInputOutputArray(argument: cv2.UMat) -> tuple[str, cv2.UMat]: ...
52
+
53
+ @_typing.overload
54
+ def dumpInputOutputArrayOfArrays(argument: _typing.Sequence[cv2.typing.MatLike]) -> tuple[str, _typing.Sequence[cv2.typing.MatLike]]: ...
55
+ @_typing.overload
56
+ def dumpInputOutputArrayOfArrays(argument: _typing.Sequence[cv2.UMat]) -> tuple[str, _typing.Sequence[cv2.UMat]]: ...
57
+
58
+ def dumpInt(argument: int) -> str: ...
59
+
60
+ def dumpInt64(argument: int) -> str: ...
61
+
62
+ def dumpRange(argument: cv2.typing.Range) -> str: ...
63
+
64
+ def dumpRect(argument: cv2.typing.Rect) -> str: ...
65
+
66
+ def dumpRotatedRect(argument: cv2.typing.RotatedRect) -> str: ...
67
+
68
+ def dumpSizeT(argument: int) -> str: ...
69
+
70
+ def dumpString(argument: str) -> str: ...
71
+
72
+ def dumpTermCriteria(argument: cv2.typing.TermCriteria) -> str: ...
73
+
74
+ def dumpVec2i(value: cv2.typing.Vec2i = ...) -> str: ...
75
+
76
+ def dumpVectorOfDouble(vec: _typing.Sequence[float]) -> str: ...
77
+
78
+ def dumpVectorOfInt(vec: _typing.Sequence[int]) -> str: ...
79
+
80
+ def dumpVectorOfRect(vec: _typing.Sequence[cv2.typing.Rect]) -> str: ...
81
+
82
+ def generateVectorOfInt(len: int) -> _typing.Sequence[int]: ...
83
+
84
+ def generateVectorOfMat(len: int, rows: int, cols: int, dtype: int, vec: _typing.Sequence[cv2.typing.MatLike] | None = ...) -> _typing.Sequence[cv2.typing.MatLike]: ...
85
+
86
+ def generateVectorOfRect(len: int) -> _typing.Sequence[cv2.typing.Rect]: ...
87
+
88
+ @_typing.overload
89
+ def testAsyncArray(argument: cv2.typing.MatLike) -> cv2.AsyncArray: ...
90
+ @_typing.overload
91
+ def testAsyncArray(argument: cv2.UMat) -> cv2.AsyncArray: ...
92
+
93
+ def testAsyncException() -> cv2.AsyncArray: ...
94
+
95
+ @_typing.overload
96
+ def testOverloadResolution(value: int, point: cv2.typing.Point = ...) -> str: ...
97
+ @_typing.overload
98
+ def testOverloadResolution(rect: cv2.typing.Rect) -> str: ...
99
+
100
+ def testOverwriteNativeMethod(argument: int) -> int: ...
101
+
102
+ def testRaiseGeneralException() -> None: ...
103
+
104
+ def testReservedKeywordConversion(positional_argument: int, lambda_: int = ..., from_: int = ...) -> str: ...
105
+
106
+ def testRotatedRect(x: float, y: float, w: float, h: float, angle: float) -> cv2.typing.RotatedRect: ...
107
+
108
+ def testRotatedRectVector(x: float, y: float, w: float, h: float, angle: float) -> _typing.Sequence[cv2.typing.RotatedRect]: ...
109
+
110
+
@@ -0,0 +1,6 @@
1
+ __all__: list[str] = []
2
+
3
+ # Functions
4
+ def getCacheDirectoryForDownloads() -> str: ...
5
+
6
+
@@ -0,0 +1,22 @@
1
+ __all__: list[str] = []
2
+
3
+ # Enumerations
4
+ LOG_LEVEL_SILENT: int
5
+ LOG_LEVEL_FATAL: int
6
+ LOG_LEVEL_ERROR: int
7
+ LOG_LEVEL_WARNING: int
8
+ LOG_LEVEL_INFO: int
9
+ LOG_LEVEL_DEBUG: int
10
+ LOG_LEVEL_VERBOSE: int
11
+ ENUM_LOG_LEVEL_FORCE_INT: int
12
+ LogLevel = int
13
+ """One of [LOG_LEVEL_SILENT, LOG_LEVEL_FATAL, LOG_LEVEL_ERROR, LOG_LEVEL_WARNING, LOG_LEVEL_INFO, LOG_LEVEL_DEBUG, LOG_LEVEL_VERBOSE, ENUM_LOG_LEVEL_FORCE_INT]"""
14
+
15
+
16
+
17
+ # Functions
18
+ def getLogLevel() -> LogLevel: ...
19
+
20
+ def setLogLevel(logLevel: LogLevel) -> LogLevel: ...
21
+
22
+
@@ -0,0 +1,31 @@
1
+ __all__: list[str] = []
2
+
3
+ # Classes
4
+ class ExportClassName:
5
+ # Classes
6
+ class Params:
7
+ int_value: int
8
+ float_value: float
9
+
10
+ # Functions
11
+ def __init__(self, int_param: int = ..., float_param: float = ...) -> None: ...
12
+
13
+
14
+
15
+ # Functions
16
+ def getIntParam(self) -> int: ...
17
+
18
+ def getFloatParam(self) -> float: ...
19
+
20
+ @staticmethod
21
+ def originalName() -> str: ...
22
+
23
+ @classmethod
24
+ def create(cls, params: ExportClassName.Params = ...) -> ExportClassName: ...
25
+
26
+
27
+
28
+ # Functions
29
+ def testEchoBooleanFunction(flag: bool) -> bool: ...
30
+
31
+
cv2/version.py ADDED
@@ -0,0 +1,5 @@
1
+ opencv_version = "5.1.0.95"
2
+ contrib = False
3
+ headless = False
4
+ rolling = False
5
+ ci_build = True
@@ -0,0 +1,34 @@
1
+ __all__: list[str] = []
2
+
3
+ import cv2
4
+ import typing as _typing
5
+
6
+
7
+ # Functions
8
+ def enumerateDevices(apiPreference: cv2.VideoCaptureAPIs = ...) -> _typing.Sequence[cv2.VideoDeviceInfo]: ...
9
+
10
+ def getBackendName(api: cv2.VideoCaptureAPIs) -> str: ...
11
+
12
+ def getBackends() -> _typing.Sequence[cv2.VideoCaptureAPIs]: ...
13
+
14
+ def getCameraBackendPluginVersion(api: cv2.VideoCaptureAPIs) -> tuple[str, int, int]: ...
15
+
16
+ def getCameraBackends() -> _typing.Sequence[cv2.VideoCaptureAPIs]: ...
17
+
18
+ def getStreamBackendPluginVersion(api: cv2.VideoCaptureAPIs) -> tuple[str, int, int]: ...
19
+
20
+ def getStreamBackends() -> _typing.Sequence[cv2.VideoCaptureAPIs]: ...
21
+
22
+ def getStreamBufferedBackendPluginVersion(api: cv2.VideoCaptureAPIs) -> tuple[str, int, int]: ...
23
+
24
+ def getStreamBufferedBackends() -> _typing.Sequence[cv2.VideoCaptureAPIs]: ...
25
+
26
+ def getWriterBackendPluginVersion(api: cv2.VideoCaptureAPIs) -> tuple[str, int, int]: ...
27
+
28
+ def getWriterBackends() -> _typing.Sequence[cv2.VideoCaptureAPIs]: ...
29
+
30
+ def hasBackend(api: cv2.VideoCaptureAPIs) -> bool: ...
31
+
32
+ def isBackendBuiltIn(api: cv2.VideoCaptureAPIs) -> bool: ...
33
+
34
+