opencv-contrib-python-headless 4.13.0.90__cp37-abi3-manylinux_2_28_aarch64.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/__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_headless-4.13.0.90.dist-info/LICENSE-3RD-PARTY.txt +3513 -0
- opencv_contrib_python_headless-4.13.0.90.dist-info/LICENSE.txt +21 -0
- opencv_contrib_python_headless-4.13.0.90.dist-info/METADATA +300 -0
- opencv_contrib_python_headless-4.13.0.90.dist-info/RECORD +149 -0
- opencv_contrib_python_headless-4.13.0.90.dist-info/WHEEL +5 -0
- opencv_contrib_python_headless-4.13.0.90.dist-info/sboms/auditwheel.cdx.json +1 -0
- opencv_contrib_python_headless-4.13.0.90.dist-info/top_level.txt +1 -0
- opencv_contrib_python_headless.libs/libXau-7926f62a.so.6.0.0 +0 -0
- opencv_contrib_python_headless.libs/libaom-0b2390d3.so.3.12.1 +0 -0
- opencv_contrib_python_headless.libs/libavcodec-5696b3bf.so.59.37.100 +0 -0
- opencv_contrib_python_headless.libs/libavdevice-827b98cd.so.59.7.100 +0 -0
- opencv_contrib_python_headless.libs/libavfilter-75ac0576.so.8.44.100 +0 -0
- opencv_contrib_python_headless.libs/libavformat-bf63de55.so.59.27.100 +0 -0
- opencv_contrib_python_headless.libs/libavif-acfd7f95.so.16.3.0 +0 -0
- opencv_contrib_python_headless.libs/libavutil-cac768a8.so.57.28.100 +0 -0
- opencv_contrib_python_headless.libs/libcrypto-3dc39733.so.1.1.1k +0 -0
- opencv_contrib_python_headless.libs/libgfortran-e1b7dfc8.so.5.0.0 +0 -0
- opencv_contrib_python_headless.libs/libopenblasp-r0-e3ea6fd1.3.15.so +0 -0
- opencv_contrib_python_headless.libs/libpng16-e3f0ef52.so.16.48.0 +0 -0
- opencv_contrib_python_headless.libs/libssl-b6e07dfa.so.1.1.1k +0 -0
- opencv_contrib_python_headless.libs/libswresample-a12ab15e.so.4.7.100 +0 -0
- opencv_contrib_python_headless.libs/libswscale-27999517.so.6.7.100 +0 -0
- opencv_contrib_python_headless.libs/libvpx-c84f69c8.so.11.0.0 +0 -0
- opencv_contrib_python_headless.libs/libxcb-shape-c3b64477.so.0.0.0 +0 -0
- opencv_contrib_python_headless.libs/libxcb-shm-1266c612.so.0.0.0 +0 -0
- opencv_contrib_python_headless.libs/libxcb-xfixes-a124fd6b.so.0.0.0 +0 -0
cv2/gapi/ie/__init__.pyi
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
__all__: list[str] = []
|
|
2
|
+
|
|
3
|
+
import cv2.typing
|
|
4
|
+
import typing as _typing
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
from cv2.gapi.ie import detail as detail
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
# Enumerations
|
|
11
|
+
TraitAs_TENSOR: int
|
|
12
|
+
TRAIT_AS_TENSOR: int
|
|
13
|
+
TraitAs_IMAGE: int
|
|
14
|
+
TRAIT_AS_IMAGE: int
|
|
15
|
+
TraitAs = int
|
|
16
|
+
"""One of [TraitAs_TENSOR, TRAIT_AS_TENSOR, TraitAs_IMAGE, TRAIT_AS_IMAGE]"""
|
|
17
|
+
|
|
18
|
+
Sync: int
|
|
19
|
+
SYNC: int
|
|
20
|
+
Async: int
|
|
21
|
+
ASYNC: int
|
|
22
|
+
InferMode = int
|
|
23
|
+
"""One of [Sync, SYNC, Async, ASYNC]"""
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
# Classes
|
|
28
|
+
class PyParams:
|
|
29
|
+
# Functions
|
|
30
|
+
@_typing.overload
|
|
31
|
+
def __init__(self) -> None: ...
|
|
32
|
+
@_typing.overload
|
|
33
|
+
def __init__(self, tag: str, model: str, weights: str, device: str) -> None: ...
|
|
34
|
+
@_typing.overload
|
|
35
|
+
def __init__(self, tag: str, model: str, device: str) -> None: ...
|
|
36
|
+
|
|
37
|
+
def constInput(self, layer_name: str, data: cv2.typing.MatLike, hint: TraitAs = ...) -> PyParams: ...
|
|
38
|
+
|
|
39
|
+
def cfgNumRequests(self, nireq: int) -> PyParams: ...
|
|
40
|
+
|
|
41
|
+
def cfgBatchSize(self, size: int) -> PyParams: ...
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
# Functions
|
|
46
|
+
@_typing.overload
|
|
47
|
+
def params(tag: str, model: str, weights: str, device: str) -> PyParams: ...
|
|
48
|
+
@_typing.overload
|
|
49
|
+
def params(tag: str, model: str, device: str) -> PyParams: ...
|
|
50
|
+
|
|
51
|
+
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
__all__: list[str] = []
|
|
2
|
+
|
|
3
|
+
ParamDesc_Kind_Load: int
|
|
4
|
+
PARAM_DESC_KIND_LOAD: int
|
|
5
|
+
ParamDesc_Kind_Import: int
|
|
6
|
+
PARAM_DESC_KIND_IMPORT: int
|
|
7
|
+
ParamDesc_Kind = int
|
|
8
|
+
"""One of [ParamDesc_Kind_Load, PARAM_DESC_KIND_LOAD, ParamDesc_Kind_Import, PARAM_DESC_KIND_IMPORT]"""
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
# Classes
|
|
12
|
+
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
__all__: list[str] = []
|
|
2
|
+
|
|
3
|
+
EncoderConfig_RateControlMode_CBR: int
|
|
4
|
+
ENCODER_CONFIG_RATE_CONTROL_MODE_CBR: int
|
|
5
|
+
EncoderConfig_RateControlMode_VBR: int
|
|
6
|
+
ENCODER_CONFIG_RATE_CONTROL_MODE_VBR: int
|
|
7
|
+
EncoderConfig_RateControlMode = int
|
|
8
|
+
"""One of [EncoderConfig_RateControlMode_CBR, ENCODER_CONFIG_RATE_CONTROL_MODE_CBR, EncoderConfig_RateControlMode_VBR, ENCODER_CONFIG_RATE_CONTROL_MODE_VBR]"""
|
|
9
|
+
|
|
10
|
+
EncoderConfig_Profile_H264_BASELINE: int
|
|
11
|
+
ENCODER_CONFIG_PROFILE_H264_BASELINE: int
|
|
12
|
+
EncoderConfig_Profile_H264_HIGH: int
|
|
13
|
+
ENCODER_CONFIG_PROFILE_H264_HIGH: int
|
|
14
|
+
EncoderConfig_Profile_H264_MAIN: int
|
|
15
|
+
ENCODER_CONFIG_PROFILE_H264_MAIN: int
|
|
16
|
+
EncoderConfig_Profile_H265_MAIN: int
|
|
17
|
+
ENCODER_CONFIG_PROFILE_H265_MAIN: int
|
|
18
|
+
EncoderConfig_Profile_MJPEG: int
|
|
19
|
+
ENCODER_CONFIG_PROFILE_MJPEG: int
|
|
20
|
+
EncoderConfig_Profile = int
|
|
21
|
+
"""One of [EncoderConfig_Profile_H264_BASELINE, ENCODER_CONFIG_PROFILE_H264_BASELINE, EncoderConfig_Profile_H264_HIGH, ENCODER_CONFIG_PROFILE_H264_HIGH, EncoderConfig_Profile_H264_MAIN, ENCODER_CONFIG_PROFILE_H264_MAIN, EncoderConfig_Profile_H265_MAIN, ENCODER_CONFIG_PROFILE_H265_MAIN, EncoderConfig_Profile_MJPEG, ENCODER_CONFIG_PROFILE_MJPEG]"""
|
|
22
|
+
|
|
23
|
+
ColorCameraParams_BoardSocket_RGB: int
|
|
24
|
+
COLOR_CAMERA_PARAMS_BOARD_SOCKET_RGB: int
|
|
25
|
+
ColorCameraParams_BoardSocket_BGR: int
|
|
26
|
+
COLOR_CAMERA_PARAMS_BOARD_SOCKET_BGR: int
|
|
27
|
+
ColorCameraParams_BoardSocket = int
|
|
28
|
+
"""One of [ColorCameraParams_BoardSocket_RGB, COLOR_CAMERA_PARAMS_BOARD_SOCKET_RGB, ColorCameraParams_BoardSocket_BGR, COLOR_CAMERA_PARAMS_BOARD_SOCKET_BGR]"""
|
|
29
|
+
|
|
30
|
+
ColorCameraParams_Resolution_THE_1080_P: int
|
|
31
|
+
COLOR_CAMERA_PARAMS_RESOLUTION_THE_1080_P: int
|
|
32
|
+
ColorCameraParams_Resolution = int
|
|
33
|
+
"""One of [ColorCameraParams_Resolution_THE_1080_P, COLOR_CAMERA_PARAMS_RESOLUTION_THE_1080_P]"""
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
# Classes
|
|
37
|
+
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
__all__: list[str] = []
|
|
2
|
+
|
|
3
|
+
import cv2.gapi.onnx.ep
|
|
4
|
+
import cv2.typing
|
|
5
|
+
import typing as _typing
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
from cv2.gapi.onnx import ep as ep
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
# Enumerations
|
|
12
|
+
TraitAs_TENSOR: int
|
|
13
|
+
TRAIT_AS_TENSOR: int
|
|
14
|
+
TraitAs_IMAGE: int
|
|
15
|
+
TRAIT_AS_IMAGE: int
|
|
16
|
+
TraitAs = int
|
|
17
|
+
"""One of [TraitAs_TENSOR, TRAIT_AS_TENSOR, TraitAs_IMAGE, TRAIT_AS_IMAGE]"""
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
# Classes
|
|
22
|
+
class PyParams:
|
|
23
|
+
# Functions
|
|
24
|
+
@_typing.overload
|
|
25
|
+
def __init__(self) -> None: ...
|
|
26
|
+
@_typing.overload
|
|
27
|
+
def __init__(self, tag: str, model_path: str) -> None: ...
|
|
28
|
+
|
|
29
|
+
def cfgMeanStd(self, layer_name: str, m: cv2.typing.Scalar, s: cv2.typing.Scalar) -> PyParams: ...
|
|
30
|
+
|
|
31
|
+
def cfgNormalize(self, layer_name: str, flag: bool) -> PyParams: ...
|
|
32
|
+
|
|
33
|
+
@_typing.overload
|
|
34
|
+
def cfgAddExecutionProvider(self, ep: cv2.gapi.onnx.ep.OpenVINO) -> PyParams: ...
|
|
35
|
+
@_typing.overload
|
|
36
|
+
def cfgAddExecutionProvider(self, ep: cv2.gapi.onnx.ep.DirectML) -> PyParams: ...
|
|
37
|
+
@_typing.overload
|
|
38
|
+
def cfgAddExecutionProvider(self, ep: cv2.gapi.onnx.ep.CoreML) -> PyParams: ...
|
|
39
|
+
@_typing.overload
|
|
40
|
+
def cfgAddExecutionProvider(self, ep: cv2.gapi.onnx.ep.CUDA) -> PyParams: ...
|
|
41
|
+
@_typing.overload
|
|
42
|
+
def cfgAddExecutionProvider(self, ep: cv2.gapi.onnx.ep.TensorRT) -> PyParams: ...
|
|
43
|
+
|
|
44
|
+
def cfgDisableMemPattern(self) -> PyParams: ...
|
|
45
|
+
|
|
46
|
+
def cfgSessionOptions(self, options: cv2.typing.map_string_and_string) -> PyParams: ...
|
|
47
|
+
|
|
48
|
+
def cfgOptLevel(self, opt_level: int) -> PyParams: ...
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
# Functions
|
|
53
|
+
def params(tag: str, model_path: str) -> PyParams: ...
|
|
54
|
+
|
|
55
|
+
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
__all__: list[str] = []
|
|
2
|
+
|
|
3
|
+
import cv2.typing
|
|
4
|
+
import typing as _typing
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
# Classes
|
|
8
|
+
class CoreML:
|
|
9
|
+
# Functions
|
|
10
|
+
def __init__(self) -> None: ...
|
|
11
|
+
|
|
12
|
+
def cfgUseCPUOnly(self) -> CoreML: ...
|
|
13
|
+
|
|
14
|
+
def cfgEnableOnSubgraph(self) -> CoreML: ...
|
|
15
|
+
|
|
16
|
+
def cfgEnableOnlyNeuralEngine(self) -> CoreML: ...
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class CUDA:
|
|
20
|
+
# Functions
|
|
21
|
+
@_typing.overload
|
|
22
|
+
def __init__(self) -> None: ...
|
|
23
|
+
@_typing.overload
|
|
24
|
+
def __init__(self, dev_id: int) -> None: ...
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class TensorRT:
|
|
28
|
+
# Functions
|
|
29
|
+
@_typing.overload
|
|
30
|
+
def __init__(self) -> None: ...
|
|
31
|
+
@_typing.overload
|
|
32
|
+
def __init__(self, dev_id: int) -> None: ...
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
class OpenVINO:
|
|
36
|
+
# Functions
|
|
37
|
+
@_typing.overload
|
|
38
|
+
def __init__(self) -> None: ...
|
|
39
|
+
@_typing.overload
|
|
40
|
+
def __init__(self, dev_type: str) -> None: ...
|
|
41
|
+
@_typing.overload
|
|
42
|
+
def __init__(self, params: cv2.typing.map_string_and_string) -> None: ...
|
|
43
|
+
|
|
44
|
+
def cfgCacheDir(self, dir: str) -> OpenVINO: ...
|
|
45
|
+
|
|
46
|
+
def cfgNumThreads(self, nthreads: int) -> OpenVINO: ...
|
|
47
|
+
|
|
48
|
+
def cfgEnableOpenCLThrottling(self) -> OpenVINO: ...
|
|
49
|
+
|
|
50
|
+
def cfgEnableDynamicShapes(self) -> OpenVINO: ...
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
class DirectML:
|
|
54
|
+
# Functions
|
|
55
|
+
@_typing.overload
|
|
56
|
+
def __init__(self) -> None: ...
|
|
57
|
+
@_typing.overload
|
|
58
|
+
def __init__(self, device_id: int) -> None: ...
|
|
59
|
+
@_typing.overload
|
|
60
|
+
def __init__(self, adapter_name: str) -> None: ...
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
cv2/gapi/ot/__init__.pyi
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
__all__: list[str] = []
|
|
2
|
+
|
|
3
|
+
import cv2
|
|
4
|
+
import typing as _typing
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
from cv2.gapi.ot import cpu as cpu
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
# Enumerations
|
|
11
|
+
NEW: int
|
|
12
|
+
TRACKED: int
|
|
13
|
+
LOST: int
|
|
14
|
+
TrackingStatus = int
|
|
15
|
+
"""One of [NEW, TRACKED, LOST]"""
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
# Classes
|
|
20
|
+
class ObjectTrackerParams:
|
|
21
|
+
max_num_objects: int
|
|
22
|
+
input_image_format: int
|
|
23
|
+
tracking_per_class: bool
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
# Functions
|
|
27
|
+
@_typing.overload
|
|
28
|
+
def track(mat: cv2.GMat, detected_rects: cv2.GArrayT, detected_class_labels: cv2.GArrayT, delta: float) -> tuple[cv2.GArrayT, cv2.GArrayT, cv2.GArrayT, cv2.GArrayT]: ...
|
|
29
|
+
@_typing.overload
|
|
30
|
+
def track(frame: cv2.GFrame, detected_rects: cv2.GArrayT, detected_class_labels: cv2.GArrayT, delta: float) -> tuple[cv2.GArrayT, cv2.GArrayT, cv2.GArrayT, cv2.GArrayT]: ...
|
|
31
|
+
|
|
32
|
+
|
cv2/gapi/ov/__init__.pyi
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
__all__: list[str] = []
|
|
2
|
+
|
|
3
|
+
import cv2.typing
|
|
4
|
+
import typing as _typing
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
# Classes
|
|
8
|
+
class PyParams:
|
|
9
|
+
# Functions
|
|
10
|
+
@_typing.overload
|
|
11
|
+
def __init__(self) -> None: ...
|
|
12
|
+
@_typing.overload
|
|
13
|
+
def __init__(self, tag: str, model_path: str, bin_path: str, device: str) -> None: ...
|
|
14
|
+
@_typing.overload
|
|
15
|
+
def __init__(self, tag: str, blob_path: str, device: str) -> None: ...
|
|
16
|
+
|
|
17
|
+
def cfgPluginConfig(self, config: cv2.typing.map_string_and_string) -> PyParams: ...
|
|
18
|
+
|
|
19
|
+
@_typing.overload
|
|
20
|
+
def cfgInputTensorLayout(self, tensor_layout: str) -> PyParams: ...
|
|
21
|
+
@_typing.overload
|
|
22
|
+
def cfgInputTensorLayout(self, layout_map: cv2.typing.map_string_and_string) -> PyParams: ...
|
|
23
|
+
|
|
24
|
+
@_typing.overload
|
|
25
|
+
def cfgInputModelLayout(self, tensor_layout: str) -> PyParams: ...
|
|
26
|
+
@_typing.overload
|
|
27
|
+
def cfgInputModelLayout(self, layout_map: cv2.typing.map_string_and_string) -> PyParams: ...
|
|
28
|
+
|
|
29
|
+
@_typing.overload
|
|
30
|
+
def cfgOutputTensorLayout(self, tensor_layout: str) -> PyParams: ...
|
|
31
|
+
@_typing.overload
|
|
32
|
+
def cfgOutputTensorLayout(self, layout_map: cv2.typing.map_string_and_string) -> PyParams: ...
|
|
33
|
+
|
|
34
|
+
@_typing.overload
|
|
35
|
+
def cfgOutputModelLayout(self, tensor_layout: str) -> PyParams: ...
|
|
36
|
+
@_typing.overload
|
|
37
|
+
def cfgOutputModelLayout(self, layout_map: cv2.typing.map_string_and_string) -> PyParams: ...
|
|
38
|
+
|
|
39
|
+
@_typing.overload
|
|
40
|
+
def cfgOutputTensorPrecision(self, precision: int) -> PyParams: ...
|
|
41
|
+
@_typing.overload
|
|
42
|
+
def cfgOutputTensorPrecision(self, precision_map: cv2.typing.map_string_and_int) -> PyParams: ...
|
|
43
|
+
|
|
44
|
+
@_typing.overload
|
|
45
|
+
def cfgReshape(self, new_shape: _typing.Sequence[int]) -> PyParams: ...
|
|
46
|
+
@_typing.overload
|
|
47
|
+
def cfgReshape(self, new_shape_map: cv2.typing.map_string_and_vector_size_t) -> PyParams: ...
|
|
48
|
+
|
|
49
|
+
def cfgNumRequests(self, nireq: int) -> PyParams: ...
|
|
50
|
+
|
|
51
|
+
@_typing.overload
|
|
52
|
+
def cfgMean(self, mean_values: _typing.Sequence[float]) -> PyParams: ...
|
|
53
|
+
@_typing.overload
|
|
54
|
+
def cfgMean(self, mean_map: cv2.typing.map_string_and_vector_float) -> PyParams: ...
|
|
55
|
+
|
|
56
|
+
@_typing.overload
|
|
57
|
+
def cfgScale(self, scale_values: _typing.Sequence[float]) -> PyParams: ...
|
|
58
|
+
@_typing.overload
|
|
59
|
+
def cfgScale(self, scale_map: cv2.typing.map_string_and_vector_float) -> PyParams: ...
|
|
60
|
+
|
|
61
|
+
@_typing.overload
|
|
62
|
+
def cfgResize(self, interpolation: int) -> PyParams: ...
|
|
63
|
+
@_typing.overload
|
|
64
|
+
def cfgResize(self, interpolation: cv2.typing.map_string_and_int) -> PyParams: ...
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
# Functions
|
|
69
|
+
@_typing.overload
|
|
70
|
+
def params(tag: str, model_path: str, weights: str, device: str) -> PyParams: ...
|
|
71
|
+
@_typing.overload
|
|
72
|
+
def params(tag: str, bin_path: str, device: str) -> PyParams: ...
|
|
73
|
+
|
|
74
|
+
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
__all__: list[str] = []
|
|
2
|
+
|
|
3
|
+
import cv2
|
|
4
|
+
import typing as _typing
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
# Enumerations
|
|
8
|
+
sync_policy_dont_sync: int
|
|
9
|
+
SYNC_POLICY_DONT_SYNC: int
|
|
10
|
+
sync_policy_drop: int
|
|
11
|
+
SYNC_POLICY_DROP: int
|
|
12
|
+
sync_policy = int
|
|
13
|
+
"""One of [sync_policy_dont_sync, SYNC_POLICY_DONT_SYNC, sync_policy_drop, SYNC_POLICY_DROP]"""
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# Classes
|
|
18
|
+
class queue_capacity:
|
|
19
|
+
capacity: int
|
|
20
|
+
|
|
21
|
+
# Functions
|
|
22
|
+
def __init__(self, cap: int = ...) -> None: ...
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
# Functions
|
|
27
|
+
def desync(g: cv2.GMat) -> cv2.GMat: ...
|
|
28
|
+
|
|
29
|
+
def seqNo(arg1: cv2.GMat) -> cv2.GOpaqueT: ...
|
|
30
|
+
|
|
31
|
+
def seq_id(arg1: cv2.GMat) -> cv2.GOpaqueT: ...
|
|
32
|
+
|
|
33
|
+
@_typing.overload
|
|
34
|
+
def size(src: cv2.GMat) -> cv2.GOpaqueT: ...
|
|
35
|
+
@_typing.overload
|
|
36
|
+
def size(r: cv2.GOpaqueT) -> cv2.GOpaqueT: ...
|
|
37
|
+
@_typing.overload
|
|
38
|
+
def size(src: cv2.GFrame) -> cv2.GOpaqueT: ...
|
|
39
|
+
|
|
40
|
+
def timestamp(arg1: cv2.GMat) -> cv2.GOpaqueT: ...
|
|
41
|
+
|
|
42
|
+
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
__all__: list[str] = []
|
|
2
|
+
|
|
3
|
+
import cv2
|
|
4
|
+
import cv2.gapi
|
|
5
|
+
import cv2.gapi.wip.gst
|
|
6
|
+
import cv2.typing
|
|
7
|
+
import typing as _typing
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
from cv2.gapi.wip import draw as draw
|
|
11
|
+
from cv2.gapi.wip import gst as gst
|
|
12
|
+
from cv2.gapi.wip import onevpl as onevpl
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
# Classes
|
|
16
|
+
class GOutputs:
|
|
17
|
+
# Functions
|
|
18
|
+
def getGMat(self) -> cv2.GMat: ...
|
|
19
|
+
|
|
20
|
+
def getGScalar(self) -> cv2.GScalar: ...
|
|
21
|
+
|
|
22
|
+
def getGArray(self, type: cv2.gapi.ArgType) -> cv2.GArrayT: ...
|
|
23
|
+
|
|
24
|
+
def getGOpaque(self, type: cv2.gapi.ArgType) -> cv2.GOpaqueT: ...
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class IStreamSource:
|
|
28
|
+
...
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
# Functions
|
|
32
|
+
def get_streaming_source(pipeline: cv2.gapi.wip.gst.GStreamerPipeline, appsinkName: str, outputType: cv2.gapi.wip.gst.GStreamerSource_OutputType = ...) -> IStreamSource: ...
|
|
33
|
+
|
|
34
|
+
@_typing.overload
|
|
35
|
+
def make_capture_src(path: str, properties: cv2.typing.map_int_and_double = ...) -> IStreamSource: ...
|
|
36
|
+
@_typing.overload
|
|
37
|
+
def make_capture_src(id: int, properties: cv2.typing.map_int_and_double = ...) -> IStreamSource: ...
|
|
38
|
+
|
|
39
|
+
def make_gst_src(pipeline: str, outputType: cv2.gapi.wip.gst.GStreamerSource_OutputType = ...) -> IStreamSource: ...
|
|
40
|
+
|
|
41
|
+
def make_py_src(src: IStreamSource) -> IStreamSource: ...
|
|
42
|
+
|
|
43
|
+
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
__all__: list[str] = []
|
|
2
|
+
|
|
3
|
+
import cv2
|
|
4
|
+
import cv2.typing
|
|
5
|
+
import typing as _typing
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
# Classes
|
|
9
|
+
class Text:
|
|
10
|
+
text: str
|
|
11
|
+
org: cv2.typing.Point
|
|
12
|
+
ff: int
|
|
13
|
+
fs: float
|
|
14
|
+
color: cv2.typing.Scalar
|
|
15
|
+
thick: int
|
|
16
|
+
lt: int
|
|
17
|
+
bottom_left_origin: bool
|
|
18
|
+
|
|
19
|
+
# Functions
|
|
20
|
+
@_typing.overload
|
|
21
|
+
def __init__(self, text_: str, org_: cv2.typing.Point, ff_: int, fs_: float, color_: cv2.typing.Scalar, thick_: int = ..., lt_: int = ..., bottom_left_origin_: bool = ...) -> None: ...
|
|
22
|
+
@_typing.overload
|
|
23
|
+
def __init__(self) -> None: ...
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class Rect:
|
|
27
|
+
rect: cv2.typing.Rect
|
|
28
|
+
color: cv2.typing.Scalar
|
|
29
|
+
thick: int
|
|
30
|
+
lt: int
|
|
31
|
+
shift: int
|
|
32
|
+
|
|
33
|
+
# Functions
|
|
34
|
+
@_typing.overload
|
|
35
|
+
def __init__(self) -> None: ...
|
|
36
|
+
@_typing.overload
|
|
37
|
+
def __init__(self, rect_: cv2.typing.Rect2i, color_: cv2.typing.Scalar, thick_: int = ..., lt_: int = ..., shift_: int = ...) -> None: ...
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
class Circle:
|
|
41
|
+
center: cv2.typing.Point
|
|
42
|
+
radius: int
|
|
43
|
+
color: cv2.typing.Scalar
|
|
44
|
+
thick: int
|
|
45
|
+
lt: int
|
|
46
|
+
shift: int
|
|
47
|
+
|
|
48
|
+
# Functions
|
|
49
|
+
@_typing.overload
|
|
50
|
+
def __init__(self, center_: cv2.typing.Point, radius_: int, color_: cv2.typing.Scalar, thick_: int = ..., lt_: int = ..., shift_: int = ...) -> None: ...
|
|
51
|
+
@_typing.overload
|
|
52
|
+
def __init__(self) -> None: ...
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
class Line:
|
|
56
|
+
pt1: cv2.typing.Point
|
|
57
|
+
pt2: cv2.typing.Point
|
|
58
|
+
color: cv2.typing.Scalar
|
|
59
|
+
thick: int
|
|
60
|
+
lt: int
|
|
61
|
+
shift: int
|
|
62
|
+
|
|
63
|
+
# Functions
|
|
64
|
+
@_typing.overload
|
|
65
|
+
def __init__(self, pt1_: cv2.typing.Point, pt2_: cv2.typing.Point, color_: cv2.typing.Scalar, thick_: int = ..., lt_: int = ..., shift_: int = ...) -> None: ...
|
|
66
|
+
@_typing.overload
|
|
67
|
+
def __init__(self) -> None: ...
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
class Mosaic:
|
|
71
|
+
mos: cv2.typing.Rect
|
|
72
|
+
cellSz: int
|
|
73
|
+
decim: int
|
|
74
|
+
|
|
75
|
+
# Functions
|
|
76
|
+
@_typing.overload
|
|
77
|
+
def __init__(self) -> None: ...
|
|
78
|
+
@_typing.overload
|
|
79
|
+
def __init__(self, mos_: cv2.typing.Rect2i, cellSz_: int, decim_: int) -> None: ...
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
class Image:
|
|
83
|
+
org: cv2.typing.Point
|
|
84
|
+
img: cv2.typing.MatLike
|
|
85
|
+
alpha: cv2.typing.MatLike
|
|
86
|
+
|
|
87
|
+
# Functions
|
|
88
|
+
@_typing.overload
|
|
89
|
+
def __init__(self, org_: cv2.typing.Point, img_: cv2.typing.MatLike, alpha_: cv2.typing.MatLike) -> None: ...
|
|
90
|
+
@_typing.overload
|
|
91
|
+
def __init__(self) -> None: ...
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
class Poly:
|
|
95
|
+
points: _typing.Sequence[cv2.typing.Point]
|
|
96
|
+
color: cv2.typing.Scalar
|
|
97
|
+
thick: int
|
|
98
|
+
lt: int
|
|
99
|
+
shift: int
|
|
100
|
+
|
|
101
|
+
# Functions
|
|
102
|
+
@_typing.overload
|
|
103
|
+
def __init__(self, points_: _typing.Sequence[cv2.typing.Point], color_: cv2.typing.Scalar, thick_: int = ..., lt_: int = ..., shift_: int = ...) -> None: ...
|
|
104
|
+
@_typing.overload
|
|
105
|
+
def __init__(self) -> None: ...
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
# Functions
|
|
110
|
+
@_typing.overload
|
|
111
|
+
def render(bgr: cv2.typing.MatLike, prims: _typing.Sequence[cv2.typing.Prim], args: _typing.Sequence[cv2.GCompileArg] = ...) -> None: ...
|
|
112
|
+
@_typing.overload
|
|
113
|
+
def render(y_plane: cv2.typing.MatLike, uv_plane: cv2.typing.MatLike, prims: _typing.Sequence[cv2.typing.Prim], args: _typing.Sequence[cv2.GCompileArg] = ...) -> None: ...
|
|
114
|
+
|
|
115
|
+
def render3ch(src: cv2.GMat, prims: cv2.GArrayT) -> cv2.GMat: ...
|
|
116
|
+
|
|
117
|
+
def renderNV12(y: cv2.GMat, uv: cv2.GMat, prims: cv2.GArrayT) -> tuple[cv2.GMat, cv2.GMat]: ...
|
|
118
|
+
|
|
119
|
+
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
__all__: list[str] = []
|
|
2
|
+
|
|
3
|
+
GStreamerSource_OutputType_FRAME: int
|
|
4
|
+
GSTREAMER_SOURCE_OUTPUT_TYPE_FRAME: int
|
|
5
|
+
GStreamerSource_OutputType_MAT: int
|
|
6
|
+
GSTREAMER_SOURCE_OUTPUT_TYPE_MAT: int
|
|
7
|
+
GStreamerSource_OutputType = int
|
|
8
|
+
"""One of [GStreamerSource_OutputType_FRAME, GSTREAMER_SOURCE_OUTPUT_TYPE_FRAME, GStreamerSource_OutputType_MAT, GSTREAMER_SOURCE_OUTPUT_TYPE_MAT]"""
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
# Classes
|
|
12
|
+
class GStreamerPipeline:
|
|
13
|
+
# Functions
|
|
14
|
+
def __init__(self, pipeline: str) -> None: ...
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
__all__: list[str] = []
|
|
2
|
+
|
|
3
|
+
# Enumerations
|
|
4
|
+
AccelType_HOST: int
|
|
5
|
+
ACCEL_TYPE_HOST: int
|
|
6
|
+
AccelType_DX11: int
|
|
7
|
+
ACCEL_TYPE_DX11: int
|
|
8
|
+
AccelType_VAAPI: int
|
|
9
|
+
ACCEL_TYPE_VAAPI: int
|
|
10
|
+
AccelType_LAST_VALUE: int
|
|
11
|
+
ACCEL_TYPE_LAST_VALUE: int
|
|
12
|
+
AccelType = int
|
|
13
|
+
"""One of [AccelType_HOST, ACCEL_TYPE_HOST, AccelType_DX11, ACCEL_TYPE_DX11, AccelType_VAAPI, ACCEL_TYPE_VAAPI, AccelType_LAST_VALUE, ACCEL_TYPE_LAST_VALUE]"""
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|