opencv-contrib-python-headless 4.11.0.86__cp37-abi3-win32.whl → 4.13.0.90__cp37-abi3-win32.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/LICENSE-3RD-PARTY.txt +423 -0
- cv2/__init__.pyi +279 -102
- cv2/aruco/__init__.pyi +19 -1
- cv2/barcode/__init__.pyi +2 -1
- cv2/bgsegm/__init__.pyi +25 -0
- cv2/config.py +1 -1
- cv2/cuda/__init__.pyi +2 -0
- cv2/cv2.pyd +0 -0
- cv2/dnn/__init__.pyi +38 -23
- cv2/face/__init__.pyi +8 -7
- cv2/fisheye/__init__.pyi +7 -2
- cv2/flann/__init__.pyi +4 -3
- cv2/gapi/wip/__init__.pyi +2 -0
- cv2/instr/__init__.pyi +24 -0
- cv2/load_config_py3.py +1 -1
- cv2/ml/__init__.pyi +11 -10
- cv2/{opencv_videoio_ffmpeg4110.dll → opencv_videoio_ffmpeg4130.dll} +0 -0
- cv2/ppf_match_3d/__init__.pyi +4 -3
- cv2/quality/__init__.pyi +14 -14
- cv2/saliency/__init__.pyi +2 -4
- cv2/stereo/__init__.pyi +3 -2
- cv2/text/__init__.pyi +15 -14
- cv2/typing/__init__.py +4 -4
- cv2/utils/__init__.pyi +1 -0
- cv2/utils/logging/__init__.pyi +22 -0
- cv2/version.py +1 -1
- cv2/ximgproc/__init__.pyi +4 -0
- {opencv_contrib_python_headless-4.11.0.86.dist-info → opencv_contrib_python_headless-4.13.0.90.dist-info}/LICENSE-3RD-PARTY.txt +423 -0
- {opencv_contrib_python_headless-4.11.0.86.dist-info → opencv_contrib_python_headless-4.13.0.90.dist-info}/METADATA +5 -11
- {opencv_contrib_python_headless-4.11.0.86.dist-info → opencv_contrib_python_headless-4.13.0.90.dist-info}/RECORD +33 -31
- {opencv_contrib_python_headless-4.11.0.86.dist-info → opencv_contrib_python_headless-4.13.0.90.dist-info}/LICENSE.txt +0 -0
- {opencv_contrib_python_headless-4.11.0.86.dist-info → opencv_contrib_python_headless-4.13.0.90.dist-info}/WHEEL +0 -0
- {opencv_contrib_python_headless-4.11.0.86.dist-info → opencv_contrib_python_headless-4.13.0.90.dist-info}/top_level.txt +0 -0
cv2/quality/__init__.pyi
CHANGED
|
@@ -10,9 +10,9 @@ import typing as _typing
|
|
|
10
10
|
class QualityBase(cv2.Algorithm):
|
|
11
11
|
# Functions
|
|
12
12
|
@_typing.overload
|
|
13
|
-
def compute(self, img: cv2.typing.MatLike) ->
|
|
13
|
+
def compute(self, img: cv2.typing.MatLike) -> tuple[float, float, float, float]: ...
|
|
14
14
|
@_typing.overload
|
|
15
|
-
def compute(self, img: cv2.UMat) ->
|
|
15
|
+
def compute(self, img: cv2.UMat) -> tuple[float, float, float, float]: ...
|
|
16
16
|
|
|
17
17
|
@_typing.overload
|
|
18
18
|
def getQualityMap(self, dst: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
|
|
@@ -27,13 +27,13 @@ class QualityBase(cv2.Algorithm):
|
|
|
27
27
|
class QualityBRISQUE(QualityBase):
|
|
28
28
|
# Functions
|
|
29
29
|
@_typing.overload
|
|
30
|
-
def compute(self, img: cv2.typing.MatLike) ->
|
|
30
|
+
def compute(self, img: cv2.typing.MatLike) -> tuple[float, float, float, float]: ...
|
|
31
31
|
@_typing.overload
|
|
32
|
-
def compute(self, img: cv2.UMat) ->
|
|
32
|
+
def compute(self, img: cv2.UMat) -> tuple[float, float, float, float]: ...
|
|
33
33
|
@_typing.overload
|
|
34
|
-
def compute(self, img: cv2.typing.MatLike, model_file_path: str, range_file_path: str) ->
|
|
34
|
+
def compute(self, img: cv2.typing.MatLike, model_file_path: str, range_file_path: str) -> tuple[float, float, float, float]: ...
|
|
35
35
|
@_typing.overload
|
|
36
|
-
def compute(self, img: cv2.UMat, model_file_path: str, range_file_path: str) ->
|
|
36
|
+
def compute(self, img: cv2.UMat, model_file_path: str, range_file_path: str) -> tuple[float, float, float, float]: ...
|
|
37
37
|
|
|
38
38
|
@classmethod
|
|
39
39
|
@_typing.overload
|
|
@@ -53,9 +53,9 @@ class QualityBRISQUE(QualityBase):
|
|
|
53
53
|
class QualityGMSD(QualityBase):
|
|
54
54
|
# Functions
|
|
55
55
|
@_typing.overload
|
|
56
|
-
def compute(self, cmp: cv2.typing.MatLike) ->
|
|
56
|
+
def compute(self, cmp: cv2.typing.MatLike) -> tuple[float, float, float, float]: ...
|
|
57
57
|
@_typing.overload
|
|
58
|
-
def compute(self, cmp: cv2.UMat) ->
|
|
58
|
+
def compute(self, cmp: cv2.UMat) -> tuple[float, float, float, float]: ...
|
|
59
59
|
@_typing.overload
|
|
60
60
|
def compute(self, ref: cv2.typing.MatLike, cmp: cv2.typing.MatLike, qualityMap: cv2.typing.MatLike | None = ...) -> tuple[cv2.typing.Scalar, cv2.typing.MatLike]: ...
|
|
61
61
|
@_typing.overload
|
|
@@ -76,9 +76,9 @@ class QualityGMSD(QualityBase):
|
|
|
76
76
|
class QualityMSE(QualityBase):
|
|
77
77
|
# Functions
|
|
78
78
|
@_typing.overload
|
|
79
|
-
def compute(self, cmpImgs: _typing.Sequence[cv2.typing.MatLike]) ->
|
|
79
|
+
def compute(self, cmpImgs: _typing.Sequence[cv2.typing.MatLike]) -> tuple[float, float, float, float]: ...
|
|
80
80
|
@_typing.overload
|
|
81
|
-
def compute(self, cmpImgs: _typing.Sequence[cv2.UMat]) ->
|
|
81
|
+
def compute(self, cmpImgs: _typing.Sequence[cv2.UMat]) -> tuple[float, float, float, float]: ...
|
|
82
82
|
@_typing.overload
|
|
83
83
|
def compute(self, ref: cv2.typing.MatLike, cmp: cv2.typing.MatLike, qualityMap: cv2.typing.MatLike | None = ...) -> tuple[cv2.typing.Scalar, cv2.typing.MatLike]: ...
|
|
84
84
|
@_typing.overload
|
|
@@ -106,9 +106,9 @@ class QualityPSNR(QualityBase):
|
|
|
106
106
|
def create(cls, ref: cv2.UMat, maxPixelValue: float = ...) -> QualityPSNR: ...
|
|
107
107
|
|
|
108
108
|
@_typing.overload
|
|
109
|
-
def compute(self, cmp: cv2.typing.MatLike) ->
|
|
109
|
+
def compute(self, cmp: cv2.typing.MatLike) -> tuple[float, float, float, float]: ...
|
|
110
110
|
@_typing.overload
|
|
111
|
-
def compute(self, cmp: cv2.UMat) ->
|
|
111
|
+
def compute(self, cmp: cv2.UMat) -> tuple[float, float, float, float]: ...
|
|
112
112
|
@_typing.overload
|
|
113
113
|
def compute(self, ref: cv2.typing.MatLike, cmp: cv2.typing.MatLike, qualityMap: cv2.typing.MatLike | None = ..., maxPixelValue: float = ...) -> tuple[cv2.typing.Scalar, cv2.typing.MatLike]: ...
|
|
114
114
|
@_typing.overload
|
|
@@ -126,9 +126,9 @@ class QualityPSNR(QualityBase):
|
|
|
126
126
|
class QualitySSIM(QualityBase):
|
|
127
127
|
# Functions
|
|
128
128
|
@_typing.overload
|
|
129
|
-
def compute(self, cmp: cv2.typing.MatLike) ->
|
|
129
|
+
def compute(self, cmp: cv2.typing.MatLike) -> tuple[float, float, float, float]: ...
|
|
130
130
|
@_typing.overload
|
|
131
|
-
def compute(self, cmp: cv2.UMat) ->
|
|
131
|
+
def compute(self, cmp: cv2.UMat) -> tuple[float, float, float, float]: ...
|
|
132
132
|
@_typing.overload
|
|
133
133
|
def compute(self, ref: cv2.typing.MatLike, cmp: cv2.typing.MatLike, qualityMap: cv2.typing.MatLike | None = ...) -> tuple[cv2.typing.Scalar, cv2.typing.MatLike]: ...
|
|
134
134
|
@_typing.overload
|
cv2/saliency/__init__.pyi
CHANGED
|
@@ -40,6 +40,8 @@ class StaticSaliencySpectralResidual(StaticSaliency):
|
|
|
40
40
|
|
|
41
41
|
def read(self, fn: cv2.FileNode) -> None: ...
|
|
42
42
|
|
|
43
|
+
def write(self, fs: cv2.FileStorage) -> None: ...
|
|
44
|
+
|
|
43
45
|
def getImageWidth(self) -> int: ...
|
|
44
46
|
|
|
45
47
|
def setImageWidth(self, val: int) -> None: ...
|
|
@@ -93,10 +95,6 @@ class ObjectnessBING(Objectness):
|
|
|
93
95
|
@_typing.overload
|
|
94
96
|
def computeSaliency(self, image: cv2.UMat, saliencyMap: cv2.UMat | None = ...) -> tuple[bool, cv2.UMat]: ...
|
|
95
97
|
|
|
96
|
-
def read(self) -> None: ...
|
|
97
|
-
|
|
98
|
-
def write(self) -> None: ...
|
|
99
|
-
|
|
100
98
|
def getobjectnessValues(self) -> _typing.Sequence[float]: ...
|
|
101
99
|
|
|
102
100
|
def setTrainingPath(self, trainingPath: str) -> None: ...
|
cv2/stereo/__init__.pyi
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
__all__: list[str] = []
|
|
2
2
|
|
|
3
3
|
import cv2.typing
|
|
4
|
+
import os
|
|
4
5
|
|
|
5
6
|
|
|
6
7
|
# Enumerations
|
|
@@ -66,9 +67,9 @@ class QuasiDenseStereo:
|
|
|
66
67
|
Param: PropagationParameters
|
|
67
68
|
|
|
68
69
|
# Functions
|
|
69
|
-
def loadParameters(self, filepath: str) -> int: ...
|
|
70
|
+
def loadParameters(self, filepath: str | os.PathLike[str]) -> int: ...
|
|
70
71
|
|
|
71
|
-
def saveParameters(self, filepath: str) -> int: ...
|
|
72
|
+
def saveParameters(self, filepath: str | os.PathLike[str]) -> int: ...
|
|
72
73
|
|
|
73
74
|
def getSparseMatches(self) -> _typing.Sequence[MatchQuasiDense]: ...
|
|
74
75
|
|
cv2/text/__init__.pyi
CHANGED
|
@@ -2,6 +2,7 @@ __all__: list[str] = []
|
|
|
2
2
|
|
|
3
3
|
import cv2
|
|
4
4
|
import cv2.typing
|
|
5
|
+
import os
|
|
5
6
|
import typing as _typing
|
|
6
7
|
|
|
7
8
|
|
|
@@ -101,10 +102,10 @@ class OCRHMMDecoder(BaseOCR):
|
|
|
101
102
|
def create(cls, classifier: OCRHMMDecoder.ClassifierCallback, vocabulary: str, transition_probabilities_table: cv2.UMat, emission_probabilities_table: cv2.UMat, mode: int = ...) -> OCRHMMDecoder: ...
|
|
102
103
|
@classmethod
|
|
103
104
|
@_typing.overload
|
|
104
|
-
def create(cls, filename: str, vocabulary: str, transition_probabilities_table: cv2.typing.MatLike, emission_probabilities_table: cv2.typing.MatLike, mode: int = ..., classifier: int = ...) -> OCRHMMDecoder: ...
|
|
105
|
+
def create(cls, filename: str | os.PathLike[str], vocabulary: str, transition_probabilities_table: cv2.typing.MatLike, emission_probabilities_table: cv2.typing.MatLike, mode: int = ..., classifier: int = ...) -> OCRHMMDecoder: ...
|
|
105
106
|
@classmethod
|
|
106
107
|
@_typing.overload
|
|
107
|
-
def create(cls, filename: str, vocabulary: str, transition_probabilities_table: cv2.UMat, emission_probabilities_table: cv2.UMat, mode: int = ..., classifier: int = ...) -> OCRHMMDecoder: ...
|
|
108
|
+
def create(cls, filename: str | os.PathLike[str], vocabulary: str, transition_probabilities_table: cv2.UMat, emission_probabilities_table: cv2.UMat, mode: int = ..., classifier: int = ...) -> OCRHMMDecoder: ...
|
|
108
109
|
|
|
109
110
|
|
|
110
111
|
class OCRBeamSearchDecoder(BaseOCR):
|
|
@@ -160,12 +161,12 @@ def computeNMChannels(_src: cv2.UMat, _channels: _typing.Sequence[cv2.UMat] | No
|
|
|
160
161
|
@_typing.overload
|
|
161
162
|
def createERFilterNM1(cb: ERFilter.Callback, thresholdDelta: int = ..., minArea: float = ..., maxArea: float = ..., minProbability: float = ..., nonMaxSuppression: bool = ..., minProbabilityDiff: float = ...) -> ERFilter: ...
|
|
162
163
|
@_typing.overload
|
|
163
|
-
def createERFilterNM1(filename: str, thresholdDelta: int = ..., minArea: float = ..., maxArea: float = ..., minProbability: float = ..., nonMaxSuppression: bool = ..., minProbabilityDiff: float = ...) -> ERFilter: ...
|
|
164
|
+
def createERFilterNM1(filename: str | os.PathLike[str], thresholdDelta: int = ..., minArea: float = ..., maxArea: float = ..., minProbability: float = ..., nonMaxSuppression: bool = ..., minProbabilityDiff: float = ...) -> ERFilter: ...
|
|
164
165
|
|
|
165
166
|
@_typing.overload
|
|
166
167
|
def createERFilterNM2(cb: ERFilter.Callback, minProbability: float = ...) -> ERFilter: ...
|
|
167
168
|
@_typing.overload
|
|
168
|
-
def createERFilterNM2(filename: str, minProbability: float = ...) -> ERFilter: ...
|
|
169
|
+
def createERFilterNM2(filename: str | os.PathLike[str], minProbability: float = ...) -> ERFilter: ...
|
|
169
170
|
|
|
170
171
|
def createOCRHMMTransitionsTable(vocabulary: str, lexicon: _typing.Sequence[str]) -> cv2.typing.MatLike: ...
|
|
171
172
|
|
|
@@ -174,9 +175,9 @@ def detectRegions(image: cv2.typing.MatLike, er_filter1: ERFilter, er_filter2: E
|
|
|
174
175
|
@_typing.overload
|
|
175
176
|
def detectRegions(image: cv2.UMat, er_filter1: ERFilter, er_filter2: ERFilter) -> _typing.Sequence[_typing.Sequence[cv2.typing.Point]]: ...
|
|
176
177
|
@_typing.overload
|
|
177
|
-
def detectRegions(image: cv2.typing.MatLike, er_filter1: ERFilter, er_filter2: ERFilter, method: int = ..., filename: str = ..., minProbability: float = ...) -> _typing.Sequence[cv2.typing.Rect]: ...
|
|
178
|
+
def detectRegions(image: cv2.typing.MatLike, er_filter1: ERFilter, er_filter2: ERFilter, method: int = ..., filename: str | os.PathLike[str] = ..., minProbability: float = ...) -> _typing.Sequence[cv2.typing.Rect]: ...
|
|
178
179
|
@_typing.overload
|
|
179
|
-
def detectRegions(image: cv2.UMat, er_filter1: ERFilter, er_filter2: ERFilter, method: int = ..., filename: str = ..., minProbability: float = ...) -> _typing.Sequence[cv2.typing.Rect]: ...
|
|
180
|
+
def detectRegions(image: cv2.UMat, er_filter1: ERFilter, er_filter2: ERFilter, method: int = ..., filename: str | os.PathLike[str] = ..., minProbability: float = ...) -> _typing.Sequence[cv2.typing.Rect]: ...
|
|
180
181
|
|
|
181
182
|
@_typing.overload
|
|
182
183
|
def detectTextSWT(input: cv2.typing.MatLike, dark_on_light: bool, draw: cv2.typing.MatLike | None = ..., chainBBs: cv2.typing.MatLike | None = ...) -> tuple[_typing.Sequence[cv2.typing.Rect], cv2.typing.MatLike, cv2.typing.MatLike]: ...
|
|
@@ -184,20 +185,20 @@ def detectTextSWT(input: cv2.typing.MatLike, dark_on_light: bool, draw: cv2.typi
|
|
|
184
185
|
def detectTextSWT(input: cv2.UMat, dark_on_light: bool, draw: cv2.UMat | None = ..., chainBBs: cv2.UMat | None = ...) -> tuple[_typing.Sequence[cv2.typing.Rect], cv2.UMat, cv2.UMat]: ...
|
|
185
186
|
|
|
186
187
|
@_typing.overload
|
|
187
|
-
def erGrouping(image: cv2.typing.MatLike, channel: cv2.typing.MatLike, regions: _typing.Sequence[_typing.Sequence[cv2.typing.Point]], method: int = ..., filename: str = ..., minProbablity: float = ...) -> _typing.Sequence[cv2.typing.Rect]: ...
|
|
188
|
+
def erGrouping(image: cv2.typing.MatLike, channel: cv2.typing.MatLike, regions: _typing.Sequence[_typing.Sequence[cv2.typing.Point]], method: int = ..., filename: str | os.PathLike[str] = ..., minProbablity: float = ...) -> _typing.Sequence[cv2.typing.Rect]: ...
|
|
188
189
|
@_typing.overload
|
|
189
|
-
def erGrouping(image: cv2.UMat, channel: cv2.UMat, regions: _typing.Sequence[_typing.Sequence[cv2.typing.Point]], method: int = ..., filename: str = ..., minProbablity: float = ...) -> _typing.Sequence[cv2.typing.Rect]: ...
|
|
190
|
+
def erGrouping(image: cv2.UMat, channel: cv2.UMat, regions: _typing.Sequence[_typing.Sequence[cv2.typing.Point]], method: int = ..., filename: str | os.PathLike[str] = ..., minProbablity: float = ...) -> _typing.Sequence[cv2.typing.Rect]: ...
|
|
190
191
|
|
|
191
|
-
def loadClassifierNM1(filename: str) -> ERFilter.Callback: ...
|
|
192
|
+
def loadClassifierNM1(filename: str | os.PathLike[str]) -> ERFilter.Callback: ...
|
|
192
193
|
|
|
193
|
-
def loadClassifierNM2(filename: str) -> ERFilter.Callback: ...
|
|
194
|
+
def loadClassifierNM2(filename: str | os.PathLike[str]) -> ERFilter.Callback: ...
|
|
194
195
|
|
|
195
|
-
def loadOCRBeamSearchClassifierCNN(filename: str) -> OCRBeamSearchDecoder.ClassifierCallback: ...
|
|
196
|
+
def loadOCRBeamSearchClassifierCNN(filename: str | os.PathLike[str]) -> OCRBeamSearchDecoder.ClassifierCallback: ...
|
|
196
197
|
|
|
197
|
-
def loadOCRHMMClassifier(filename: str, classifier: int) -> OCRHMMDecoder.ClassifierCallback: ...
|
|
198
|
+
def loadOCRHMMClassifier(filename: str | os.PathLike[str], classifier: int) -> OCRHMMDecoder.ClassifierCallback: ...
|
|
198
199
|
|
|
199
|
-
def loadOCRHMMClassifierCNN(filename: str) -> OCRHMMDecoder.ClassifierCallback: ...
|
|
200
|
+
def loadOCRHMMClassifierCNN(filename: str | os.PathLike[str]) -> OCRHMMDecoder.ClassifierCallback: ...
|
|
200
201
|
|
|
201
|
-
def loadOCRHMMClassifierNM(filename: str) -> OCRHMMDecoder.ClassifierCallback: ...
|
|
202
|
+
def loadOCRHMMClassifierNM(filename: str | os.PathLike[str]) -> OCRHMMDecoder.ClassifierCallback: ...
|
|
202
203
|
|
|
203
204
|
|
cv2/typing/__init__.py
CHANGED
|
@@ -60,9 +60,9 @@ __all__ = [
|
|
|
60
60
|
|
|
61
61
|
import cv2
|
|
62
62
|
import typing as _typing
|
|
63
|
-
import numpy
|
|
64
|
-
import cv2.mat_wrapper
|
|
65
63
|
import cv2.dnn
|
|
64
|
+
import cv2.mat_wrapper
|
|
65
|
+
import numpy
|
|
66
66
|
import cv2.gapi.wip.draw
|
|
67
67
|
|
|
68
68
|
|
|
@@ -98,8 +98,8 @@ Size = _typing.Sequence[int]
|
|
|
98
98
|
"""Required length is 2"""
|
|
99
99
|
Size2f = _typing.Sequence[float]
|
|
100
100
|
"""Required length is 2"""
|
|
101
|
-
Scalar = _typing.Sequence[float]
|
|
102
|
-
"""
|
|
101
|
+
Scalar = _typing.Union[_typing.Sequence[float], float]
|
|
102
|
+
"""Max sequence length is at most 4"""
|
|
103
103
|
Point = _typing.Sequence[int]
|
|
104
104
|
"""Required length is 2"""
|
|
105
105
|
Point2i = Point
|
cv2/utils/__init__.pyi
CHANGED
|
@@ -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
|
+
|
cv2/version.py
CHANGED
cv2/ximgproc/__init__.pyi
CHANGED