types-opencv-python 1.0.0__py3-none-any.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/Error.pyi +78 -0
- cv2/__init__.pyi +12673 -0
- cv2/aruco.pyi +627 -0
- cv2/barcode.pyi +93 -0
- cv2/cuda.pyi +996 -0
- cv2/detail.pyi +1029 -0
- cv2/dnn.pyi +1564 -0
- cv2/fisheye.pyi +302 -0
- cv2/flann.pyi +55 -0
- cv2/gapi/__init__.pyi +1509 -0
- cv2/gapi/core/cpu.pyi +25 -0
- cv2/gapi/core/fluid.pyi +25 -0
- cv2/gapi/core/ocl.pyi +25 -0
- cv2/gapi/ie/__init__.pyi +84 -0
- cv2/gapi/ie/detail.pyi +25 -0
- cv2/gapi/imgproc/fluid.pyi +25 -0
- cv2/gapi/oak.pyi +33 -0
- cv2/gapi/onnx/__init__.pyi +81 -0
- cv2/gapi/onnx/ep.pyi +145 -0
- cv2/gapi/ot/__init__.pyi +60 -0
- cv2/gapi/ot/cpu.pyi +25 -0
- cv2/gapi/ov.pyi +207 -0
- cv2/gapi/own/detail.pyi +25 -0
- cv2/gapi/render/ocv.pyi +25 -0
- cv2/gapi/streaming.pyi +73 -0
- cv2/gapi/video.pyi +25 -0
- cv2/gapi/wip/__init__.pyi +78 -0
- cv2/gapi/wip/draw.pyi +222 -0
- cv2/gapi/wip/gst.pyi +34 -0
- cv2/gapi/wip/onevpl.pyi +27 -0
- cv2/instr.pyi +33 -0
- cv2/ipp.pyi +33 -0
- cv2/ml.pyi +1500 -0
- cv2/ocl.pyi +234 -0
- cv2/ogl.pyi +44 -0
- cv2/parallel.pyi +30 -0
- cv2/py.typed +0 -0
- cv2/samples.pyi +68 -0
- cv2/segmentation.pyi +124 -0
- cv2/utils/__init__.pyi +204 -0
- cv2/utils/fs.pyi +25 -0
- cv2/utils/logging.pyi +40 -0
- cv2/utils/nested.pyi +45 -0
- cv2/videoio_registry.pyi +70 -0
- types_opencv_python-1.0.0.dist-info/METADATA +4 -0
- types_opencv_python-1.0.0.dist-info/RECORD +48 -0
- types_opencv_python-1.0.0.dist-info/WHEEL +5 -0
- types_opencv_python-1.0.0.dist-info/top_level.txt +1 -0
cv2/gapi/ov.pyi
ADDED
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
'''
|
|
2
|
+
encode: utf-8
|
|
3
|
+
Date: 2026-02-19 15:09:25
|
|
4
|
+
LastEditTime: 2026-02-19 15:09:25
|
|
5
|
+
FilePath: /genout6/media/adminmaster/veracrypt3/Develop/td-opencv/dev/base.pyi
|
|
6
|
+
'''
|
|
7
|
+
import typing
|
|
8
|
+
from typing import overload
|
|
9
|
+
|
|
10
|
+
T0=typing.TypeVar("T0")
|
|
11
|
+
T1=typing.TypeVar("T1")
|
|
12
|
+
T2=typing.TypeVar("T2")
|
|
13
|
+
T3=typing.TypeVar("T3")
|
|
14
|
+
T4=typing.TypeVar("T4")
|
|
15
|
+
T5=typing.TypeVar("T5")
|
|
16
|
+
T6=typing.TypeVar("T6")
|
|
17
|
+
T7=typing.TypeVar("T7")
|
|
18
|
+
T8=typing.TypeVar("T8")
|
|
19
|
+
|
|
20
|
+
retval=typing.Any
|
|
21
|
+
readyIndex=int
|
|
22
|
+
|
|
23
|
+
class PyParams:
|
|
24
|
+
@overload
|
|
25
|
+
def cfgScale(self,scale_map) -> retval:
|
|
26
|
+
"""
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
```
|
|
30
|
+
"""
|
|
31
|
+
|
|
32
|
+
@overload
|
|
33
|
+
def cfgScale(self,scale_values) -> retval:
|
|
34
|
+
"""
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
```
|
|
38
|
+
"""
|
|
39
|
+
|
|
40
|
+
def cfgResize(self,interpolation:int) -> retval:
|
|
41
|
+
"""
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
```
|
|
45
|
+
"""
|
|
46
|
+
|
|
47
|
+
@overload
|
|
48
|
+
def cfgReshape(self,new_shape_map) -> retval:
|
|
49
|
+
"""
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
```
|
|
53
|
+
"""
|
|
54
|
+
|
|
55
|
+
@overload
|
|
56
|
+
def cfgReshape(self,new_shape) -> retval:
|
|
57
|
+
"""
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
```
|
|
61
|
+
"""
|
|
62
|
+
|
|
63
|
+
def cfgPluginConfig(self,config) -> retval:
|
|
64
|
+
"""
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
```
|
|
68
|
+
"""
|
|
69
|
+
|
|
70
|
+
@overload
|
|
71
|
+
def cfgOutputTensorPrecision(self,precision_map) -> retval:
|
|
72
|
+
"""
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
```
|
|
76
|
+
"""
|
|
77
|
+
|
|
78
|
+
@overload
|
|
79
|
+
def cfgOutputTensorPrecision(self,precision:int) -> retval:
|
|
80
|
+
"""
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
```
|
|
84
|
+
"""
|
|
85
|
+
|
|
86
|
+
@overload
|
|
87
|
+
def cfgOutputTensorLayout(self,layout_map) -> retval:
|
|
88
|
+
"""
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
```
|
|
92
|
+
"""
|
|
93
|
+
|
|
94
|
+
@overload
|
|
95
|
+
def cfgOutputTensorLayout(self,tensor_layout:str) -> retval:
|
|
96
|
+
"""
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
```
|
|
100
|
+
"""
|
|
101
|
+
|
|
102
|
+
@overload
|
|
103
|
+
def cfgOutputModelLayout(self,layout_map) -> retval:
|
|
104
|
+
"""
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
```
|
|
108
|
+
"""
|
|
109
|
+
|
|
110
|
+
@overload
|
|
111
|
+
def cfgOutputModelLayout(self,tensor_layout:str) -> retval:
|
|
112
|
+
"""
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
```
|
|
116
|
+
"""
|
|
117
|
+
|
|
118
|
+
def cfgNumRequests(self,nireq:int) -> retval:
|
|
119
|
+
"""
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
```
|
|
123
|
+
"""
|
|
124
|
+
|
|
125
|
+
@overload
|
|
126
|
+
def cfgMean(self,mean_map) -> retval:
|
|
127
|
+
"""
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
```
|
|
131
|
+
"""
|
|
132
|
+
|
|
133
|
+
@overload
|
|
134
|
+
def cfgMean(self,mean_values) -> retval:
|
|
135
|
+
"""
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
```
|
|
139
|
+
"""
|
|
140
|
+
|
|
141
|
+
@overload
|
|
142
|
+
def cfgInputTensorLayout(self,layout_map) -> retval:
|
|
143
|
+
"""
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
```
|
|
147
|
+
"""
|
|
148
|
+
|
|
149
|
+
@overload
|
|
150
|
+
def cfgInputTensorLayout(self,tensor_layout:str) -> retval:
|
|
151
|
+
"""
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
```
|
|
155
|
+
"""
|
|
156
|
+
|
|
157
|
+
@overload
|
|
158
|
+
def cfgInputModelLayout(self,layout_map) -> retval:
|
|
159
|
+
"""
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
```
|
|
163
|
+
"""
|
|
164
|
+
|
|
165
|
+
@overload
|
|
166
|
+
def cfgInputModelLayout(self,tensor_layout:str) -> retval:
|
|
167
|
+
"""
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
```
|
|
171
|
+
"""
|
|
172
|
+
|
|
173
|
+
@overload
|
|
174
|
+
def __init__(self,tag:str,blob_path:str,device:str) -> None:
|
|
175
|
+
"""
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
```
|
|
179
|
+
"""
|
|
180
|
+
|
|
181
|
+
@overload
|
|
182
|
+
def __init__(self,tag:str,model_path:str,bin_path:str,device:str) -> None:
|
|
183
|
+
"""
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
```
|
|
187
|
+
"""
|
|
188
|
+
|
|
189
|
+
def __init__(self) -> None: ...
|
|
190
|
+
|
|
191
|
+
@overload
|
|
192
|
+
def params(tag:str,model_path:str,weights:str,device:str) -> retval:
|
|
193
|
+
"""
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
```
|
|
197
|
+
"""
|
|
198
|
+
|
|
199
|
+
@overload
|
|
200
|
+
def params(tag:str,bin_path:str,device:str) -> retval:
|
|
201
|
+
"""
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
```
|
|
205
|
+
"""
|
|
206
|
+
|
|
207
|
+
|
cv2/gapi/own/detail.pyi
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
'''
|
|
2
|
+
encode: utf-8
|
|
3
|
+
Date: 2026-02-19 15:09:25
|
|
4
|
+
LastEditTime: 2026-02-19 15:09:25
|
|
5
|
+
FilePath: /genout6/media/adminmaster/veracrypt3/Develop/td-opencv/dev/base.pyi
|
|
6
|
+
'''
|
|
7
|
+
import typing
|
|
8
|
+
from typing import overload
|
|
9
|
+
|
|
10
|
+
T0=typing.TypeVar("T0")
|
|
11
|
+
T1=typing.TypeVar("T1")
|
|
12
|
+
T2=typing.TypeVar("T2")
|
|
13
|
+
T3=typing.TypeVar("T3")
|
|
14
|
+
T4=typing.TypeVar("T4")
|
|
15
|
+
T5=typing.TypeVar("T5")
|
|
16
|
+
T6=typing.TypeVar("T6")
|
|
17
|
+
T7=typing.TypeVar("T7")
|
|
18
|
+
T8=typing.TypeVar("T8")
|
|
19
|
+
|
|
20
|
+
retval=typing.Any
|
|
21
|
+
readyIndex=int
|
|
22
|
+
|
|
23
|
+
MatHeader_AUTO_STEP:int = ...
|
|
24
|
+
MatHeader_TYPE_MASK:int = ...
|
|
25
|
+
|
cv2/gapi/render/ocv.pyi
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
'''
|
|
2
|
+
encode: utf-8
|
|
3
|
+
Date: 2026-02-19 15:09:25
|
|
4
|
+
LastEditTime: 2026-02-19 15:09:25
|
|
5
|
+
FilePath: /genout6/media/adminmaster/veracrypt3/Develop/td-opencv/dev/base.pyi
|
|
6
|
+
'''
|
|
7
|
+
import typing
|
|
8
|
+
from typing import overload
|
|
9
|
+
|
|
10
|
+
T0=typing.TypeVar("T0")
|
|
11
|
+
T1=typing.TypeVar("T1")
|
|
12
|
+
T2=typing.TypeVar("T2")
|
|
13
|
+
T3=typing.TypeVar("T3")
|
|
14
|
+
T4=typing.TypeVar("T4")
|
|
15
|
+
T5=typing.TypeVar("T5")
|
|
16
|
+
T6=typing.TypeVar("T6")
|
|
17
|
+
T7=typing.TypeVar("T7")
|
|
18
|
+
T8=typing.TypeVar("T8")
|
|
19
|
+
|
|
20
|
+
retval=typing.Any
|
|
21
|
+
readyIndex=int
|
|
22
|
+
|
|
23
|
+
def kernels() -> retval: ...
|
|
24
|
+
|
|
25
|
+
|
cv2/gapi/streaming.pyi
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
'''
|
|
2
|
+
encode: utf-8
|
|
3
|
+
Date: 2026-02-19 15:09:25
|
|
4
|
+
LastEditTime: 2026-02-19 15:09:25
|
|
5
|
+
FilePath: /genout6/media/adminmaster/veracrypt3/Develop/td-opencv/dev/base.pyi
|
|
6
|
+
'''
|
|
7
|
+
import typing
|
|
8
|
+
from typing import overload
|
|
9
|
+
|
|
10
|
+
T0=typing.TypeVar("T0")
|
|
11
|
+
T1=typing.TypeVar("T1")
|
|
12
|
+
T2=typing.TypeVar("T2")
|
|
13
|
+
T3=typing.TypeVar("T3")
|
|
14
|
+
T4=typing.TypeVar("T4")
|
|
15
|
+
T5=typing.TypeVar("T5")
|
|
16
|
+
T6=typing.TypeVar("T6")
|
|
17
|
+
T7=typing.TypeVar("T7")
|
|
18
|
+
T8=typing.TypeVar("T8")
|
|
19
|
+
|
|
20
|
+
retval=typing.Any
|
|
21
|
+
readyIndex=int
|
|
22
|
+
|
|
23
|
+
sync_policy_dont_sync:int = ...
|
|
24
|
+
sync_policy_drop:int = ...
|
|
25
|
+
class queue_capacity:
|
|
26
|
+
@overload
|
|
27
|
+
def __init__(self,cap:int=...) -> None:
|
|
28
|
+
"""
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
```
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
def desync(g) -> retval:
|
|
35
|
+
"""
|
|
36
|
+
```
|
|
37
|
+
Starts a desynchronized branch in the graph.
|
|
38
|
+
```
|
|
39
|
+
"""
|
|
40
|
+
|
|
41
|
+
def seqNo(arg1) -> retval: ...
|
|
42
|
+
|
|
43
|
+
def seq_id(arg1) -> retval: ...
|
|
44
|
+
|
|
45
|
+
@overload
|
|
46
|
+
def size(src) -> retval:
|
|
47
|
+
"""
|
|
48
|
+
```
|
|
49
|
+
Gets dimensions from MediaFrame.
|
|
50
|
+
```
|
|
51
|
+
---
|
|
52
|
+
```
|
|
53
|
+
Parameters:
|
|
54
|
+
src: Input frame
|
|
55
|
+
```
|
|
56
|
+
"""
|
|
57
|
+
|
|
58
|
+
@overload
|
|
59
|
+
def size(r) -> retval:
|
|
60
|
+
"""
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
```
|
|
64
|
+
---
|
|
65
|
+
```
|
|
66
|
+
Parameters:
|
|
67
|
+
r: Input rectangle.
|
|
68
|
+
```
|
|
69
|
+
"""
|
|
70
|
+
|
|
71
|
+
def timestamp(arg1) -> retval: ...
|
|
72
|
+
|
|
73
|
+
|
cv2/gapi/video.pyi
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
'''
|
|
2
|
+
encode: utf-8
|
|
3
|
+
Date: 2026-02-19 15:09:25
|
|
4
|
+
LastEditTime: 2026-02-19 15:09:25
|
|
5
|
+
FilePath: /genout6/media/adminmaster/veracrypt3/Develop/td-opencv/dev/base.pyi
|
|
6
|
+
'''
|
|
7
|
+
import typing
|
|
8
|
+
from typing import overload
|
|
9
|
+
|
|
10
|
+
T0=typing.TypeVar("T0")
|
|
11
|
+
T1=typing.TypeVar("T1")
|
|
12
|
+
T2=typing.TypeVar("T2")
|
|
13
|
+
T3=typing.TypeVar("T3")
|
|
14
|
+
T4=typing.TypeVar("T4")
|
|
15
|
+
T5=typing.TypeVar("T5")
|
|
16
|
+
T6=typing.TypeVar("T6")
|
|
17
|
+
T7=typing.TypeVar("T7")
|
|
18
|
+
T8=typing.TypeVar("T8")
|
|
19
|
+
|
|
20
|
+
retval=typing.Any
|
|
21
|
+
readyIndex=int
|
|
22
|
+
|
|
23
|
+
TYPE_BS_MOG2:int = ...
|
|
24
|
+
TYPE_BS_KNN:int = ...
|
|
25
|
+
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
'''
|
|
2
|
+
encode: utf-8
|
|
3
|
+
Date: 2026-02-19 15:09:25
|
|
4
|
+
LastEditTime: 2026-02-19 15:09:25
|
|
5
|
+
FilePath: /genout6/media/adminmaster/veracrypt3/Develop/td-opencv/dev/base.pyi
|
|
6
|
+
'''
|
|
7
|
+
import typing
|
|
8
|
+
from typing import overload
|
|
9
|
+
|
|
10
|
+
T0=typing.TypeVar("T0")
|
|
11
|
+
T1=typing.TypeVar("T1")
|
|
12
|
+
T2=typing.TypeVar("T2")
|
|
13
|
+
T3=typing.TypeVar("T3")
|
|
14
|
+
T4=typing.TypeVar("T4")
|
|
15
|
+
T5=typing.TypeVar("T5")
|
|
16
|
+
T6=typing.TypeVar("T6")
|
|
17
|
+
T7=typing.TypeVar("T7")
|
|
18
|
+
T8=typing.TypeVar("T8")
|
|
19
|
+
|
|
20
|
+
retval=typing.Any
|
|
21
|
+
readyIndex=int
|
|
22
|
+
|
|
23
|
+
class GOutputs:
|
|
24
|
+
def getGScalar(self) -> retval: ...
|
|
25
|
+
|
|
26
|
+
def getGOpaque(self,type) -> retval: ...
|
|
27
|
+
|
|
28
|
+
def getGMat(self) -> retval: ...
|
|
29
|
+
|
|
30
|
+
def getGArray(self,type) -> retval: ...
|
|
31
|
+
|
|
32
|
+
class IStreamSource: ...
|
|
33
|
+
def get_streaming_source(pipeline,appsinkName:str,outputType=...) -> retval:
|
|
34
|
+
"""
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
```
|
|
38
|
+
"""
|
|
39
|
+
|
|
40
|
+
@overload
|
|
41
|
+
def make_capture_src(path:str,properties=...) -> retval:
|
|
42
|
+
"""
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
```
|
|
46
|
+
"""
|
|
47
|
+
|
|
48
|
+
@overload
|
|
49
|
+
def make_capture_src(id:int,properties=...) -> retval:
|
|
50
|
+
"""
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
```
|
|
54
|
+
"""
|
|
55
|
+
|
|
56
|
+
def make_gst_src(pipeline:str,outputType=...) -> retval:
|
|
57
|
+
"""
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
```
|
|
61
|
+
"""
|
|
62
|
+
|
|
63
|
+
def make_py_src(src) -> retval:
|
|
64
|
+
"""
|
|
65
|
+
```
|
|
66
|
+
Creates a G-API IStreamSource that delegates to a Python-defined source.
|
|
67
|
+
```
|
|
68
|
+
---
|
|
69
|
+
```
|
|
70
|
+
Parameters:
|
|
71
|
+
src: A cv::Ptr<IStreamSource> that internally holds the original Python object.
|
|
72
|
+
```
|
|
73
|
+
"""
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
from . import draw
|
|
77
|
+
from . import gst
|
|
78
|
+
from . import onevpl
|
cv2/gapi/wip/draw.pyi
ADDED
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
'''
|
|
2
|
+
encode: utf-8
|
|
3
|
+
Date: 2026-02-19 15:09:25
|
|
4
|
+
LastEditTime: 2026-02-19 15:09:25
|
|
5
|
+
FilePath: /genout6/media/adminmaster/veracrypt3/Develop/td-opencv/dev/base.pyi
|
|
6
|
+
'''
|
|
7
|
+
import typing
|
|
8
|
+
from typing import overload
|
|
9
|
+
|
|
10
|
+
T0=typing.TypeVar("T0")
|
|
11
|
+
T1=typing.TypeVar("T1")
|
|
12
|
+
T2=typing.TypeVar("T2")
|
|
13
|
+
T3=typing.TypeVar("T3")
|
|
14
|
+
T4=typing.TypeVar("T4")
|
|
15
|
+
T5=typing.TypeVar("T5")
|
|
16
|
+
T6=typing.TypeVar("T6")
|
|
17
|
+
T7=typing.TypeVar("T7")
|
|
18
|
+
T8=typing.TypeVar("T8")
|
|
19
|
+
|
|
20
|
+
retval=typing.Any
|
|
21
|
+
readyIndex=int
|
|
22
|
+
|
|
23
|
+
class Text:
|
|
24
|
+
def __init__(self) -> None: ...
|
|
25
|
+
|
|
26
|
+
@overload
|
|
27
|
+
def __init__(self,text_:str,org_,ff_:int,fs_:float,color_,thick_:int=...,lt_:int=...,bottom_left_origin_:bool=...) -> None:
|
|
28
|
+
"""
|
|
29
|
+
```
|
|
30
|
+
Text constructor.
|
|
31
|
+
```
|
|
32
|
+
---
|
|
33
|
+
```
|
|
34
|
+
Parameters:
|
|
35
|
+
text_: The text string to be drawn
|
|
36
|
+
org_: The bottom-left corner of the text string in the image
|
|
37
|
+
ff_: The font type, see HersheyFonts
|
|
38
|
+
fs_: The font scale factor that is multiplied by the font-specific base size
|
|
39
|
+
color_: The text color
|
|
40
|
+
thick_: The thickness of the lines used to draw a text
|
|
41
|
+
lt_: The line type. See LineTypes
|
|
42
|
+
bottom_left_origin_: When true, the image data origin is at the bottom-left corner. Otherwise, it is at the top-left corner
|
|
43
|
+
```
|
|
44
|
+
"""
|
|
45
|
+
|
|
46
|
+
class Rect:
|
|
47
|
+
@overload
|
|
48
|
+
def __init__(self,rect_,color_,thick_:int=...,lt_:int=...,shift_:int=...) -> None:
|
|
49
|
+
"""
|
|
50
|
+
```
|
|
51
|
+
Rect constructor.
|
|
52
|
+
```
|
|
53
|
+
---
|
|
54
|
+
```
|
|
55
|
+
Parameters:
|
|
56
|
+
rect_: Coordinates of the rectangle
|
|
57
|
+
color_: The bottom-left corner of the text string in the image
|
|
58
|
+
thick_: The thickness of lines that make up the rectangle. Negative values, like FILLED, mean that the function has to draw a filled rectangle
|
|
59
|
+
lt_: The type of the line. See LineTypes
|
|
60
|
+
shift_: The number of fractional bits in the point coordinates
|
|
61
|
+
```
|
|
62
|
+
"""
|
|
63
|
+
|
|
64
|
+
def __init__(self) -> None: ...
|
|
65
|
+
|
|
66
|
+
class Circle:
|
|
67
|
+
def __init__(self) -> None: ...
|
|
68
|
+
|
|
69
|
+
@overload
|
|
70
|
+
def __init__(self,center_,radius_:int,color_,thick_:int=...,lt_:int=...,shift_:int=...) -> None:
|
|
71
|
+
"""
|
|
72
|
+
```
|
|
73
|
+
Circle constructor.
|
|
74
|
+
```
|
|
75
|
+
---
|
|
76
|
+
```
|
|
77
|
+
Parameters:
|
|
78
|
+
center_: The center of the circle
|
|
79
|
+
radius_: The radius of the circle
|
|
80
|
+
color_: The color of the circle
|
|
81
|
+
thick_: The thickness of the circle outline, if positive. Negative values, like FILLED, mean that a filled circle is to be drawn
|
|
82
|
+
lt_: The Type of the circle boundary. See LineTypes
|
|
83
|
+
shift_: The Number of fractional bits in the coordinates of the center and in the radius value
|
|
84
|
+
```
|
|
85
|
+
"""
|
|
86
|
+
|
|
87
|
+
class Line:
|
|
88
|
+
def __init__(self) -> None: ...
|
|
89
|
+
|
|
90
|
+
@overload
|
|
91
|
+
def __init__(self,pt1_,pt2_,color_,thick_:int=...,lt_:int=...,shift_:int=...) -> None:
|
|
92
|
+
"""
|
|
93
|
+
```
|
|
94
|
+
Line constructor.
|
|
95
|
+
```
|
|
96
|
+
---
|
|
97
|
+
```
|
|
98
|
+
Parameters:
|
|
99
|
+
pt1_: The first point of the line segment
|
|
100
|
+
pt2_: The second point of the line segment
|
|
101
|
+
color_: The line color
|
|
102
|
+
thick_: The thickness of line
|
|
103
|
+
lt_: The Type of the line. See LineTypes
|
|
104
|
+
shift_: The number of fractional bits in the point coordinates
|
|
105
|
+
```
|
|
106
|
+
"""
|
|
107
|
+
|
|
108
|
+
class Mosaic:
|
|
109
|
+
@overload
|
|
110
|
+
def __init__(self,mos_,cellSz_:int,decim_:int) -> None:
|
|
111
|
+
"""
|
|
112
|
+
```
|
|
113
|
+
Mosaic constructor.
|
|
114
|
+
```
|
|
115
|
+
---
|
|
116
|
+
```
|
|
117
|
+
Parameters:
|
|
118
|
+
mos_: Coordinates of the mosaic
|
|
119
|
+
cellSz_: Cell size (same for X, Y)
|
|
120
|
+
decim_: Decimation (0 stands for no decimation)
|
|
121
|
+
```
|
|
122
|
+
"""
|
|
123
|
+
|
|
124
|
+
def __init__(self) -> None: ...
|
|
125
|
+
|
|
126
|
+
class Image:
|
|
127
|
+
def __init__(self) -> None: ...
|
|
128
|
+
|
|
129
|
+
@overload
|
|
130
|
+
def __init__(self,org_,img_,alpha_) -> None:
|
|
131
|
+
"""
|
|
132
|
+
```
|
|
133
|
+
Mosaic constructor.
|
|
134
|
+
```
|
|
135
|
+
---
|
|
136
|
+
```
|
|
137
|
+
Parameters:
|
|
138
|
+
org_: The bottom-left corner of the image
|
|
139
|
+
img_: Image to draw
|
|
140
|
+
alpha_: Alpha channel for image to draw (same size and number of channels)
|
|
141
|
+
```
|
|
142
|
+
"""
|
|
143
|
+
|
|
144
|
+
class Poly:
|
|
145
|
+
def __init__(self) -> None: ...
|
|
146
|
+
|
|
147
|
+
@overload
|
|
148
|
+
def __init__(self,points_,color_,thick_:int=...,lt_:int=...,shift_:int=...) -> None:
|
|
149
|
+
"""
|
|
150
|
+
```
|
|
151
|
+
Mosaic constructor.
|
|
152
|
+
```
|
|
153
|
+
---
|
|
154
|
+
```
|
|
155
|
+
Parameters:
|
|
156
|
+
points_: Points to connect
|
|
157
|
+
color_: The line color
|
|
158
|
+
thick_: The thickness of line
|
|
159
|
+
lt_: The Type of the line. See LineTypes
|
|
160
|
+
shift_: The number of fractional bits in the point coordinate
|
|
161
|
+
```
|
|
162
|
+
"""
|
|
163
|
+
|
|
164
|
+
@overload
|
|
165
|
+
def render(bgr,prims,args=...) -> None:
|
|
166
|
+
"""
|
|
167
|
+
```
|
|
168
|
+
The function renders on the input image passed drawing primitivies.
|
|
169
|
+
```
|
|
170
|
+
---
|
|
171
|
+
```
|
|
172
|
+
Parameters:
|
|
173
|
+
bgr: input image: 8-bit unsigned 3-channel image CV_8UC3.
|
|
174
|
+
prims: vector of drawing primitivies
|
|
175
|
+
args: graph compile time parameters
|
|
176
|
+
```
|
|
177
|
+
"""
|
|
178
|
+
|
|
179
|
+
@overload
|
|
180
|
+
def render(y_plane,uv_plane,prims,args=...) -> None:
|
|
181
|
+
"""
|
|
182
|
+
```
|
|
183
|
+
The function renders on two NV12 planes passed drawing primitivies.
|
|
184
|
+
```
|
|
185
|
+
---
|
|
186
|
+
```
|
|
187
|
+
Parameters:
|
|
188
|
+
y_plane: input image: 8-bit unsigned 1-channel image CV_8UC1.
|
|
189
|
+
uv_plane: input image: 8-bit unsigned 2-channel image CV_8UC2.
|
|
190
|
+
prims: vector of drawing primitivies
|
|
191
|
+
args: graph compile time parameters
|
|
192
|
+
```
|
|
193
|
+
"""
|
|
194
|
+
|
|
195
|
+
def render3ch(src,prims) -> retval:
|
|
196
|
+
"""
|
|
197
|
+
```
|
|
198
|
+
Renders on 3 channels input.
|
|
199
|
+
```
|
|
200
|
+
---
|
|
201
|
+
```
|
|
202
|
+
Parameters:
|
|
203
|
+
src: input image: 8-bit unsigned 3-channel image CV_8UC3
|
|
204
|
+
prims: draw primitives
|
|
205
|
+
```
|
|
206
|
+
"""
|
|
207
|
+
|
|
208
|
+
def renderNV12(y,uv,prims) -> retval:
|
|
209
|
+
"""
|
|
210
|
+
```
|
|
211
|
+
Renders on two planes.
|
|
212
|
+
```
|
|
213
|
+
---
|
|
214
|
+
```
|
|
215
|
+
Parameters:
|
|
216
|
+
y: input image: 8-bit unsigned 1-channel image CV_8UC1
|
|
217
|
+
uv: input image: 8-bit unsigned 2-channel image CV_8UC2
|
|
218
|
+
prims: draw primitives
|
|
219
|
+
```
|
|
220
|
+
"""
|
|
221
|
+
|
|
222
|
+
|
cv2/gapi/wip/gst.pyi
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
'''
|
|
2
|
+
encode: utf-8
|
|
3
|
+
Date: 2026-02-19 15:09:25
|
|
4
|
+
LastEditTime: 2026-02-19 15:09:25
|
|
5
|
+
FilePath: /genout6/media/adminmaster/veracrypt3/Develop/td-opencv/dev/base.pyi
|
|
6
|
+
'''
|
|
7
|
+
import typing
|
|
8
|
+
from typing import overload
|
|
9
|
+
|
|
10
|
+
T0=typing.TypeVar("T0")
|
|
11
|
+
T1=typing.TypeVar("T1")
|
|
12
|
+
T2=typing.TypeVar("T2")
|
|
13
|
+
T3=typing.TypeVar("T3")
|
|
14
|
+
T4=typing.TypeVar("T4")
|
|
15
|
+
T5=typing.TypeVar("T5")
|
|
16
|
+
T6=typing.TypeVar("T6")
|
|
17
|
+
T7=typing.TypeVar("T7")
|
|
18
|
+
T8=typing.TypeVar("T8")
|
|
19
|
+
|
|
20
|
+
retval=typing.Any
|
|
21
|
+
readyIndex=int
|
|
22
|
+
|
|
23
|
+
GStreamerSource_OutputType_FRAME:int = ...
|
|
24
|
+
GStreamerSource_OutputType_MAT:int = ...
|
|
25
|
+
class GStreamerPipeline:
|
|
26
|
+
@overload
|
|
27
|
+
def __init__(self,pipeline:str) -> None:
|
|
28
|
+
"""
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
```
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
|