opencv-python 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/config.py +1 -1
- cv2/cuda/__init__.pyi +2 -0
- cv2/cv2.pyd +0 -0
- cv2/dnn/__init__.pyi +38 -23
- 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/typing/__init__.py +4 -4
- cv2/utils/__init__.pyi +1 -0
- cv2/utils/logging/__init__.pyi +22 -0
- cv2/version.py +1 -1
- {opencv_python-4.11.0.86.dist-info → opencv_python-4.13.0.90.dist-info}/LICENSE-3RD-PARTY.txt +423 -0
- {opencv_python-4.11.0.86.dist-info → opencv_python-4.13.0.90.dist-info}/METADATA +5 -11
- {opencv_python-4.11.0.86.dist-info → opencv_python-4.13.0.90.dist-info}/RECORD +25 -23
- {opencv_python-4.11.0.86.dist-info → opencv_python-4.13.0.90.dist-info}/LICENSE.txt +0 -0
- {opencv_python-4.11.0.86.dist-info → opencv_python-4.13.0.90.dist-info}/WHEEL +0 -0
- {opencv_python-4.11.0.86.dist-info → opencv_python-4.13.0.90.dist-info}/top_level.txt +0 -0
cv2/__init__.pyi
CHANGED
|
@@ -9,6 +9,7 @@ import cv2.gapi.ot
|
|
|
9
9
|
import cv2.gapi.streaming
|
|
10
10
|
import cv2.typing
|
|
11
11
|
import numpy
|
|
12
|
+
import os
|
|
12
13
|
import typing as _typing
|
|
13
14
|
|
|
14
15
|
|
|
@@ -21,6 +22,7 @@ from cv2 import dnn as dnn
|
|
|
21
22
|
from cv2 import fisheye as fisheye
|
|
22
23
|
from cv2 import flann as flann
|
|
23
24
|
from cv2 import gapi as gapi
|
|
25
|
+
from cv2 import instr as instr
|
|
24
26
|
from cv2 import ipp as ipp
|
|
25
27
|
from cv2 import ml as ml
|
|
26
28
|
from cv2 import ocl as ocl
|
|
@@ -210,8 +212,9 @@ MorphTypes = int
|
|
|
210
212
|
MORPH_RECT: int
|
|
211
213
|
MORPH_CROSS: int
|
|
212
214
|
MORPH_ELLIPSE: int
|
|
215
|
+
MORPH_DIAMOND: int
|
|
213
216
|
MorphShapes = int
|
|
214
|
-
"""One of [MORPH_RECT, MORPH_CROSS, MORPH_ELLIPSE]"""
|
|
217
|
+
"""One of [MORPH_RECT, MORPH_CROSS, MORPH_ELLIPSE, MORPH_DIAMOND]"""
|
|
215
218
|
|
|
216
219
|
INTER_NEAREST: int
|
|
217
220
|
INTER_LINEAR: int
|
|
@@ -264,8 +267,9 @@ THRESH_TOZERO_INV: int
|
|
|
264
267
|
THRESH_MASK: int
|
|
265
268
|
THRESH_OTSU: int
|
|
266
269
|
THRESH_TRIANGLE: int
|
|
270
|
+
THRESH_DRYRUN: int
|
|
267
271
|
ThresholdTypes = int
|
|
268
|
-
"""One of [THRESH_BINARY, THRESH_BINARY_INV, THRESH_TRUNC, THRESH_TOZERO, THRESH_TOZERO_INV, THRESH_MASK, THRESH_OTSU, THRESH_TRIANGLE]"""
|
|
272
|
+
"""One of [THRESH_BINARY, THRESH_BINARY_INV, THRESH_TRUNC, THRESH_TOZERO, THRESH_TOZERO_INV, THRESH_MASK, THRESH_OTSU, THRESH_TRIANGLE, THRESH_DRYRUN]"""
|
|
269
273
|
|
|
270
274
|
ADAPTIVE_THRESH_MEAN_C: int
|
|
271
275
|
ADAPTIVE_THRESH_GAUSSIAN_C: int
|
|
@@ -1179,6 +1183,8 @@ IMWRITE_JPEG_SAMPLING_FACTOR: int
|
|
|
1179
1183
|
IMWRITE_PNG_COMPRESSION: int
|
|
1180
1184
|
IMWRITE_PNG_STRATEGY: int
|
|
1181
1185
|
IMWRITE_PNG_BILEVEL: int
|
|
1186
|
+
IMWRITE_PNG_FILTER: int
|
|
1187
|
+
IMWRITE_PNG_ZLIBBUFFER_SIZE: int
|
|
1182
1188
|
IMWRITE_PXM_BINARY: int
|
|
1183
1189
|
IMWRITE_EXR_TYPE: int
|
|
1184
1190
|
IMWRITE_EXR_COMPRESSION: int
|
|
@@ -1200,6 +1206,7 @@ IMWRITE_JPEGXL_QUALITY: int
|
|
|
1200
1206
|
IMWRITE_JPEGXL_EFFORT: int
|
|
1201
1207
|
IMWRITE_JPEGXL_DISTANCE: int
|
|
1202
1208
|
IMWRITE_JPEGXL_DECODING_SPEED: int
|
|
1209
|
+
IMWRITE_BMP_COMPRESSION: int
|
|
1203
1210
|
IMWRITE_GIF_LOOP: int
|
|
1204
1211
|
IMWRITE_GIF_SPEED: int
|
|
1205
1212
|
IMWRITE_GIF_QUALITY: int
|
|
@@ -1207,7 +1214,7 @@ IMWRITE_GIF_DITHER: int
|
|
|
1207
1214
|
IMWRITE_GIF_TRANSPARENCY: int
|
|
1208
1215
|
IMWRITE_GIF_COLORTABLE: int
|
|
1209
1216
|
ImwriteFlags = int
|
|
1210
|
-
"""One of [IMWRITE_JPEG_QUALITY, IMWRITE_JPEG_PROGRESSIVE, IMWRITE_JPEG_OPTIMIZE, IMWRITE_JPEG_RST_INTERVAL, IMWRITE_JPEG_LUMA_QUALITY, IMWRITE_JPEG_CHROMA_QUALITY, IMWRITE_JPEG_SAMPLING_FACTOR, IMWRITE_PNG_COMPRESSION, IMWRITE_PNG_STRATEGY, IMWRITE_PNG_BILEVEL, IMWRITE_PXM_BINARY, IMWRITE_EXR_TYPE, IMWRITE_EXR_COMPRESSION, IMWRITE_EXR_DWA_COMPRESSION_LEVEL, IMWRITE_WEBP_QUALITY, IMWRITE_HDR_COMPRESSION, IMWRITE_PAM_TUPLETYPE, IMWRITE_TIFF_RESUNIT, IMWRITE_TIFF_XDPI, IMWRITE_TIFF_YDPI, IMWRITE_TIFF_COMPRESSION, IMWRITE_TIFF_ROWSPERSTRIP, IMWRITE_TIFF_PREDICTOR, IMWRITE_JPEG2000_COMPRESSION_X1000, IMWRITE_AVIF_QUALITY, IMWRITE_AVIF_DEPTH, IMWRITE_AVIF_SPEED, IMWRITE_JPEGXL_QUALITY, IMWRITE_JPEGXL_EFFORT, IMWRITE_JPEGXL_DISTANCE, IMWRITE_JPEGXL_DECODING_SPEED, IMWRITE_GIF_LOOP, IMWRITE_GIF_SPEED, IMWRITE_GIF_QUALITY, IMWRITE_GIF_DITHER, IMWRITE_GIF_TRANSPARENCY, IMWRITE_GIF_COLORTABLE]"""
|
|
1217
|
+
"""One of [IMWRITE_JPEG_QUALITY, IMWRITE_JPEG_PROGRESSIVE, IMWRITE_JPEG_OPTIMIZE, IMWRITE_JPEG_RST_INTERVAL, IMWRITE_JPEG_LUMA_QUALITY, IMWRITE_JPEG_CHROMA_QUALITY, IMWRITE_JPEG_SAMPLING_FACTOR, IMWRITE_PNG_COMPRESSION, IMWRITE_PNG_STRATEGY, IMWRITE_PNG_BILEVEL, IMWRITE_PNG_FILTER, IMWRITE_PNG_ZLIBBUFFER_SIZE, IMWRITE_PXM_BINARY, IMWRITE_EXR_TYPE, IMWRITE_EXR_COMPRESSION, IMWRITE_EXR_DWA_COMPRESSION_LEVEL, IMWRITE_WEBP_QUALITY, IMWRITE_HDR_COMPRESSION, IMWRITE_PAM_TUPLETYPE, IMWRITE_TIFF_RESUNIT, IMWRITE_TIFF_XDPI, IMWRITE_TIFF_YDPI, IMWRITE_TIFF_COMPRESSION, IMWRITE_TIFF_ROWSPERSTRIP, IMWRITE_TIFF_PREDICTOR, IMWRITE_JPEG2000_COMPRESSION_X1000, IMWRITE_AVIF_QUALITY, IMWRITE_AVIF_DEPTH, IMWRITE_AVIF_SPEED, IMWRITE_JPEGXL_QUALITY, IMWRITE_JPEGXL_EFFORT, IMWRITE_JPEGXL_DISTANCE, IMWRITE_JPEGXL_DECODING_SPEED, IMWRITE_BMP_COMPRESSION, IMWRITE_GIF_LOOP, IMWRITE_GIF_SPEED, IMWRITE_GIF_QUALITY, IMWRITE_GIF_DITHER, IMWRITE_GIF_TRANSPARENCY, IMWRITE_GIF_COLORTABLE]"""
|
|
1211
1218
|
|
|
1212
1219
|
IMWRITE_JPEG_SAMPLING_FACTOR_411: int
|
|
1213
1220
|
IMWRITE_JPEG_SAMPLING_FACTOR_420: int
|
|
@@ -1259,6 +1266,12 @@ IMWRITE_TIFF_PREDICTOR_FLOATINGPOINT: int
|
|
|
1259
1266
|
ImwriteTiffPredictorFlags = int
|
|
1260
1267
|
"""One of [IMWRITE_TIFF_PREDICTOR_NONE, IMWRITE_TIFF_PREDICTOR_HORIZONTAL, IMWRITE_TIFF_PREDICTOR_FLOATINGPOINT]"""
|
|
1261
1268
|
|
|
1269
|
+
IMWRITE_TIFF_RESOLUTION_UNIT_NONE: int
|
|
1270
|
+
IMWRITE_TIFF_RESOLUTION_UNIT_INCH: int
|
|
1271
|
+
IMWRITE_TIFF_RESOLUTION_UNIT_CENTIMETER: int
|
|
1272
|
+
ImwriteTiffResolutionUnitFlags = int
|
|
1273
|
+
"""One of [IMWRITE_TIFF_RESOLUTION_UNIT_NONE, IMWRITE_TIFF_RESOLUTION_UNIT_INCH, IMWRITE_TIFF_RESOLUTION_UNIT_CENTIMETER]"""
|
|
1274
|
+
|
|
1262
1275
|
IMWRITE_EXR_TYPE_HALF: int
|
|
1263
1276
|
IMWRITE_EXR_TYPE_FLOAT: int
|
|
1264
1277
|
ImwriteEXRTypeFlags = int
|
|
@@ -1285,6 +1298,16 @@ IMWRITE_PNG_STRATEGY_FIXED: int
|
|
|
1285
1298
|
ImwritePNGFlags = int
|
|
1286
1299
|
"""One of [IMWRITE_PNG_STRATEGY_DEFAULT, IMWRITE_PNG_STRATEGY_FILTERED, IMWRITE_PNG_STRATEGY_HUFFMAN_ONLY, IMWRITE_PNG_STRATEGY_RLE, IMWRITE_PNG_STRATEGY_FIXED]"""
|
|
1287
1300
|
|
|
1301
|
+
IMWRITE_PNG_FILTER_NONE: int
|
|
1302
|
+
IMWRITE_PNG_FILTER_SUB: int
|
|
1303
|
+
IMWRITE_PNG_FILTER_UP: int
|
|
1304
|
+
IMWRITE_PNG_FILTER_AVG: int
|
|
1305
|
+
IMWRITE_PNG_FILTER_PAETH: int
|
|
1306
|
+
IMWRITE_PNG_FAST_FILTERS: int
|
|
1307
|
+
IMWRITE_PNG_ALL_FILTERS: int
|
|
1308
|
+
ImwritePNGFilterFlags = int
|
|
1309
|
+
"""One of [IMWRITE_PNG_FILTER_NONE, IMWRITE_PNG_FILTER_SUB, IMWRITE_PNG_FILTER_UP, IMWRITE_PNG_FILTER_AVG, IMWRITE_PNG_FILTER_PAETH, IMWRITE_PNG_FAST_FILTERS, IMWRITE_PNG_ALL_FILTERS]"""
|
|
1310
|
+
|
|
1288
1311
|
IMWRITE_PAM_FORMAT_NULL: int
|
|
1289
1312
|
IMWRITE_PAM_FORMAT_BLACKANDWHITE: int
|
|
1290
1313
|
IMWRITE_PAM_FORMAT_GRAYSCALE: int
|
|
@@ -1299,6 +1322,11 @@ IMWRITE_HDR_COMPRESSION_RLE: int
|
|
|
1299
1322
|
ImwriteHDRCompressionFlags = int
|
|
1300
1323
|
"""One of [IMWRITE_HDR_COMPRESSION_NONE, IMWRITE_HDR_COMPRESSION_RLE]"""
|
|
1301
1324
|
|
|
1325
|
+
IMWRITE_BMP_COMPRESSION_RGB: int
|
|
1326
|
+
IMWRITE_BMP_COMPRESSION_BITFIELDS: int
|
|
1327
|
+
ImwriteBMPCompressionFlags = int
|
|
1328
|
+
"""One of [IMWRITE_BMP_COMPRESSION_RGB, IMWRITE_BMP_COMPRESSION_BITFIELDS]"""
|
|
1329
|
+
|
|
1302
1330
|
IMWRITE_GIF_FAST_NO_DITHER: int
|
|
1303
1331
|
IMWRITE_GIF_FAST_FLOYD_DITHER: int
|
|
1304
1332
|
IMWRITE_GIF_COLORTABLE_SIZE_8: int
|
|
@@ -1310,6 +1338,15 @@ IMWRITE_GIF_COLORTABLE_SIZE_256: int
|
|
|
1310
1338
|
ImwriteGIFCompressionFlags = int
|
|
1311
1339
|
"""One of [IMWRITE_GIF_FAST_NO_DITHER, IMWRITE_GIF_FAST_FLOYD_DITHER, IMWRITE_GIF_COLORTABLE_SIZE_8, IMWRITE_GIF_COLORTABLE_SIZE_16, IMWRITE_GIF_COLORTABLE_SIZE_32, IMWRITE_GIF_COLORTABLE_SIZE_64, IMWRITE_GIF_COLORTABLE_SIZE_128, IMWRITE_GIF_COLORTABLE_SIZE_256]"""
|
|
1312
1340
|
|
|
1341
|
+
IMAGE_METADATA_UNKNOWN: int
|
|
1342
|
+
IMAGE_METADATA_EXIF: int
|
|
1343
|
+
IMAGE_METADATA_XMP: int
|
|
1344
|
+
IMAGE_METADATA_ICCP: int
|
|
1345
|
+
IMAGE_METADATA_CICP: int
|
|
1346
|
+
IMAGE_METADATA_MAX: int
|
|
1347
|
+
ImageMetadataType = int
|
|
1348
|
+
"""One of [IMAGE_METADATA_UNKNOWN, IMAGE_METADATA_EXIF, IMAGE_METADATA_XMP, IMAGE_METADATA_ICCP, IMAGE_METADATA_CICP, IMAGE_METADATA_MAX]"""
|
|
1349
|
+
|
|
1313
1350
|
CAP_ANY: int
|
|
1314
1351
|
CAP_VFW: int
|
|
1315
1352
|
CAP_V4L: int
|
|
@@ -1445,8 +1482,9 @@ VIDEO_ACCELERATION_ANY: int
|
|
|
1445
1482
|
VIDEO_ACCELERATION_D3D11: int
|
|
1446
1483
|
VIDEO_ACCELERATION_VAAPI: int
|
|
1447
1484
|
VIDEO_ACCELERATION_MFX: int
|
|
1485
|
+
VIDEO_ACCELERATION_DRM: int
|
|
1448
1486
|
VideoAccelerationType = int
|
|
1449
|
-
"""One of [VIDEO_ACCELERATION_NONE, VIDEO_ACCELERATION_ANY, VIDEO_ACCELERATION_D3D11, VIDEO_ACCELERATION_VAAPI, VIDEO_ACCELERATION_MFX]"""
|
|
1487
|
+
"""One of [VIDEO_ACCELERATION_NONE, VIDEO_ACCELERATION_ANY, VIDEO_ACCELERATION_D3D11, VIDEO_ACCELERATION_VAAPI, VIDEO_ACCELERATION_MFX, VIDEO_ACCELERATION_DRM]"""
|
|
1450
1488
|
|
|
1451
1489
|
CAP_OBSENSOR_DEPTH_MAP: int
|
|
1452
1490
|
CAP_OBSENSOR_BGR_IMAGE: int
|
|
@@ -1465,8 +1503,21 @@ CAP_PROP_OBSENSOR_INTRINSIC_FX: int
|
|
|
1465
1503
|
CAP_PROP_OBSENSOR_INTRINSIC_FY: int
|
|
1466
1504
|
CAP_PROP_OBSENSOR_INTRINSIC_CX: int
|
|
1467
1505
|
CAP_PROP_OBSENSOR_INTRINSIC_CY: int
|
|
1506
|
+
CAP_PROP_OBSENSOR_RGB_POS_MSEC: int
|
|
1507
|
+
CAP_PROP_OBSENSOR_DEPTH_POS_MSEC: int
|
|
1508
|
+
CAP_PROP_OBSENSOR_DEPTH_WIDTH: int
|
|
1509
|
+
CAP_PROP_OBSENSOR_DEPTH_HEIGHT: int
|
|
1510
|
+
CAP_PROP_OBSENSOR_DEPTH_FPS: int
|
|
1511
|
+
CAP_PROP_OBSENSOR_COLOR_DISTORTION_K1: int
|
|
1512
|
+
CAP_PROP_OBSENSOR_COLOR_DISTORTION_K2: int
|
|
1513
|
+
CAP_PROP_OBSENSOR_COLOR_DISTORTION_K3: int
|
|
1514
|
+
CAP_PROP_OBSENSOR_COLOR_DISTORTION_K4: int
|
|
1515
|
+
CAP_PROP_OBSENSOR_COLOR_DISTORTION_K5: int
|
|
1516
|
+
CAP_PROP_OBSENSOR_COLOR_DISTORTION_K6: int
|
|
1517
|
+
CAP_PROP_OBSENSOR_COLOR_DISTORTION_P1: int
|
|
1518
|
+
CAP_PROP_OBSENSOR_COLOR_DISTORTION_P2: int
|
|
1468
1519
|
VideoCaptureOBSensorProperties = int
|
|
1469
|
-
"""One of [CAP_PROP_OBSENSOR_INTRINSIC_FX, CAP_PROP_OBSENSOR_INTRINSIC_FY, CAP_PROP_OBSENSOR_INTRINSIC_CX, CAP_PROP_OBSENSOR_INTRINSIC_CY]"""
|
|
1520
|
+
"""One of [CAP_PROP_OBSENSOR_INTRINSIC_FX, CAP_PROP_OBSENSOR_INTRINSIC_FY, CAP_PROP_OBSENSOR_INTRINSIC_CX, CAP_PROP_OBSENSOR_INTRINSIC_CY, CAP_PROP_OBSENSOR_RGB_POS_MSEC, CAP_PROP_OBSENSOR_DEPTH_POS_MSEC, CAP_PROP_OBSENSOR_DEPTH_WIDTH, CAP_PROP_OBSENSOR_DEPTH_HEIGHT, CAP_PROP_OBSENSOR_DEPTH_FPS, CAP_PROP_OBSENSOR_COLOR_DISTORTION_K1, CAP_PROP_OBSENSOR_COLOR_DISTORTION_K2, CAP_PROP_OBSENSOR_COLOR_DISTORTION_K3, CAP_PROP_OBSENSOR_COLOR_DISTORTION_K4, CAP_PROP_OBSENSOR_COLOR_DISTORTION_K5, CAP_PROP_OBSENSOR_COLOR_DISTORTION_K6, CAP_PROP_OBSENSOR_COLOR_DISTORTION_P1, CAP_PROP_OBSENSOR_COLOR_DISTORTION_P2]"""
|
|
1470
1521
|
|
|
1471
1522
|
SOLVEPNP_ITERATIVE: int
|
|
1472
1523
|
SOLVEPNP_EPNP: int
|
|
@@ -1863,10 +1914,12 @@ QRCODE_ENCODER_CORRECT_LEVEL_H: int
|
|
|
1863
1914
|
QRCodeEncoder_CorrectionLevel = int
|
|
1864
1915
|
"""One of [QRCodeEncoder_CORRECT_LEVEL_L, QRCODE_ENCODER_CORRECT_LEVEL_L, QRCodeEncoder_CORRECT_LEVEL_M, QRCODE_ENCODER_CORRECT_LEVEL_M, QRCodeEncoder_CORRECT_LEVEL_Q, QRCODE_ENCODER_CORRECT_LEVEL_Q, QRCodeEncoder_CORRECT_LEVEL_H, QRCODE_ENCODER_CORRECT_LEVEL_H]"""
|
|
1865
1916
|
|
|
1917
|
+
QRCodeEncoder_ECI_SHIFT_JIS: int
|
|
1918
|
+
QRCODE_ENCODER_ECI_SHIFT_JIS: int
|
|
1866
1919
|
QRCodeEncoder_ECI_UTF8: int
|
|
1867
1920
|
QRCODE_ENCODER_ECI_UTF8: int
|
|
1868
1921
|
QRCodeEncoder_ECIEncodings = int
|
|
1869
|
-
"""One of [QRCodeEncoder_ECI_UTF8, QRCODE_ENCODER_ECI_UTF8]"""
|
|
1922
|
+
"""One of [QRCodeEncoder_ECI_SHIFT_JIS, QRCODE_ENCODER_ECI_SHIFT_JIS, QRCodeEncoder_ECI_UTF8, QRCODE_ENCODER_ECI_UTF8]"""
|
|
1870
1923
|
|
|
1871
1924
|
FaceRecognizerSF_FR_COSINE: int
|
|
1872
1925
|
FACE_RECOGNIZER_SF_FR_COSINE: int
|
|
@@ -1970,8 +2023,10 @@ _InputArray_STD_ARRAY: int
|
|
|
1970
2023
|
_INPUT_ARRAY_STD_ARRAY: int
|
|
1971
2024
|
_InputArray_STD_ARRAY_MAT: int
|
|
1972
2025
|
_INPUT_ARRAY_STD_ARRAY_MAT: int
|
|
2026
|
+
_InputArray_CUDA_GPU_MATND: int
|
|
2027
|
+
_INPUT_ARRAY_CUDA_GPU_MATND: int
|
|
1973
2028
|
_InputArray_KindFlag = int
|
|
1974
|
-
"""One of [_InputArray_KIND_SHIFT, _INPUT_ARRAY_KIND_SHIFT, _InputArray_FIXED_TYPE, _INPUT_ARRAY_FIXED_TYPE, _InputArray_FIXED_SIZE, _INPUT_ARRAY_FIXED_SIZE, _InputArray_KIND_MASK, _INPUT_ARRAY_KIND_MASK, _InputArray_NONE, _INPUT_ARRAY_NONE, _InputArray_MAT, _INPUT_ARRAY_MAT, _InputArray_MATX, _INPUT_ARRAY_MATX, _InputArray_STD_VECTOR, _INPUT_ARRAY_STD_VECTOR, _InputArray_STD_VECTOR_VECTOR, _INPUT_ARRAY_STD_VECTOR_VECTOR, _InputArray_STD_VECTOR_MAT, _INPUT_ARRAY_STD_VECTOR_MAT, _InputArray_EXPR, _INPUT_ARRAY_EXPR, _InputArray_OPENGL_BUFFER, _INPUT_ARRAY_OPENGL_BUFFER, _InputArray_CUDA_HOST_MEM, _INPUT_ARRAY_CUDA_HOST_MEM, _InputArray_CUDA_GPU_MAT, _INPUT_ARRAY_CUDA_GPU_MAT, _InputArray_UMAT, _INPUT_ARRAY_UMAT, _InputArray_STD_VECTOR_UMAT, _INPUT_ARRAY_STD_VECTOR_UMAT, _InputArray_STD_BOOL_VECTOR, _INPUT_ARRAY_STD_BOOL_VECTOR, _InputArray_STD_VECTOR_CUDA_GPU_MAT, _INPUT_ARRAY_STD_VECTOR_CUDA_GPU_MAT, _InputArray_STD_ARRAY, _INPUT_ARRAY_STD_ARRAY, _InputArray_STD_ARRAY_MAT, _INPUT_ARRAY_STD_ARRAY_MAT]"""
|
|
2029
|
+
"""One of [_InputArray_KIND_SHIFT, _INPUT_ARRAY_KIND_SHIFT, _InputArray_FIXED_TYPE, _INPUT_ARRAY_FIXED_TYPE, _InputArray_FIXED_SIZE, _INPUT_ARRAY_FIXED_SIZE, _InputArray_KIND_MASK, _INPUT_ARRAY_KIND_MASK, _InputArray_NONE, _INPUT_ARRAY_NONE, _InputArray_MAT, _INPUT_ARRAY_MAT, _InputArray_MATX, _INPUT_ARRAY_MATX, _InputArray_STD_VECTOR, _INPUT_ARRAY_STD_VECTOR, _InputArray_STD_VECTOR_VECTOR, _INPUT_ARRAY_STD_VECTOR_VECTOR, _InputArray_STD_VECTOR_MAT, _INPUT_ARRAY_STD_VECTOR_MAT, _InputArray_EXPR, _INPUT_ARRAY_EXPR, _InputArray_OPENGL_BUFFER, _INPUT_ARRAY_OPENGL_BUFFER, _InputArray_CUDA_HOST_MEM, _INPUT_ARRAY_CUDA_HOST_MEM, _InputArray_CUDA_GPU_MAT, _INPUT_ARRAY_CUDA_GPU_MAT, _InputArray_UMAT, _INPUT_ARRAY_UMAT, _InputArray_STD_VECTOR_UMAT, _INPUT_ARRAY_STD_VECTOR_UMAT, _InputArray_STD_BOOL_VECTOR, _INPUT_ARRAY_STD_BOOL_VECTOR, _InputArray_STD_VECTOR_CUDA_GPU_MAT, _INPUT_ARRAY_STD_VECTOR_CUDA_GPU_MAT, _InputArray_STD_ARRAY, _INPUT_ARRAY_STD_ARRAY, _InputArray_STD_ARRAY_MAT, _INPUT_ARRAY_STD_ARRAY_MAT, _InputArray_CUDA_GPU_MATND, _INPUT_ARRAY_CUDA_GPU_MATND]"""
|
|
1975
2030
|
|
|
1976
2031
|
_OutputArray_DEPTH_MASK_8U: int
|
|
1977
2032
|
_OUTPUT_ARRAY_DEPTH_MASK_8U: int
|
|
@@ -2186,7 +2241,7 @@ class Algorithm:
|
|
|
2186
2241
|
|
|
2187
2242
|
def empty(self) -> bool: ...
|
|
2188
2243
|
|
|
2189
|
-
def save(self, filename: str) -> None: ...
|
|
2244
|
+
def save(self, filename: str | os.PathLike[str]) -> None: ...
|
|
2190
2245
|
|
|
2191
2246
|
def getDefaultName(self) -> str: ...
|
|
2192
2247
|
|
|
@@ -2216,9 +2271,9 @@ class FileStorage:
|
|
|
2216
2271
|
@_typing.overload
|
|
2217
2272
|
def __init__(self) -> None: ...
|
|
2218
2273
|
@_typing.overload
|
|
2219
|
-
def __init__(self, filename: str, flags: int, encoding: str = ...) -> None: ...
|
|
2274
|
+
def __init__(self, filename: str | os.PathLike[str], flags: int, encoding: str = ...) -> None: ...
|
|
2220
2275
|
|
|
2221
|
-
def open(self, filename: str, flags: int, encoding: str = ...) -> bool: ...
|
|
2276
|
+
def open(self, filename: str | os.PathLike[str], flags: int, encoding: str = ...) -> bool: ...
|
|
2222
2277
|
|
|
2223
2278
|
def isOpened(self) -> bool: ...
|
|
2224
2279
|
|
|
@@ -2546,6 +2601,10 @@ class CLAHE(Algorithm):
|
|
|
2546
2601
|
|
|
2547
2602
|
def getTilesGridSize(self) -> cv2.typing.Size: ...
|
|
2548
2603
|
|
|
2604
|
+
def setBitShift(self, bitShift: int) -> None: ...
|
|
2605
|
+
|
|
2606
|
+
def getBitShift(self) -> int: ...
|
|
2607
|
+
|
|
2549
2608
|
def collectGarbage(self) -> None: ...
|
|
2550
2609
|
|
|
2551
2610
|
|
|
@@ -2555,9 +2614,13 @@ class Subdiv2D:
|
|
|
2555
2614
|
def __init__(self) -> None: ...
|
|
2556
2615
|
@_typing.overload
|
|
2557
2616
|
def __init__(self, rect: cv2.typing.Rect) -> None: ...
|
|
2617
|
+
@_typing.overload
|
|
2618
|
+
def __init__(self, rect2f: cv2.typing.Rect2f) -> None: ...
|
|
2558
2619
|
|
|
2559
2620
|
def initDelaunay(self, rect: cv2.typing.Rect) -> None: ...
|
|
2560
2621
|
|
|
2622
|
+
def initDelaunay2f(self, rect: cv2.typing.Rect2f) -> None: ...
|
|
2623
|
+
|
|
2561
2624
|
@_typing.overload
|
|
2562
2625
|
def insert(self, pt: cv2.typing.Point2f) -> int: ...
|
|
2563
2626
|
@_typing.overload
|
|
@@ -2796,7 +2859,7 @@ class MergeRobertson(MergeExposures):
|
|
|
2796
2859
|
def process(self, src: _typing.Sequence[UMat], times: UMat, dst: UMat | None = ...) -> UMat: ...
|
|
2797
2860
|
|
|
2798
2861
|
|
|
2799
|
-
class Feature2D:
|
|
2862
|
+
class Feature2D(Algorithm):
|
|
2800
2863
|
# Functions
|
|
2801
2864
|
@_typing.overload
|
|
2802
2865
|
def detect(self, image: cv2.typing.MatLike, mask: cv2.typing.MatLike | None = ...) -> _typing.Sequence[KeyPoint]: ...
|
|
@@ -2817,9 +2880,9 @@ class Feature2D:
|
|
|
2817
2880
|
def compute(self, images: _typing.Sequence[UMat], keypoints: _typing.Sequence[_typing.Sequence[KeyPoint]], descriptors: _typing.Sequence[UMat] | None = ...) -> tuple[_typing.Sequence[_typing.Sequence[KeyPoint]], _typing.Sequence[UMat]]: ...
|
|
2818
2881
|
|
|
2819
2882
|
@_typing.overload
|
|
2820
|
-
def detectAndCompute(self, image: cv2.typing.MatLike, mask: cv2.typing.MatLike, descriptors: cv2.typing.MatLike | None = ..., useProvidedKeypoints: bool = ...) -> tuple[_typing.Sequence[KeyPoint], cv2.typing.MatLike]: ...
|
|
2883
|
+
def detectAndCompute(self, image: cv2.typing.MatLike, mask: cv2.typing.MatLike | None, descriptors: cv2.typing.MatLike | None = ..., useProvidedKeypoints: bool = ...) -> tuple[_typing.Sequence[KeyPoint], cv2.typing.MatLike]: ...
|
|
2821
2884
|
@_typing.overload
|
|
2822
|
-
def detectAndCompute(self, image: UMat, mask: UMat, descriptors: UMat | None = ..., useProvidedKeypoints: bool = ...) -> tuple[_typing.Sequence[KeyPoint], UMat]: ...
|
|
2885
|
+
def detectAndCompute(self, image: UMat, mask: UMat | None, descriptors: UMat | None = ..., useProvidedKeypoints: bool = ...) -> tuple[_typing.Sequence[KeyPoint], UMat]: ...
|
|
2823
2886
|
|
|
2824
2887
|
def descriptorSize(self) -> int: ...
|
|
2825
2888
|
|
|
@@ -2828,12 +2891,12 @@ class Feature2D:
|
|
|
2828
2891
|
def defaultNorm(self) -> int: ...
|
|
2829
2892
|
|
|
2830
2893
|
@_typing.overload
|
|
2831
|
-
def write(self, fileName: str) -> None: ...
|
|
2894
|
+
def write(self, fileName: str | os.PathLike[str]) -> None: ...
|
|
2832
2895
|
@_typing.overload
|
|
2833
2896
|
def write(self, fs: FileStorage, name: str) -> None: ...
|
|
2834
2897
|
|
|
2835
2898
|
@_typing.overload
|
|
2836
|
-
def read(self, fileName: str) -> None: ...
|
|
2899
|
+
def read(self, fileName: str | os.PathLike[str]) -> None: ...
|
|
2837
2900
|
@_typing.overload
|
|
2838
2901
|
def read(self, arg1: FileNode) -> None: ...
|
|
2839
2902
|
|
|
@@ -3057,7 +3120,7 @@ class GFTTDetector(Feature2D):
|
|
|
3057
3120
|
def create(cls, maxCorners: int = ..., qualityLevel: float = ..., minDistance: float = ..., blockSize: int = ..., useHarrisDetector: bool = ..., k: float = ...) -> GFTTDetector: ...
|
|
3058
3121
|
@classmethod
|
|
3059
3122
|
@_typing.overload
|
|
3060
|
-
def create(cls, maxCorners: int, qualityLevel: float, minDistance: float, blockSize: int,
|
|
3123
|
+
def create(cls, maxCorners: int, qualityLevel: float, minDistance: float, blockSize: int, gradientSize: int, useHarrisDetector: bool = ..., k: float = ...) -> GFTTDetector: ...
|
|
3061
3124
|
|
|
3062
3125
|
def setMaxFeatures(self, maxFeatures: int) -> None: ...
|
|
3063
3126
|
|
|
@@ -3249,12 +3312,12 @@ class DescriptorMatcher(Algorithm):
|
|
|
3249
3312
|
def radiusMatch(self, queryDescriptors: UMat, maxDistance: float, masks: _typing.Sequence[UMat] | None = ..., compactResult: bool = ...) -> _typing.Sequence[_typing.Sequence[DMatch]]: ...
|
|
3250
3313
|
|
|
3251
3314
|
@_typing.overload
|
|
3252
|
-
def write(self, fileName: str) -> None: ...
|
|
3315
|
+
def write(self, fileName: str | os.PathLike[str]) -> None: ...
|
|
3253
3316
|
@_typing.overload
|
|
3254
3317
|
def write(self, fs: FileStorage, name: str) -> None: ...
|
|
3255
3318
|
|
|
3256
3319
|
@_typing.overload
|
|
3257
|
-
def read(self, fileName: str) -> None: ...
|
|
3320
|
+
def read(self, fileName: str | os.PathLike[str]) -> None: ...
|
|
3258
3321
|
@_typing.overload
|
|
3259
3322
|
def read(self, arg1: FileNode) -> None: ...
|
|
3260
3323
|
|
|
@@ -3330,18 +3393,27 @@ class Animation:
|
|
|
3330
3393
|
bgcolor: cv2.typing.Scalar
|
|
3331
3394
|
durations: _typing.Sequence[int]
|
|
3332
3395
|
frames: _typing.Sequence[cv2.typing.MatLike]
|
|
3396
|
+
still_image: cv2.typing.MatLike
|
|
3397
|
+
|
|
3398
|
+
# Functions
|
|
3399
|
+
def __init__(self, loopCount: int = ..., bgColor: cv2.typing.Scalar = ...) -> None: ...
|
|
3400
|
+
|
|
3333
3401
|
|
|
3334
3402
|
class IStreamReader:
|
|
3335
|
-
|
|
3403
|
+
# Functions
|
|
3404
|
+
def read(self, buffer: str, size: int) -> int: ...
|
|
3405
|
+
|
|
3406
|
+
def seek(self, offset: int, origin: int) -> int: ...
|
|
3407
|
+
|
|
3336
3408
|
|
|
3337
3409
|
class VideoCapture:
|
|
3338
3410
|
# Functions
|
|
3339
3411
|
@_typing.overload
|
|
3340
3412
|
def __init__(self) -> None: ...
|
|
3341
3413
|
@_typing.overload
|
|
3342
|
-
def __init__(self, filename: str, apiPreference: int = ...) -> None: ...
|
|
3414
|
+
def __init__(self, filename: str | os.PathLike[str], apiPreference: int = ...) -> None: ...
|
|
3343
3415
|
@_typing.overload
|
|
3344
|
-
def __init__(self, filename: str, apiPreference: int, params: _typing.Sequence[int]) -> None: ...
|
|
3416
|
+
def __init__(self, filename: str | os.PathLike[str], apiPreference: int, params: _typing.Sequence[int]) -> None: ...
|
|
3345
3417
|
@_typing.overload
|
|
3346
3418
|
def __init__(self, index: int, apiPreference: int = ...) -> None: ...
|
|
3347
3419
|
@_typing.overload
|
|
@@ -3350,9 +3422,9 @@ class VideoCapture:
|
|
|
3350
3422
|
def __init__(self, source: IStreamReader, apiPreference: int, params: _typing.Sequence[int]) -> None: ...
|
|
3351
3423
|
|
|
3352
3424
|
@_typing.overload
|
|
3353
|
-
def open(self, filename: str, apiPreference: int = ...) -> bool: ...
|
|
3425
|
+
def open(self, filename: str | os.PathLike[str], apiPreference: int = ...) -> bool: ...
|
|
3354
3426
|
@_typing.overload
|
|
3355
|
-
def open(self, filename: str, apiPreference: int, params: _typing.Sequence[int]) -> bool: ...
|
|
3427
|
+
def open(self, filename: str | os.PathLike[str], apiPreference: int, params: _typing.Sequence[int]) -> bool: ...
|
|
3356
3428
|
@_typing.overload
|
|
3357
3429
|
def open(self, index: int, apiPreference: int = ...) -> bool: ...
|
|
3358
3430
|
@_typing.overload
|
|
@@ -3395,22 +3467,22 @@ class VideoWriter:
|
|
|
3395
3467
|
@_typing.overload
|
|
3396
3468
|
def __init__(self) -> None: ...
|
|
3397
3469
|
@_typing.overload
|
|
3398
|
-
def __init__(self, filename: str, fourcc: int, fps: float, frameSize: cv2.typing.Size, isColor: bool = ...) -> None: ...
|
|
3470
|
+
def __init__(self, filename: str | os.PathLike[str], fourcc: int, fps: float, frameSize: cv2.typing.Size, isColor: bool = ...) -> None: ...
|
|
3399
3471
|
@_typing.overload
|
|
3400
|
-
def __init__(self, filename: str, apiPreference: int, fourcc: int, fps: float, frameSize: cv2.typing.Size, isColor: bool = ...) -> None: ...
|
|
3472
|
+
def __init__(self, filename: str | os.PathLike[str], apiPreference: int, fourcc: int, fps: float, frameSize: cv2.typing.Size, isColor: bool = ...) -> None: ...
|
|
3401
3473
|
@_typing.overload
|
|
3402
|
-
def __init__(self, filename: str, fourcc: int, fps: float, frameSize: cv2.typing.Size, params: _typing.Sequence[int]) -> None: ...
|
|
3474
|
+
def __init__(self, filename: str | os.PathLike[str], fourcc: int, fps: float, frameSize: cv2.typing.Size, params: _typing.Sequence[int]) -> None: ...
|
|
3403
3475
|
@_typing.overload
|
|
3404
|
-
def __init__(self, filename: str, apiPreference: int, fourcc: int, fps: float, frameSize: cv2.typing.Size, params: _typing.Sequence[int]) -> None: ...
|
|
3476
|
+
def __init__(self, filename: str | os.PathLike[str], apiPreference: int, fourcc: int, fps: float, frameSize: cv2.typing.Size, params: _typing.Sequence[int]) -> None: ...
|
|
3405
3477
|
|
|
3406
3478
|
@_typing.overload
|
|
3407
|
-
def open(self, filename: str, fourcc: int, fps: float, frameSize: cv2.typing.Size, isColor: bool = ...) -> bool: ...
|
|
3479
|
+
def open(self, filename: str | os.PathLike[str], fourcc: int, fps: float, frameSize: cv2.typing.Size, isColor: bool = ...) -> bool: ...
|
|
3408
3480
|
@_typing.overload
|
|
3409
|
-
def open(self, filename: str, apiPreference: int, fourcc: int, fps: float, frameSize: cv2.typing.Size, isColor: bool = ...) -> bool: ...
|
|
3481
|
+
def open(self, filename: str | os.PathLike[str], apiPreference: int, fourcc: int, fps: float, frameSize: cv2.typing.Size, isColor: bool = ...) -> bool: ...
|
|
3410
3482
|
@_typing.overload
|
|
3411
|
-
def open(self, filename: str, fourcc: int, fps: float, frameSize: cv2.typing.Size, params: _typing.Sequence[int]) -> bool: ...
|
|
3483
|
+
def open(self, filename: str | os.PathLike[str], fourcc: int, fps: float, frameSize: cv2.typing.Size, params: _typing.Sequence[int]) -> bool: ...
|
|
3412
3484
|
@_typing.overload
|
|
3413
|
-
def open(self, filename: str, apiPreference: int, fourcc: int, fps: float, frameSize: cv2.typing.Size, params: _typing.Sequence[int]) -> bool: ...
|
|
3485
|
+
def open(self, filename: str | os.PathLike[str], apiPreference: int, fourcc: int, fps: float, frameSize: cv2.typing.Size, params: _typing.Sequence[int]) -> bool: ...
|
|
3414
3486
|
|
|
3415
3487
|
def isOpened(self) -> bool: ...
|
|
3416
3488
|
|
|
@@ -3464,6 +3536,7 @@ class CirclesGridFinderParameters:
|
|
|
3464
3536
|
edgePenalty: float
|
|
3465
3537
|
convexHullFactor: float
|
|
3466
3538
|
minRNGEdgeSwitchDist: float
|
|
3539
|
+
gridType: CirclesGridFinderParameters_GridType
|
|
3467
3540
|
squareSize: float
|
|
3468
3541
|
maxRectifiedDistance: float
|
|
3469
3542
|
|
|
@@ -3575,11 +3648,11 @@ class CascadeClassifier:
|
|
|
3575
3648
|
@_typing.overload
|
|
3576
3649
|
def __init__(self) -> None: ...
|
|
3577
3650
|
@_typing.overload
|
|
3578
|
-
def __init__(self, filename: str) -> None: ...
|
|
3651
|
+
def __init__(self, filename: str | os.PathLike[str]) -> None: ...
|
|
3579
3652
|
|
|
3580
3653
|
def empty(self) -> bool: ...
|
|
3581
3654
|
|
|
3582
|
-
def load(self, filename: str) -> bool: ...
|
|
3655
|
+
def load(self, filename: str | os.PathLike[str]) -> bool: ...
|
|
3583
3656
|
|
|
3584
3657
|
def read(self, node: FileNode) -> bool: ...
|
|
3585
3658
|
|
|
@@ -3642,7 +3715,7 @@ class HOGDescriptor:
|
|
|
3642
3715
|
@_typing.overload
|
|
3643
3716
|
def __init__(self, _winSize: cv2.typing.Size, _blockSize: cv2.typing.Size, _blockStride: cv2.typing.Size, _cellSize: cv2.typing.Size, _nbins: int, _derivAperture: int = ..., _winSigma: float = ..., _histogramNormType: HOGDescriptor_HistogramNormType = ..., _L2HysThreshold: float = ..., _gammaCorrection: bool = ..., _nlevels: int = ..., _signedGradient: bool = ...) -> None: ...
|
|
3644
3717
|
@_typing.overload
|
|
3645
|
-
def __init__(self, filename: str) -> None: ...
|
|
3718
|
+
def __init__(self, filename: str | os.PathLike[str]) -> None: ...
|
|
3646
3719
|
|
|
3647
3720
|
def getDescriptorSize(self) -> int: ...
|
|
3648
3721
|
|
|
@@ -3655,9 +3728,9 @@ class HOGDescriptor:
|
|
|
3655
3728
|
@_typing.overload
|
|
3656
3729
|
def setSVMDetector(self, svmdetector: UMat) -> None: ...
|
|
3657
3730
|
|
|
3658
|
-
def load(self, filename: str, objname: str = ...) -> bool: ...
|
|
3731
|
+
def load(self, filename: str | os.PathLike[str], objname: str = ...) -> bool: ...
|
|
3659
3732
|
|
|
3660
|
-
def save(self, filename: str, objname: str = ...) -> None: ...
|
|
3733
|
+
def save(self, filename: str | os.PathLike[str], objname: str = ...) -> None: ...
|
|
3661
3734
|
|
|
3662
3735
|
@_typing.overload
|
|
3663
3736
|
def compute(self, img: cv2.typing.MatLike, winStride: cv2.typing.Size = ..., padding: cv2.typing.Size = ..., locations: _typing.Sequence[cv2.typing.Point] = ...) -> _typing.Sequence[float]: ...
|
|
@@ -3734,6 +3807,8 @@ class QRCodeDetector(GraphicalCodeDetector):
|
|
|
3734
3807
|
@_typing.overload
|
|
3735
3808
|
def detectAndDecodeCurved(self, img: UMat, points: UMat | None = ..., straight_qrcode: UMat | None = ...) -> tuple[str, UMat, UMat]: ...
|
|
3736
3809
|
|
|
3810
|
+
def getEncoding(self, codeIdx: int = ...) -> QRCodeEncoder_ECIEncodings: ...
|
|
3811
|
+
|
|
3737
3812
|
|
|
3738
3813
|
class GraphicalCodeDetector:
|
|
3739
3814
|
# Functions
|
|
@@ -3767,6 +3842,26 @@ class GraphicalCodeDetector:
|
|
|
3767
3842
|
@_typing.overload
|
|
3768
3843
|
def detectAndDecodeMulti(self, img: UMat, points: UMat | None = ..., straight_code: _typing.Sequence[UMat] | None = ...) -> tuple[bool, _typing.Sequence[str], UMat, _typing.Sequence[UMat]]: ...
|
|
3769
3844
|
|
|
3845
|
+
@_typing.overload
|
|
3846
|
+
def detectAndDecodeBytes(self, img: cv2.typing.MatLike, points: cv2.typing.MatLike | None = ..., straight_code: cv2.typing.MatLike | None = ...) -> tuple[bytes, cv2.typing.MatLike, cv2.typing.MatLike]: ...
|
|
3847
|
+
@_typing.overload
|
|
3848
|
+
def detectAndDecodeBytes(self, img: UMat, points: UMat | None = ..., straight_code: UMat | None = ...) -> tuple[bytes, UMat, UMat]: ...
|
|
3849
|
+
|
|
3850
|
+
@_typing.overload
|
|
3851
|
+
def decodeBytes(self, img: cv2.typing.MatLike, points: cv2.typing.MatLike, straight_code: cv2.typing.MatLike | None = ...) -> tuple[bytes, cv2.typing.MatLike]: ...
|
|
3852
|
+
@_typing.overload
|
|
3853
|
+
def decodeBytes(self, img: UMat, points: UMat, straight_code: UMat | None = ...) -> tuple[bytes, UMat]: ...
|
|
3854
|
+
|
|
3855
|
+
@_typing.overload
|
|
3856
|
+
def decodeBytesMulti(self, img: cv2.typing.MatLike, points: cv2.typing.MatLike, straight_code: _typing.Sequence[cv2.typing.MatLike] | None = ...) -> tuple[bool, _typing.Sequence[bytes], _typing.Sequence[cv2.typing.MatLike]]: ...
|
|
3857
|
+
@_typing.overload
|
|
3858
|
+
def decodeBytesMulti(self, img: UMat, points: UMat, straight_code: _typing.Sequence[UMat] | None = ...) -> tuple[bool, _typing.Sequence[bytes], _typing.Sequence[UMat]]: ...
|
|
3859
|
+
|
|
3860
|
+
@_typing.overload
|
|
3861
|
+
def detectAndDecodeBytesMulti(self, img: cv2.typing.MatLike, points: cv2.typing.MatLike | None = ..., straight_code: _typing.Sequence[cv2.typing.MatLike] | None = ...) -> tuple[bool, _typing.Sequence[bytes], cv2.typing.MatLike, _typing.Sequence[cv2.typing.MatLike]]: ...
|
|
3862
|
+
@_typing.overload
|
|
3863
|
+
def detectAndDecodeBytesMulti(self, img: UMat, points: UMat | None = ..., straight_code: _typing.Sequence[UMat] | None = ...) -> tuple[bool, _typing.Sequence[bytes], UMat, _typing.Sequence[UMat]]: ...
|
|
3864
|
+
|
|
3770
3865
|
|
|
3771
3866
|
class QRCodeDetectorAruco(GraphicalCodeDetector):
|
|
3772
3867
|
# Classes
|
|
@@ -3824,7 +3919,7 @@ class FaceDetectorYN:
|
|
|
3824
3919
|
|
|
3825
3920
|
@classmethod
|
|
3826
3921
|
@_typing.overload
|
|
3827
|
-
def create(cls, model: str, config: str, input_size: cv2.typing.Size, score_threshold: float = ..., nms_threshold: float = ..., top_k: int = ..., backend_id: int = ..., target_id: int = ...) -> FaceDetectorYN: ...
|
|
3922
|
+
def create(cls, model: str | os.PathLike[str], config: str | os.PathLike[str], input_size: cv2.typing.Size, score_threshold: float = ..., nms_threshold: float = ..., top_k: int = ..., backend_id: int = ..., target_id: int = ...) -> FaceDetectorYN: ...
|
|
3828
3923
|
@classmethod
|
|
3829
3924
|
@_typing.overload
|
|
3830
3925
|
def create(cls, framework: str, bufferModel: numpy.ndarray[_typing.Any, numpy.dtype[numpy.uint8]], bufferConfig: numpy.ndarray[_typing.Any, numpy.dtype[numpy.uint8]], input_size: cv2.typing.Size, score_threshold: float = ..., nms_threshold: float = ..., top_k: int = ..., backend_id: int = ..., target_id: int = ...) -> FaceDetectorYN: ...
|
|
@@ -3849,7 +3944,7 @@ class FaceRecognizerSF:
|
|
|
3849
3944
|
|
|
3850
3945
|
@classmethod
|
|
3851
3946
|
@_typing.overload
|
|
3852
|
-
def create(cls, model: str, config: str, backend_id: int = ..., target_id: int = ...) -> FaceRecognizerSF: ...
|
|
3947
|
+
def create(cls, model: str | os.PathLike[str], config: str | os.PathLike[str], backend_id: int = ..., target_id: int = ...) -> FaceRecognizerSF: ...
|
|
3853
3948
|
@classmethod
|
|
3854
3949
|
@_typing.overload
|
|
3855
3950
|
def create(cls, framework: str, bufferModel: numpy.ndarray[_typing.Any, numpy.dtype[numpy.uint8]], bufferConfig: numpy.ndarray[_typing.Any, numpy.dtype[numpy.uint8]], backend_id: int = ..., target_id: int = ...) -> FaceRecognizerSF: ...
|
|
@@ -3926,10 +4021,6 @@ class PyRotationWarper:
|
|
|
3926
4021
|
@_typing.overload
|
|
3927
4022
|
def warpPoint(self, pt: cv2.typing.Point2f, K: UMat, R: UMat) -> cv2.typing.Point2f: ...
|
|
3928
4023
|
|
|
3929
|
-
@_typing.overload
|
|
3930
|
-
def warpPointBackward(self, pt: cv2.typing.Point2f, K: cv2.typing.MatLike, R: cv2.typing.MatLike) -> cv2.typing.Point2f: ...
|
|
3931
|
-
@_typing.overload
|
|
3932
|
-
def warpPointBackward(self, pt: cv2.typing.Point2f, K: UMat, R: UMat) -> cv2.typing.Point2f: ...
|
|
3933
4024
|
@_typing.overload
|
|
3934
4025
|
def warpPointBackward(self, pt: cv2.typing.Point2f, K: cv2.typing.MatLike, R: cv2.typing.MatLike) -> cv2.typing.Point2f: ...
|
|
3935
4026
|
@_typing.overload
|
|
@@ -3969,6 +4060,10 @@ class BackgroundSubtractor(Algorithm):
|
|
|
3969
4060
|
def apply(self, image: cv2.typing.MatLike, fgmask: cv2.typing.MatLike | None = ..., learningRate: float = ...) -> cv2.typing.MatLike: ...
|
|
3970
4061
|
@_typing.overload
|
|
3971
4062
|
def apply(self, image: UMat, fgmask: UMat | None = ..., learningRate: float = ...) -> UMat: ...
|
|
4063
|
+
@_typing.overload
|
|
4064
|
+
def apply(self, image: cv2.typing.MatLike, knownForegroundMask: cv2.typing.MatLike, fgmask: cv2.typing.MatLike | None = ..., learningRate: float = ...) -> cv2.typing.MatLike: ...
|
|
4065
|
+
@_typing.overload
|
|
4066
|
+
def apply(self, image: UMat, knownForegroundMask: UMat, fgmask: UMat | None = ..., learningRate: float = ...) -> UMat: ...
|
|
3972
4067
|
|
|
3973
4068
|
@_typing.overload
|
|
3974
4069
|
def getBackgroundImage(self, backgroundImage: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
|
|
@@ -4030,6 +4125,10 @@ class BackgroundSubtractorMOG2(BackgroundSubtractor):
|
|
|
4030
4125
|
def apply(self, image: cv2.typing.MatLike, fgmask: cv2.typing.MatLike | None = ..., learningRate: float = ...) -> cv2.typing.MatLike: ...
|
|
4031
4126
|
@_typing.overload
|
|
4032
4127
|
def apply(self, image: UMat, fgmask: UMat | None = ..., learningRate: float = ...) -> UMat: ...
|
|
4128
|
+
@_typing.overload
|
|
4129
|
+
def apply(self, image: cv2.typing.MatLike, knownForegroundMask: cv2.typing.MatLike, fgmask: cv2.typing.MatLike | None = ..., learningRate: float = ...) -> cv2.typing.MatLike: ...
|
|
4130
|
+
@_typing.overload
|
|
4131
|
+
def apply(self, image: UMat, knownForegroundMask: UMat, fgmask: UMat | None = ..., learningRate: float = ...) -> UMat: ...
|
|
4033
4132
|
|
|
4034
4133
|
|
|
4035
4134
|
class BackgroundSubtractorKNN(BackgroundSubtractor):
|
|
@@ -4187,6 +4286,10 @@ class DISOpticalFlow(DenseOpticalFlow):
|
|
|
4187
4286
|
|
|
4188
4287
|
def setFinestScale(self, val: int) -> None: ...
|
|
4189
4288
|
|
|
4289
|
+
def setCoarsestScale(self, val: int) -> None: ...
|
|
4290
|
+
|
|
4291
|
+
def getCoarsestScale(self) -> int: ...
|
|
4292
|
+
|
|
4190
4293
|
def getPatchSize(self) -> int: ...
|
|
4191
4294
|
|
|
4192
4295
|
def setPatchSize(self, val: int) -> None: ...
|
|
@@ -4304,7 +4407,11 @@ class TrackerGOTURN(Tracker):
|
|
|
4304
4407
|
|
|
4305
4408
|
# Functions
|
|
4306
4409
|
@classmethod
|
|
4410
|
+
@_typing.overload
|
|
4307
4411
|
def create(cls, parameters: TrackerGOTURN.Params = ...) -> TrackerGOTURN: ...
|
|
4412
|
+
@classmethod
|
|
4413
|
+
@_typing.overload
|
|
4414
|
+
def create(cls, model: cv2.dnn.Net) -> TrackerGOTURN: ...
|
|
4308
4415
|
|
|
4309
4416
|
|
|
4310
4417
|
class TrackerDaSiamRPN(Tracker):
|
|
@@ -4323,7 +4430,11 @@ class TrackerDaSiamRPN(Tracker):
|
|
|
4323
4430
|
|
|
4324
4431
|
# Functions
|
|
4325
4432
|
@classmethod
|
|
4433
|
+
@_typing.overload
|
|
4326
4434
|
def create(cls, parameters: TrackerDaSiamRPN.Params = ...) -> TrackerDaSiamRPN: ...
|
|
4435
|
+
@classmethod
|
|
4436
|
+
@_typing.overload
|
|
4437
|
+
def create(cls, siam_rpn: cv2.dnn.Net, kernel_cls1: cv2.dnn.Net, kernel_r1: cv2.dnn.Net) -> TrackerDaSiamRPN: ...
|
|
4327
4438
|
|
|
4328
4439
|
def getTrackingScore(self) -> float: ...
|
|
4329
4440
|
|
|
@@ -4343,7 +4454,11 @@ class TrackerNano(Tracker):
|
|
|
4343
4454
|
|
|
4344
4455
|
# Functions
|
|
4345
4456
|
@classmethod
|
|
4457
|
+
@_typing.overload
|
|
4346
4458
|
def create(cls, parameters: TrackerNano.Params = ...) -> TrackerNano: ...
|
|
4459
|
+
@classmethod
|
|
4460
|
+
@_typing.overload
|
|
4461
|
+
def create(cls, backbone: cv2.dnn.Net, neckhead: cv2.dnn.Net) -> TrackerNano: ...
|
|
4347
4462
|
|
|
4348
4463
|
def getTrackingScore(self) -> float: ...
|
|
4349
4464
|
|
|
@@ -4365,7 +4480,11 @@ class TrackerVit(Tracker):
|
|
|
4365
4480
|
|
|
4366
4481
|
# Functions
|
|
4367
4482
|
@classmethod
|
|
4483
|
+
@_typing.overload
|
|
4368
4484
|
def create(cls, parameters: TrackerVit.Params = ...) -> TrackerVit: ...
|
|
4485
|
+
@classmethod
|
|
4486
|
+
@_typing.overload
|
|
4487
|
+
def create(cls, model: cv2.dnn.Net, meanvalue: cv2.typing.Scalar = ..., stdvalue: cv2.typing.Scalar = ..., tracking_score_threshold: float = ...) -> TrackerVit: ...
|
|
4369
4488
|
|
|
4370
4489
|
def getTrackingScore(self) -> float: ...
|
|
4371
4490
|
|
|
@@ -4581,6 +4700,11 @@ def HoughCircles(image: cv2.typing.MatLike, method: int, dp: float, minDist: flo
|
|
|
4581
4700
|
@_typing.overload
|
|
4582
4701
|
def HoughCircles(image: UMat, method: int, dp: float, minDist: float, circles: UMat | None = ..., param1: float = ..., param2: float = ..., minRadius: int = ..., maxRadius: int = ...) -> UMat: ...
|
|
4583
4702
|
|
|
4703
|
+
@_typing.overload
|
|
4704
|
+
def HoughCirclesWithAccumulator(image: cv2.typing.MatLike, method: int, dp: float, minDist: float, circles: cv2.typing.MatLike | None = ..., param1: float = ..., param2: float = ..., minRadius: int = ..., maxRadius: int = ...) -> cv2.typing.MatLike: ...
|
|
4705
|
+
@_typing.overload
|
|
4706
|
+
def HoughCirclesWithAccumulator(image: UMat, method: int, dp: float, minDist: float, circles: UMat | None = ..., param1: float = ..., param2: float = ..., minRadius: int = ..., maxRadius: int = ...) -> UMat: ...
|
|
4707
|
+
|
|
4584
4708
|
@_typing.overload
|
|
4585
4709
|
def HoughLines(image: cv2.typing.MatLike, rho: float, theta: float, threshold: int, lines: cv2.typing.MatLike | None = ..., srn: float = ..., stn: float = ..., min_theta: float = ..., max_theta: float = ..., use_edgeval: bool = ...) -> cv2.typing.MatLike: ...
|
|
4586
4710
|
@_typing.overload
|
|
@@ -4597,9 +4721,9 @@ def HoughLinesPointSet(point: cv2.typing.MatLike, lines_max: int, threshold: int
|
|
|
4597
4721
|
def HoughLinesPointSet(point: UMat, lines_max: int, threshold: int, min_rho: float, max_rho: float, rho_step: float, min_theta: float, max_theta: float, theta_step: float, lines: UMat | None = ...) -> UMat: ...
|
|
4598
4722
|
|
|
4599
4723
|
@_typing.overload
|
|
4600
|
-
def HoughLinesWithAccumulator(image: cv2.typing.MatLike, rho: float, theta: float, threshold: int, lines: cv2.typing.MatLike | None = ..., srn: float = ..., stn: float = ..., min_theta: float = ..., max_theta: float = ...) -> cv2.typing.MatLike: ...
|
|
4724
|
+
def HoughLinesWithAccumulator(image: cv2.typing.MatLike, rho: float, theta: float, threshold: int, lines: cv2.typing.MatLike | None = ..., srn: float = ..., stn: float = ..., min_theta: float = ..., max_theta: float = ..., use_edgeval: bool = ...) -> cv2.typing.MatLike: ...
|
|
4601
4725
|
@_typing.overload
|
|
4602
|
-
def HoughLinesWithAccumulator(image: UMat, rho: float, theta: float, threshold: int, lines: UMat | None = ..., srn: float = ..., stn: float = ..., min_theta: float = ..., max_theta: float = ...) -> UMat: ...
|
|
4726
|
+
def HoughLinesWithAccumulator(image: UMat, rho: float, theta: float, threshold: int, lines: UMat | None = ..., srn: float = ..., stn: float = ..., min_theta: float = ..., max_theta: float = ..., use_edgeval: bool = ...) -> UMat: ...
|
|
4603
4727
|
|
|
4604
4728
|
@_typing.overload
|
|
4605
4729
|
def HuMoments(m: cv2.typing.Moments, hu: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
|
|
@@ -5187,9 +5311,9 @@ def drawContours(image: cv2.typing.MatLike, contours: _typing.Sequence[cv2.typin
|
|
|
5187
5311
|
def drawContours(image: UMat, contours: _typing.Sequence[UMat], contourIdx: int, color: cv2.typing.Scalar, thickness: int = ..., lineType: int = ..., hierarchy: UMat | None = ..., maxLevel: int = ..., offset: cv2.typing.Point = ...) -> UMat: ...
|
|
5188
5312
|
|
|
5189
5313
|
@_typing.overload
|
|
5190
|
-
def drawFrameAxes(image: cv2.typing.MatLike, cameraMatrix: cv2.typing.MatLike, distCoeffs: cv2.typing.MatLike, rvec: cv2.typing.MatLike, tvec: cv2.typing.MatLike, length: float, thickness: int = ...) -> cv2.typing.MatLike: ...
|
|
5314
|
+
def drawFrameAxes(image: cv2.typing.MatLike, cameraMatrix: cv2.typing.MatLike, distCoeffs: cv2.typing.MatLike | None, rvec: cv2.typing.MatLike, tvec: cv2.typing.MatLike, length: float, thickness: int = ...) -> cv2.typing.MatLike: ...
|
|
5191
5315
|
@_typing.overload
|
|
5192
|
-
def drawFrameAxes(image: UMat, cameraMatrix: UMat, distCoeffs: UMat, rvec: UMat, tvec: UMat, length: float, thickness: int = ...) -> UMat: ...
|
|
5316
|
+
def drawFrameAxes(image: UMat, cameraMatrix: UMat, distCoeffs: UMat | None, rvec: UMat, tvec: UMat, length: float, thickness: int = ...) -> UMat: ...
|
|
5193
5317
|
|
|
5194
5318
|
@_typing.overload
|
|
5195
5319
|
def drawKeypoints(image: cv2.typing.MatLike, keypoints: _typing.Sequence[KeyPoint], outImage: cv2.typing.MatLike, color: cv2.typing.Scalar = ..., flags: DrawMatchesFlags = ...) -> cv2.typing.MatLike: ...
|
|
@@ -5285,6 +5409,11 @@ def estimateChessboardSharpness(image: cv2.typing.MatLike, patternSize: cv2.typi
|
|
|
5285
5409
|
@_typing.overload
|
|
5286
5410
|
def estimateChessboardSharpness(image: UMat, patternSize: cv2.typing.Size, corners: UMat, rise_distance: float = ..., vertical: bool = ..., sharpness: UMat | None = ...) -> tuple[cv2.typing.Scalar, UMat]: ...
|
|
5287
5411
|
|
|
5412
|
+
@_typing.overload
|
|
5413
|
+
def estimateTranslation2D(from_: cv2.typing.MatLike, to: cv2.typing.MatLike, inliers: cv2.typing.MatLike | None = ..., method: int = ..., ransacReprojThreshold: float = ..., maxIters: int = ..., confidence: float = ..., refineIters: int = ...) -> tuple[cv2.typing.Vec2d, cv2.typing.MatLike]: ...
|
|
5414
|
+
@_typing.overload
|
|
5415
|
+
def estimateTranslation2D(from_: UMat, to: UMat, inliers: UMat | None = ..., method: int = ..., ransacReprojThreshold: float = ..., maxIters: int = ..., confidence: float = ..., refineIters: int = ...) -> tuple[cv2.typing.Vec2d, UMat]: ...
|
|
5416
|
+
|
|
5288
5417
|
@_typing.overload
|
|
5289
5418
|
def estimateTranslation3D(src: cv2.typing.MatLike, dst: cv2.typing.MatLike, out: cv2.typing.MatLike | None = ..., inliers: cv2.typing.MatLike | None = ..., ransacThreshold: float = ..., confidence: float = ...) -> tuple[int, cv2.typing.MatLike, cv2.typing.MatLike]: ...
|
|
5290
5419
|
@_typing.overload
|
|
@@ -5407,13 +5536,13 @@ def findEssentialMat(points1: cv2.typing.MatLike, points2: cv2.typing.MatLike, f
|
|
|
5407
5536
|
@_typing.overload
|
|
5408
5537
|
def findEssentialMat(points1: UMat, points2: UMat, focal: float = ..., pp: cv2.typing.Point2d = ..., method: int = ..., prob: float = ..., threshold: float = ..., maxIters: int = ..., mask: UMat | None = ...) -> tuple[cv2.typing.MatLike, UMat]: ...
|
|
5409
5538
|
@_typing.overload
|
|
5410
|
-
def findEssentialMat(points1: cv2.typing.MatLike, points2: cv2.typing.MatLike, cameraMatrix1: cv2.typing.MatLike, distCoeffs1: cv2.typing.MatLike, cameraMatrix2: cv2.typing.MatLike, distCoeffs2: cv2.typing.MatLike, method: int = ..., prob: float = ..., threshold: float = ..., mask: cv2.typing.MatLike | None = ...) -> tuple[cv2.typing.MatLike, cv2.typing.MatLike]: ...
|
|
5539
|
+
def findEssentialMat(points1: cv2.typing.MatLike, points2: cv2.typing.MatLike, cameraMatrix1: cv2.typing.MatLike, distCoeffs1: cv2.typing.MatLike | None, cameraMatrix2: cv2.typing.MatLike, distCoeffs2: cv2.typing.MatLike | None, method: int = ..., prob: float = ..., threshold: float = ..., mask: cv2.typing.MatLike | None = ...) -> tuple[cv2.typing.MatLike, cv2.typing.MatLike]: ...
|
|
5411
5540
|
@_typing.overload
|
|
5412
|
-
def findEssentialMat(points1: UMat, points2: UMat, cameraMatrix1: UMat, distCoeffs1: UMat, cameraMatrix2: UMat, distCoeffs2: UMat, method: int = ..., prob: float = ..., threshold: float = ..., mask: UMat | None = ...) -> tuple[cv2.typing.MatLike, UMat]: ...
|
|
5541
|
+
def findEssentialMat(points1: UMat, points2: UMat, cameraMatrix1: UMat, distCoeffs1: UMat | None, cameraMatrix2: UMat, distCoeffs2: UMat | None, method: int = ..., prob: float = ..., threshold: float = ..., mask: UMat | None = ...) -> tuple[cv2.typing.MatLike, UMat]: ...
|
|
5413
5542
|
@_typing.overload
|
|
5414
|
-
def findEssentialMat(points1: cv2.typing.MatLike, points2: cv2.typing.MatLike, cameraMatrix1: cv2.typing.MatLike, cameraMatrix2: cv2.typing.MatLike, dist_coeff1: cv2.typing.MatLike, dist_coeff2: cv2.typing.MatLike, params: UsacParams, mask: cv2.typing.MatLike | None = ...) -> tuple[cv2.typing.MatLike, cv2.typing.MatLike]: ...
|
|
5543
|
+
def findEssentialMat(points1: cv2.typing.MatLike, points2: cv2.typing.MatLike, cameraMatrix1: cv2.typing.MatLike, cameraMatrix2: cv2.typing.MatLike, dist_coeff1: cv2.typing.MatLike | None, dist_coeff2: cv2.typing.MatLike | None, params: UsacParams, mask: cv2.typing.MatLike | None = ...) -> tuple[cv2.typing.MatLike, cv2.typing.MatLike]: ...
|
|
5415
5544
|
@_typing.overload
|
|
5416
|
-
def findEssentialMat(points1: UMat, points2: UMat, cameraMatrix1: UMat, cameraMatrix2: UMat, dist_coeff1: UMat, dist_coeff2: UMat, params: UsacParams, mask: UMat | None = ...) -> tuple[cv2.typing.MatLike, UMat]: ...
|
|
5545
|
+
def findEssentialMat(points1: UMat, points2: UMat, cameraMatrix1: UMat, cameraMatrix2: UMat, dist_coeff1: UMat | None, dist_coeff2: UMat | None, params: UsacParams, mask: UMat | None = ...) -> tuple[cv2.typing.MatLike, UMat]: ...
|
|
5417
5546
|
|
|
5418
5547
|
@_typing.overload
|
|
5419
5548
|
def findFundamentalMat(points1: cv2.typing.MatLike, points2: cv2.typing.MatLike, method: int, ransacReprojThreshold: float, confidence: float, maxIters: int, mask: cv2.typing.MatLike | None = ...) -> tuple[cv2.typing.MatLike, cv2.typing.MatLike]: ...
|
|
@@ -5451,6 +5580,11 @@ def findTransformECC(templateImage: cv2.typing.MatLike, inputImage: cv2.typing.M
|
|
|
5451
5580
|
@_typing.overload
|
|
5452
5581
|
def findTransformECC(templateImage: UMat, inputImage: UMat, warpMatrix: UMat, motionType: int = ..., criteria: cv2.typing.TermCriteria = ..., inputMask: UMat | None = ...) -> tuple[float, UMat]: ...
|
|
5453
5582
|
|
|
5583
|
+
@_typing.overload
|
|
5584
|
+
def findTransformECCWithMask(templateImage: cv2.typing.MatLike, inputImage: cv2.typing.MatLike, templateMask: cv2.typing.MatLike, inputMask: cv2.typing.MatLike, warpMatrix: cv2.typing.MatLike, motionType: int = ..., criteria: cv2.typing.TermCriteria = ..., gaussFiltSize: int = ...) -> tuple[float, cv2.typing.MatLike]: ...
|
|
5585
|
+
@_typing.overload
|
|
5586
|
+
def findTransformECCWithMask(templateImage: UMat, inputImage: UMat, templateMask: UMat, inputMask: UMat, warpMatrix: UMat, motionType: int = ..., criteria: cv2.typing.TermCriteria = ..., gaussFiltSize: int = ...) -> tuple[float, UMat]: ...
|
|
5587
|
+
|
|
5454
5588
|
@_typing.overload
|
|
5455
5589
|
def fitEllipse(points: cv2.typing.MatLike) -> cv2.typing.RotatedRect: ...
|
|
5456
5590
|
@_typing.overload
|
|
@@ -5502,6 +5636,11 @@ def getCPUFeaturesLine() -> str: ...
|
|
|
5502
5636
|
|
|
5503
5637
|
def getCPUTickCount() -> int: ...
|
|
5504
5638
|
|
|
5639
|
+
@_typing.overload
|
|
5640
|
+
def getClosestEllipsePoints(ellipse_params: cv2.typing.RotatedRect, points: cv2.typing.MatLike, closest_pts: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
|
|
5641
|
+
@_typing.overload
|
|
5642
|
+
def getClosestEllipsePoints(ellipse_params: cv2.typing.RotatedRect, points: UMat, closest_pts: UMat | None = ...) -> UMat: ...
|
|
5643
|
+
|
|
5505
5644
|
def getDefaultAlgorithmHint() -> AlgorithmHint: ...
|
|
5506
5645
|
|
|
5507
5646
|
@_typing.overload
|
|
@@ -5522,8 +5661,6 @@ def getGaussianKernel(ksize: int, sigma: float, ktype: int = ...) -> cv2.typing.
|
|
|
5522
5661
|
|
|
5523
5662
|
def getHardwareFeatureName(feature: int) -> str: ...
|
|
5524
5663
|
|
|
5525
|
-
def getLogLevel() -> int: ...
|
|
5526
|
-
|
|
5527
5664
|
def getNumThreads() -> int: ...
|
|
5528
5665
|
|
|
5529
5666
|
def getNumberOfCPUs() -> int: ...
|
|
@@ -5531,9 +5668,9 @@ def getNumberOfCPUs() -> int: ...
|
|
|
5531
5668
|
def getOptimalDFTSize(vecsize: int) -> int: ...
|
|
5532
5669
|
|
|
5533
5670
|
@_typing.overload
|
|
5534
|
-
def getOptimalNewCameraMatrix(cameraMatrix: cv2.typing.MatLike, distCoeffs: cv2.typing.MatLike, imageSize: cv2.typing.Size, alpha: float, newImgSize: cv2.typing.Size = ..., centerPrincipalPoint: bool = ...) -> tuple[cv2.typing.MatLike, cv2.typing.Rect]: ...
|
|
5671
|
+
def getOptimalNewCameraMatrix(cameraMatrix: cv2.typing.MatLike, distCoeffs: cv2.typing.MatLike | None, imageSize: cv2.typing.Size, alpha: float, newImgSize: cv2.typing.Size = ..., centerPrincipalPoint: bool = ...) -> tuple[cv2.typing.MatLike, cv2.typing.Rect]: ...
|
|
5535
5672
|
@_typing.overload
|
|
5536
|
-
def getOptimalNewCameraMatrix(cameraMatrix: UMat, distCoeffs: UMat, imageSize: cv2.typing.Size, alpha: float, newImgSize: cv2.typing.Size = ..., centerPrincipalPoint: bool = ...) -> tuple[cv2.typing.MatLike, cv2.typing.Rect]: ...
|
|
5673
|
+
def getOptimalNewCameraMatrix(cameraMatrix: UMat, distCoeffs: UMat | None, imageSize: cv2.typing.Size, alpha: float, newImgSize: cv2.typing.Size = ..., centerPrincipalPoint: bool = ...) -> tuple[cv2.typing.MatLike, cv2.typing.Rect]: ...
|
|
5537
5674
|
|
|
5538
5675
|
@_typing.overload
|
|
5539
5676
|
def getPerspectiveTransform(src: cv2.typing.MatLike, dst: cv2.typing.MatLike, solveMethod: int = ...) -> cv2.typing.MatLike: ...
|
|
@@ -5599,9 +5736,9 @@ def hasNonZero(src: cv2.typing.MatLike) -> bool: ...
|
|
|
5599
5736
|
@_typing.overload
|
|
5600
5737
|
def hasNonZero(src: UMat) -> bool: ...
|
|
5601
5738
|
|
|
5602
|
-
def haveImageReader(filename: str) -> bool: ...
|
|
5739
|
+
def haveImageReader(filename: str | os.PathLike[str]) -> bool: ...
|
|
5603
5740
|
|
|
5604
|
-
def haveImageWriter(filename: str) -> bool: ...
|
|
5741
|
+
def haveImageWriter(filename: str | os.PathLike[str]) -> bool: ...
|
|
5605
5742
|
|
|
5606
5743
|
def haveOpenVX() -> bool: ...
|
|
5607
5744
|
|
|
@@ -5625,12 +5762,22 @@ def illuminationChange(src: cv2.typing.MatLike, mask: cv2.typing.MatLike, dst: c
|
|
|
5625
5762
|
@_typing.overload
|
|
5626
5763
|
def illuminationChange(src: UMat, mask: UMat, dst: UMat | None = ..., alpha: float = ..., beta: float = ...) -> UMat: ...
|
|
5627
5764
|
|
|
5628
|
-
def imcount(filename: str, flags: int = ...) -> int: ...
|
|
5765
|
+
def imcount(filename: str | os.PathLike[str], flags: int = ...) -> int: ...
|
|
5766
|
+
|
|
5767
|
+
@_typing.overload
|
|
5768
|
+
def imdecode(buf: cv2.typing.MatLike, flags: int) -> cv2.typing.MatLike | None: ...
|
|
5769
|
+
@_typing.overload
|
|
5770
|
+
def imdecode(buf: UMat, flags: int) -> cv2.typing.MatLike | None: ...
|
|
5771
|
+
|
|
5772
|
+
@_typing.overload
|
|
5773
|
+
def imdecodeWithMetadata(buf: cv2.typing.MatLike, metadata: _typing.Sequence[cv2.typing.MatLike] | None = ..., flags: int = ...) -> tuple[cv2.typing.MatLike, _typing.Sequence[int], _typing.Sequence[cv2.typing.MatLike]]: ...
|
|
5774
|
+
@_typing.overload
|
|
5775
|
+
def imdecodeWithMetadata(buf: UMat, metadata: _typing.Sequence[UMat] | None = ..., flags: int = ...) -> tuple[cv2.typing.MatLike, _typing.Sequence[int], _typing.Sequence[UMat]]: ...
|
|
5629
5776
|
|
|
5630
5777
|
@_typing.overload
|
|
5631
|
-
def
|
|
5778
|
+
def imdecodeanimation(buf: cv2.typing.MatLike, start: int = ..., count: int = ...) -> tuple[bool, Animation]: ...
|
|
5632
5779
|
@_typing.overload
|
|
5633
|
-
def
|
|
5780
|
+
def imdecodeanimation(buf: UMat, start: int = ..., count: int = ...) -> tuple[bool, Animation]: ...
|
|
5634
5781
|
|
|
5635
5782
|
@_typing.overload
|
|
5636
5783
|
def imdecodemulti(buf: cv2.typing.MatLike, flags: int, mats: _typing.Sequence[cv2.typing.MatLike] | None = ..., range: cv2.typing.Range = ...) -> tuple[bool, _typing.Sequence[cv2.typing.MatLike]]: ...
|
|
@@ -5642,24 +5789,36 @@ def imencode(ext: str, img: cv2.typing.MatLike, params: _typing.Sequence[int] =
|
|
|
5642
5789
|
@_typing.overload
|
|
5643
5790
|
def imencode(ext: str, img: UMat, params: _typing.Sequence[int] = ...) -> tuple[bool, numpy.ndarray[_typing.Any, numpy.dtype[numpy.uint8]]]: ...
|
|
5644
5791
|
|
|
5792
|
+
@_typing.overload
|
|
5793
|
+
def imencodeWithMetadata(ext: str, img: cv2.typing.MatLike, metadataTypes: _typing.Sequence[int], metadata: _typing.Sequence[cv2.typing.MatLike], params: _typing.Sequence[int] = ...) -> tuple[bool, numpy.ndarray[_typing.Any, numpy.dtype[numpy.uint8]]]: ...
|
|
5794
|
+
@_typing.overload
|
|
5795
|
+
def imencodeWithMetadata(ext: str, img: UMat, metadataTypes: _typing.Sequence[int], metadata: _typing.Sequence[UMat], params: _typing.Sequence[int] = ...) -> tuple[bool, numpy.ndarray[_typing.Any, numpy.dtype[numpy.uint8]]]: ...
|
|
5796
|
+
|
|
5797
|
+
def imencodeanimation(ext: str, animation: Animation, params: _typing.Sequence[int] = ...) -> tuple[bool, numpy.ndarray[_typing.Any, numpy.dtype[numpy.uint8]]]: ...
|
|
5798
|
+
|
|
5645
5799
|
@_typing.overload
|
|
5646
5800
|
def imencodemulti(ext: str, imgs: _typing.Sequence[cv2.typing.MatLike], params: _typing.Sequence[int] = ...) -> tuple[bool, numpy.ndarray[_typing.Any, numpy.dtype[numpy.uint8]]]: ...
|
|
5647
5801
|
@_typing.overload
|
|
5648
5802
|
def imencodemulti(ext: str, imgs: _typing.Sequence[UMat], params: _typing.Sequence[int] = ...) -> tuple[bool, numpy.ndarray[_typing.Any, numpy.dtype[numpy.uint8]]]: ...
|
|
5649
5803
|
|
|
5650
5804
|
@_typing.overload
|
|
5651
|
-
def imread(filename: str, flags: int = ...) -> cv2.typing.MatLike: ...
|
|
5805
|
+
def imread(filename: str | os.PathLike[str], flags: int = ...) -> cv2.typing.MatLike | None: ...
|
|
5652
5806
|
@_typing.overload
|
|
5653
|
-
def imread(filename: str, dst: cv2.typing.MatLike | None = ..., flags: int = ...) -> cv2.typing.MatLike: ...
|
|
5807
|
+
def imread(filename: str | os.PathLike[str], dst: cv2.typing.MatLike | None = ..., flags: int = ...) -> cv2.typing.MatLike | None: ...
|
|
5654
5808
|
@_typing.overload
|
|
5655
|
-
def imread(filename: str, dst: UMat | None = ..., flags: int = ...) -> UMat: ...
|
|
5809
|
+
def imread(filename: str | os.PathLike[str], dst: UMat | None = ..., flags: int = ...) -> UMat | None: ...
|
|
5656
5810
|
|
|
5657
|
-
|
|
5811
|
+
@_typing.overload
|
|
5812
|
+
def imreadWithMetadata(filename: str | os.PathLike[str], metadata: _typing.Sequence[cv2.typing.MatLike] | None = ..., flags: int = ...) -> tuple[cv2.typing.MatLike, _typing.Sequence[int], _typing.Sequence[cv2.typing.MatLike]]: ...
|
|
5813
|
+
@_typing.overload
|
|
5814
|
+
def imreadWithMetadata(filename: str | os.PathLike[str], metadata: _typing.Sequence[UMat] | None = ..., flags: int = ...) -> tuple[cv2.typing.MatLike, _typing.Sequence[int], _typing.Sequence[UMat]]: ...
|
|
5815
|
+
|
|
5816
|
+
def imreadanimation(filename: str | os.PathLike[str], start: int = ..., count: int = ...) -> tuple[bool, Animation]: ...
|
|
5658
5817
|
|
|
5659
5818
|
@_typing.overload
|
|
5660
|
-
def imreadmulti(filename: str, mats: _typing.Sequence[cv2.typing.MatLike] | None = ..., flags: int = ...) -> tuple[bool, _typing.Sequence[cv2.typing.MatLike]]: ...
|
|
5819
|
+
def imreadmulti(filename: str | os.PathLike[str], mats: _typing.Sequence[cv2.typing.MatLike] | None = ..., flags: int = ...) -> tuple[bool, _typing.Sequence[cv2.typing.MatLike]]: ...
|
|
5661
5820
|
@_typing.overload
|
|
5662
|
-
def imreadmulti(filename: str, start: int, count: int, mats: _typing.Sequence[cv2.typing.MatLike] | None = ..., flags: int = ...) -> tuple[bool, _typing.Sequence[cv2.typing.MatLike]]: ...
|
|
5821
|
+
def imreadmulti(filename: str | os.PathLike[str], start: int, count: int, mats: _typing.Sequence[cv2.typing.MatLike] | None = ..., flags: int = ...) -> tuple[bool, _typing.Sequence[cv2.typing.MatLike]]: ...
|
|
5663
5822
|
|
|
5664
5823
|
@_typing.overload
|
|
5665
5824
|
def imshow(winname: str, mat: cv2.typing.MatLike) -> None: ...
|
|
@@ -5669,16 +5828,21 @@ def imshow(winname: str, mat: cv2.cuda.GpuMat) -> None: ...
|
|
|
5669
5828
|
def imshow(winname: str, mat: UMat) -> None: ...
|
|
5670
5829
|
|
|
5671
5830
|
@_typing.overload
|
|
5672
|
-
def imwrite(filename: str, img: cv2.typing.MatLike, params: _typing.Sequence[int] = ...) -> bool: ...
|
|
5831
|
+
def imwrite(filename: str | os.PathLike[str], img: cv2.typing.MatLike, params: _typing.Sequence[int] = ...) -> bool: ...
|
|
5832
|
+
@_typing.overload
|
|
5833
|
+
def imwrite(filename: str | os.PathLike[str], img: UMat, params: _typing.Sequence[int] = ...) -> bool: ...
|
|
5834
|
+
|
|
5835
|
+
@_typing.overload
|
|
5836
|
+
def imwriteWithMetadata(filename: str | os.PathLike[str], img: cv2.typing.MatLike, metadataTypes: _typing.Sequence[int], metadata: _typing.Sequence[cv2.typing.MatLike], params: _typing.Sequence[int] = ...) -> bool: ...
|
|
5673
5837
|
@_typing.overload
|
|
5674
|
-
def
|
|
5838
|
+
def imwriteWithMetadata(filename: str | os.PathLike[str], img: UMat, metadataTypes: _typing.Sequence[int], metadata: _typing.Sequence[UMat], params: _typing.Sequence[int] = ...) -> bool: ...
|
|
5675
5839
|
|
|
5676
|
-
def imwriteanimation(filename: str, animation: Animation, params: _typing.Sequence[int] = ...) -> bool: ...
|
|
5840
|
+
def imwriteanimation(filename: str | os.PathLike[str], animation: Animation, params: _typing.Sequence[int] = ...) -> bool: ...
|
|
5677
5841
|
|
|
5678
5842
|
@_typing.overload
|
|
5679
|
-
def imwritemulti(filename: str, img: _typing.Sequence[cv2.typing.MatLike], params: _typing.Sequence[int] = ...) -> bool: ...
|
|
5843
|
+
def imwritemulti(filename: str | os.PathLike[str], img: _typing.Sequence[cv2.typing.MatLike], params: _typing.Sequence[int] = ...) -> bool: ...
|
|
5680
5844
|
@_typing.overload
|
|
5681
|
-
def imwritemulti(filename: str, img: _typing.Sequence[UMat], params: _typing.Sequence[int] = ...) -> bool: ...
|
|
5845
|
+
def imwritemulti(filename: str | os.PathLike[str], img: _typing.Sequence[UMat], params: _typing.Sequence[int] = ...) -> bool: ...
|
|
5682
5846
|
|
|
5683
5847
|
@_typing.overload
|
|
5684
5848
|
def inRange(src: cv2.typing.MatLike, lowerb: cv2.typing.MatLike, upperb: cv2.typing.MatLike, dst: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
|
|
@@ -5691,14 +5855,14 @@ def initCameraMatrix2D(objectPoints: _typing.Sequence[cv2.typing.MatLike], image
|
|
|
5691
5855
|
def initCameraMatrix2D(objectPoints: _typing.Sequence[UMat], imagePoints: _typing.Sequence[UMat], imageSize: cv2.typing.Size, aspectRatio: float = ...) -> cv2.typing.MatLike: ...
|
|
5692
5856
|
|
|
5693
5857
|
@_typing.overload
|
|
5694
|
-
def initInverseRectificationMap(cameraMatrix: cv2.typing.MatLike, distCoeffs: cv2.typing.MatLike, R: cv2.typing.MatLike, newCameraMatrix: cv2.typing.MatLike, size: cv2.typing.Size, m1type: int, map1: cv2.typing.MatLike | None = ..., map2: cv2.typing.MatLike | None = ...) -> tuple[cv2.typing.MatLike, cv2.typing.MatLike]: ...
|
|
5858
|
+
def initInverseRectificationMap(cameraMatrix: cv2.typing.MatLike, distCoeffs: cv2.typing.MatLike | None, R: cv2.typing.MatLike | None, newCameraMatrix: cv2.typing.MatLike, size: cv2.typing.Size, m1type: int, map1: cv2.typing.MatLike | None = ..., map2: cv2.typing.MatLike | None = ...) -> tuple[cv2.typing.MatLike, cv2.typing.MatLike]: ...
|
|
5695
5859
|
@_typing.overload
|
|
5696
|
-
def initInverseRectificationMap(cameraMatrix: UMat, distCoeffs: UMat, R: UMat, newCameraMatrix: UMat, size: cv2.typing.Size, m1type: int, map1: UMat | None = ..., map2: UMat | None = ...) -> tuple[UMat, UMat]: ...
|
|
5860
|
+
def initInverseRectificationMap(cameraMatrix: UMat, distCoeffs: UMat | None, R: UMat | None, newCameraMatrix: UMat, size: cv2.typing.Size, m1type: int, map1: UMat | None = ..., map2: UMat | None = ...) -> tuple[UMat, UMat]: ...
|
|
5697
5861
|
|
|
5698
5862
|
@_typing.overload
|
|
5699
|
-
def initUndistortRectifyMap(cameraMatrix: cv2.typing.MatLike, distCoeffs: cv2.typing.MatLike, R: cv2.typing.MatLike, newCameraMatrix: cv2.typing.MatLike, size: cv2.typing.Size, m1type: int, map1: cv2.typing.MatLike | None = ..., map2: cv2.typing.MatLike | None = ...) -> tuple[cv2.typing.MatLike, cv2.typing.MatLike]: ...
|
|
5863
|
+
def initUndistortRectifyMap(cameraMatrix: cv2.typing.MatLike, distCoeffs: cv2.typing.MatLike | None, R: cv2.typing.MatLike | None, newCameraMatrix: cv2.typing.MatLike, size: cv2.typing.Size, m1type: int, map1: cv2.typing.MatLike | None = ..., map2: cv2.typing.MatLike | None = ...) -> tuple[cv2.typing.MatLike, cv2.typing.MatLike]: ...
|
|
5700
5864
|
@_typing.overload
|
|
5701
|
-
def initUndistortRectifyMap(cameraMatrix: UMat, distCoeffs: UMat, R: UMat, newCameraMatrix: UMat, size: cv2.typing.Size, m1type: int, map1: UMat | None = ..., map2: UMat | None = ...) -> tuple[UMat, UMat]: ...
|
|
5865
|
+
def initUndistortRectifyMap(cameraMatrix: UMat, distCoeffs: UMat | None, R: UMat | None, newCameraMatrix: UMat, size: cv2.typing.Size, m1type: int, map1: UMat | None = ..., map2: UMat | None = ...) -> tuple[UMat, UMat]: ...
|
|
5702
5866
|
|
|
5703
5867
|
@_typing.overload
|
|
5704
5868
|
def inpaint(src: cv2.typing.MatLike, inpaintMask: cv2.typing.MatLike, inpaintRadius: float, flags: int, dst: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
|
|
@@ -5796,9 +5960,9 @@ def max(src1: cv2.typing.MatLike, src2: cv2.typing.MatLike, dst: cv2.typing.MatL
|
|
|
5796
5960
|
def max(src1: UMat, src2: UMat, dst: UMat | None = ...) -> UMat: ...
|
|
5797
5961
|
|
|
5798
5962
|
@_typing.overload
|
|
5799
|
-
def mean(src: cv2.typing.MatLike, mask: cv2.typing.MatLike | None = ...) ->
|
|
5963
|
+
def mean(src: cv2.typing.MatLike, mask: cv2.typing.MatLike | None = ...) -> tuple[float, float, float, float]: ...
|
|
5800
5964
|
@_typing.overload
|
|
5801
|
-
def mean(src: UMat, mask: UMat | None = ...) ->
|
|
5965
|
+
def mean(src: UMat, mask: UMat | None = ...) -> tuple[float, float, float, float]: ...
|
|
5802
5966
|
|
|
5803
5967
|
@_typing.overload
|
|
5804
5968
|
def meanShift(probImage: cv2.typing.MatLike, window: cv2.typing.Rect, criteria: cv2.typing.TermCriteria) -> tuple[int, cv2.typing.Rect]: ...
|
|
@@ -5835,6 +5999,11 @@ def minEnclosingCircle(points: cv2.typing.MatLike) -> tuple[cv2.typing.Point2f,
|
|
|
5835
5999
|
@_typing.overload
|
|
5836
6000
|
def minEnclosingCircle(points: UMat) -> tuple[cv2.typing.Point2f, float]: ...
|
|
5837
6001
|
|
|
6002
|
+
@_typing.overload
|
|
6003
|
+
def minEnclosingConvexPolygon(points: cv2.typing.MatLike, k: int, polygon: cv2.typing.MatLike | None = ...) -> tuple[float, cv2.typing.MatLike]: ...
|
|
6004
|
+
@_typing.overload
|
|
6005
|
+
def minEnclosingConvexPolygon(points: UMat, k: int, polygon: UMat | None = ...) -> tuple[float, UMat]: ...
|
|
6006
|
+
|
|
5838
6007
|
@_typing.overload
|
|
5839
6008
|
def minEnclosingTriangle(points: cv2.typing.MatLike, triangle: cv2.typing.MatLike | None = ...) -> tuple[float, cv2.typing.MatLike]: ...
|
|
5840
6009
|
@_typing.overload
|
|
@@ -5918,6 +6087,11 @@ def phaseCorrelate(src1: cv2.typing.MatLike, src2: cv2.typing.MatLike, window: c
|
|
|
5918
6087
|
@_typing.overload
|
|
5919
6088
|
def phaseCorrelate(src1: UMat, src2: UMat, window: UMat | None = ...) -> tuple[cv2.typing.Point2d, float]: ...
|
|
5920
6089
|
|
|
6090
|
+
@_typing.overload
|
|
6091
|
+
def phaseCorrelateIterative(src1: cv2.typing.MatLike, src2: cv2.typing.MatLike, L2size: int = ..., maxIters: int = ...) -> cv2.typing.Point2d: ...
|
|
6092
|
+
@_typing.overload
|
|
6093
|
+
def phaseCorrelateIterative(src1: UMat, src2: UMat, L2size: int = ..., maxIters: int = ...) -> cv2.typing.Point2d: ...
|
|
6094
|
+
|
|
5921
6095
|
@_typing.overload
|
|
5922
6096
|
def pointPolygonTest(contour: cv2.typing.MatLike, pt: cv2.typing.Point2f, measureDist: bool) -> float: ...
|
|
5923
6097
|
@_typing.overload
|
|
@@ -5946,9 +6120,9 @@ def preCornerDetect(src: cv2.typing.MatLike, ksize: int, dst: cv2.typing.MatLike
|
|
|
5946
6120
|
def preCornerDetect(src: UMat, ksize: int, dst: UMat | None = ..., borderType: int = ...) -> UMat: ...
|
|
5947
6121
|
|
|
5948
6122
|
@_typing.overload
|
|
5949
|
-
def projectPoints(objectPoints: cv2.typing.MatLike, rvec: cv2.typing.MatLike, tvec: cv2.typing.MatLike, cameraMatrix: cv2.typing.MatLike, distCoeffs: cv2.typing.MatLike, imagePoints: cv2.typing.MatLike | None = ..., jacobian: cv2.typing.MatLike | None = ..., aspectRatio: float = ...) -> tuple[cv2.typing.MatLike, cv2.typing.MatLike]: ...
|
|
6123
|
+
def projectPoints(objectPoints: cv2.typing.MatLike, rvec: cv2.typing.MatLike, tvec: cv2.typing.MatLike, cameraMatrix: cv2.typing.MatLike, distCoeffs: cv2.typing.MatLike | None, imagePoints: cv2.typing.MatLike | None = ..., jacobian: cv2.typing.MatLike | None = ..., aspectRatio: float = ...) -> tuple[cv2.typing.MatLike, cv2.typing.MatLike]: ...
|
|
5950
6124
|
@_typing.overload
|
|
5951
|
-
def projectPoints(objectPoints: UMat, rvec: UMat, tvec: UMat, cameraMatrix: UMat, distCoeffs: UMat, imagePoints: UMat | None = ..., jacobian: UMat | None = ..., aspectRatio: float = ...) -> tuple[UMat, UMat]: ...
|
|
6125
|
+
def projectPoints(objectPoints: UMat, rvec: UMat, tvec: UMat, cameraMatrix: UMat, distCoeffs: UMat | None, imagePoints: UMat | None = ..., jacobian: UMat | None = ..., aspectRatio: float = ...) -> tuple[UMat, UMat]: ...
|
|
5952
6126
|
|
|
5953
6127
|
@_typing.overload
|
|
5954
6128
|
def putText(img: cv2.typing.MatLike, text: str, org: cv2.typing.Point, fontFace: int, fontScale: float, color: cv2.typing.Scalar, thickness: int = ..., lineType: int = ..., bottomLeftOrigin: bool = ...) -> cv2.typing.MatLike: ...
|
|
@@ -6109,8 +6283,6 @@ def setIdentity(mtx: cv2.typing.MatLike, s: cv2.typing.Scalar = ...) -> cv2.typi
|
|
|
6109
6283
|
@_typing.overload
|
|
6110
6284
|
def setIdentity(mtx: UMat, s: cv2.typing.Scalar = ...) -> UMat: ...
|
|
6111
6285
|
|
|
6112
|
-
def setLogLevel(level: int) -> int: ...
|
|
6113
|
-
|
|
6114
6286
|
def setNumThreads(nthreads: int) -> None: ...
|
|
6115
6287
|
|
|
6116
6288
|
def setRNGSeed(seed: int) -> None: ...
|
|
@@ -6149,38 +6321,38 @@ def solveLP(Func: cv2.typing.MatLike, Constr: cv2.typing.MatLike, z: cv2.typing.
|
|
|
6149
6321
|
def solveLP(Func: UMat, Constr: UMat, z: UMat | None = ...) -> tuple[int, UMat]: ...
|
|
6150
6322
|
|
|
6151
6323
|
@_typing.overload
|
|
6152
|
-
def solveP3P(objectPoints: cv2.typing.MatLike, imagePoints: cv2.typing.MatLike, cameraMatrix: cv2.typing.MatLike, distCoeffs: cv2.typing.MatLike, flags: int, rvecs: _typing.Sequence[cv2.typing.MatLike] | None = ..., tvecs: _typing.Sequence[cv2.typing.MatLike] | None = ...) -> tuple[int, _typing.Sequence[cv2.typing.MatLike], _typing.Sequence[cv2.typing.MatLike]]: ...
|
|
6324
|
+
def solveP3P(objectPoints: cv2.typing.MatLike, imagePoints: cv2.typing.MatLike, cameraMatrix: cv2.typing.MatLike, distCoeffs: cv2.typing.MatLike | None, flags: int, rvecs: _typing.Sequence[cv2.typing.MatLike] | None = ..., tvecs: _typing.Sequence[cv2.typing.MatLike] | None = ...) -> tuple[int, _typing.Sequence[cv2.typing.MatLike], _typing.Sequence[cv2.typing.MatLike]]: ...
|
|
6153
6325
|
@_typing.overload
|
|
6154
|
-
def solveP3P(objectPoints: UMat, imagePoints: UMat, cameraMatrix: UMat, distCoeffs: UMat, flags: int, rvecs: _typing.Sequence[UMat] | None = ..., tvecs: _typing.Sequence[UMat] | None = ...) -> tuple[int, _typing.Sequence[UMat], _typing.Sequence[UMat]]: ...
|
|
6326
|
+
def solveP3P(objectPoints: UMat, imagePoints: UMat, cameraMatrix: UMat, distCoeffs: UMat | None, flags: int, rvecs: _typing.Sequence[UMat] | None = ..., tvecs: _typing.Sequence[UMat] | None = ...) -> tuple[int, _typing.Sequence[UMat], _typing.Sequence[UMat]]: ...
|
|
6155
6327
|
|
|
6156
6328
|
@_typing.overload
|
|
6157
|
-
def solvePnP(objectPoints: cv2.typing.MatLike, imagePoints: cv2.typing.MatLike, cameraMatrix: cv2.typing.MatLike, distCoeffs: cv2.typing.MatLike, rvec: cv2.typing.MatLike | None = ..., tvec: cv2.typing.MatLike | None = ..., useExtrinsicGuess: bool = ..., flags: int = ...) -> tuple[bool, cv2.typing.MatLike, cv2.typing.MatLike]: ...
|
|
6329
|
+
def solvePnP(objectPoints: cv2.typing.MatLike, imagePoints: cv2.typing.MatLike, cameraMatrix: cv2.typing.MatLike, distCoeffs: cv2.typing.MatLike | None, rvec: cv2.typing.MatLike | None = ..., tvec: cv2.typing.MatLike | None = ..., useExtrinsicGuess: bool = ..., flags: int = ...) -> tuple[bool, cv2.typing.MatLike, cv2.typing.MatLike]: ...
|
|
6158
6330
|
@_typing.overload
|
|
6159
|
-
def solvePnP(objectPoints: UMat, imagePoints: UMat, cameraMatrix: UMat, distCoeffs: UMat, rvec: UMat | None = ..., tvec: UMat | None = ..., useExtrinsicGuess: bool = ..., flags: int = ...) -> tuple[bool, UMat, UMat]: ...
|
|
6331
|
+
def solvePnP(objectPoints: UMat, imagePoints: UMat, cameraMatrix: UMat, distCoeffs: UMat | None, rvec: UMat | None = ..., tvec: UMat | None = ..., useExtrinsicGuess: bool = ..., flags: int = ...) -> tuple[bool, UMat, UMat]: ...
|
|
6160
6332
|
|
|
6161
6333
|
@_typing.overload
|
|
6162
|
-
def solvePnPGeneric(objectPoints: cv2.typing.MatLike, imagePoints: cv2.typing.MatLike, cameraMatrix: cv2.typing.MatLike, distCoeffs: cv2.typing.MatLike, rvecs: _typing.Sequence[cv2.typing.MatLike] | None = ..., tvecs: _typing.Sequence[cv2.typing.MatLike] | None = ..., useExtrinsicGuess: bool = ..., flags: SolvePnPMethod = ..., rvec: cv2.typing.MatLike | None = ..., tvec: cv2.typing.MatLike | None = ..., reprojectionError: cv2.typing.MatLike | None = ...) -> tuple[int, _typing.Sequence[cv2.typing.MatLike], _typing.Sequence[cv2.typing.MatLike], cv2.typing.MatLike]: ...
|
|
6334
|
+
def solvePnPGeneric(objectPoints: cv2.typing.MatLike, imagePoints: cv2.typing.MatLike, cameraMatrix: cv2.typing.MatLike, distCoeffs: cv2.typing.MatLike | None, rvecs: _typing.Sequence[cv2.typing.MatLike] | None = ..., tvecs: _typing.Sequence[cv2.typing.MatLike] | None = ..., useExtrinsicGuess: bool = ..., flags: SolvePnPMethod = ..., rvec: cv2.typing.MatLike | None = ..., tvec: cv2.typing.MatLike | None = ..., reprojectionError: cv2.typing.MatLike | None = ...) -> tuple[int, _typing.Sequence[cv2.typing.MatLike], _typing.Sequence[cv2.typing.MatLike], cv2.typing.MatLike]: ...
|
|
6163
6335
|
@_typing.overload
|
|
6164
|
-
def solvePnPGeneric(objectPoints: UMat, imagePoints: UMat, cameraMatrix: UMat, distCoeffs: UMat, rvecs: _typing.Sequence[UMat] | None = ..., tvecs: _typing.Sequence[UMat] | None = ..., useExtrinsicGuess: bool = ..., flags: SolvePnPMethod = ..., rvec: UMat | None = ..., tvec: UMat | None = ..., reprojectionError: UMat | None = ...) -> tuple[int, _typing.Sequence[UMat], _typing.Sequence[UMat], UMat]: ...
|
|
6336
|
+
def solvePnPGeneric(objectPoints: UMat, imagePoints: UMat, cameraMatrix: UMat, distCoeffs: UMat | None, rvecs: _typing.Sequence[UMat] | None = ..., tvecs: _typing.Sequence[UMat] | None = ..., useExtrinsicGuess: bool = ..., flags: SolvePnPMethod = ..., rvec: UMat | None = ..., tvec: UMat | None = ..., reprojectionError: UMat | None = ...) -> tuple[int, _typing.Sequence[UMat], _typing.Sequence[UMat], UMat]: ...
|
|
6165
6337
|
|
|
6166
6338
|
@_typing.overload
|
|
6167
|
-
def solvePnPRansac(objectPoints: cv2.typing.MatLike, imagePoints: cv2.typing.MatLike, cameraMatrix: cv2.typing.MatLike, distCoeffs: cv2.typing.MatLike, rvec: cv2.typing.MatLike | None = ..., tvec: cv2.typing.MatLike | None = ..., useExtrinsicGuess: bool = ..., iterationsCount: int = ..., reprojectionError: float = ..., confidence: float = ..., inliers: cv2.typing.MatLike | None = ..., flags: int = ...) -> tuple[bool, cv2.typing.MatLike, cv2.typing.MatLike, cv2.typing.MatLike]: ...
|
|
6339
|
+
def solvePnPRansac(objectPoints: cv2.typing.MatLike, imagePoints: cv2.typing.MatLike, cameraMatrix: cv2.typing.MatLike, distCoeffs: cv2.typing.MatLike | None, rvec: cv2.typing.MatLike | None = ..., tvec: cv2.typing.MatLike | None = ..., useExtrinsicGuess: bool = ..., iterationsCount: int = ..., reprojectionError: float = ..., confidence: float = ..., inliers: cv2.typing.MatLike | None = ..., flags: int = ...) -> tuple[bool, cv2.typing.MatLike, cv2.typing.MatLike, cv2.typing.MatLike]: ...
|
|
6168
6340
|
@_typing.overload
|
|
6169
|
-
def solvePnPRansac(objectPoints: UMat, imagePoints: UMat, cameraMatrix: UMat, distCoeffs: UMat, rvec: UMat | None = ..., tvec: UMat | None = ..., useExtrinsicGuess: bool = ..., iterationsCount: int = ..., reprojectionError: float = ..., confidence: float = ..., inliers: UMat | None = ..., flags: int = ...) -> tuple[bool, UMat, UMat, UMat]: ...
|
|
6341
|
+
def solvePnPRansac(objectPoints: UMat, imagePoints: UMat, cameraMatrix: UMat, distCoeffs: UMat | None, rvec: UMat | None = ..., tvec: UMat | None = ..., useExtrinsicGuess: bool = ..., iterationsCount: int = ..., reprojectionError: float = ..., confidence: float = ..., inliers: UMat | None = ..., flags: int = ...) -> tuple[bool, UMat, UMat, UMat]: ...
|
|
6170
6342
|
@_typing.overload
|
|
6171
|
-
def solvePnPRansac(objectPoints: cv2.typing.MatLike, imagePoints: cv2.typing.MatLike, cameraMatrix: cv2.typing.MatLike, distCoeffs: cv2.typing.MatLike, rvec: cv2.typing.MatLike | None = ..., tvec: cv2.typing.MatLike | None = ..., inliers: cv2.typing.MatLike | None = ..., params: UsacParams = ...) -> tuple[bool, cv2.typing.MatLike, cv2.typing.MatLike, cv2.typing.MatLike, cv2.typing.MatLike]: ...
|
|
6343
|
+
def solvePnPRansac(objectPoints: cv2.typing.MatLike, imagePoints: cv2.typing.MatLike, cameraMatrix: cv2.typing.MatLike, distCoeffs: cv2.typing.MatLike | None, rvec: cv2.typing.MatLike | None = ..., tvec: cv2.typing.MatLike | None = ..., inliers: cv2.typing.MatLike | None = ..., params: UsacParams = ...) -> tuple[bool, cv2.typing.MatLike, cv2.typing.MatLike, cv2.typing.MatLike, cv2.typing.MatLike]: ...
|
|
6172
6344
|
@_typing.overload
|
|
6173
|
-
def solvePnPRansac(objectPoints: UMat, imagePoints: UMat, cameraMatrix: UMat, distCoeffs: UMat, rvec: UMat | None = ..., tvec: UMat | None = ..., inliers: UMat | None = ..., params: UsacParams = ...) -> tuple[bool, UMat, UMat, UMat, UMat]: ...
|
|
6345
|
+
def solvePnPRansac(objectPoints: UMat, imagePoints: UMat, cameraMatrix: UMat, distCoeffs: UMat | None, rvec: UMat | None = ..., tvec: UMat | None = ..., inliers: UMat | None = ..., params: UsacParams = ...) -> tuple[bool, UMat, UMat, UMat, UMat]: ...
|
|
6174
6346
|
|
|
6175
6347
|
@_typing.overload
|
|
6176
|
-
def solvePnPRefineLM(objectPoints: cv2.typing.MatLike, imagePoints: cv2.typing.MatLike, cameraMatrix: cv2.typing.MatLike, distCoeffs: cv2.typing.MatLike, rvec: cv2.typing.MatLike, tvec: cv2.typing.MatLike, criteria: cv2.typing.TermCriteria = ...) -> tuple[cv2.typing.MatLike, cv2.typing.MatLike]: ...
|
|
6348
|
+
def solvePnPRefineLM(objectPoints: cv2.typing.MatLike, imagePoints: cv2.typing.MatLike, cameraMatrix: cv2.typing.MatLike, distCoeffs: cv2.typing.MatLike | None, rvec: cv2.typing.MatLike, tvec: cv2.typing.MatLike, criteria: cv2.typing.TermCriteria = ...) -> tuple[cv2.typing.MatLike, cv2.typing.MatLike]: ...
|
|
6177
6349
|
@_typing.overload
|
|
6178
|
-
def solvePnPRefineLM(objectPoints: UMat, imagePoints: UMat, cameraMatrix: UMat, distCoeffs: UMat, rvec: UMat, tvec: UMat, criteria: cv2.typing.TermCriteria = ...) -> tuple[UMat, UMat]: ...
|
|
6350
|
+
def solvePnPRefineLM(objectPoints: UMat, imagePoints: UMat, cameraMatrix: UMat, distCoeffs: UMat | None, rvec: UMat, tvec: UMat, criteria: cv2.typing.TermCriteria = ...) -> tuple[UMat, UMat]: ...
|
|
6179
6351
|
|
|
6180
6352
|
@_typing.overload
|
|
6181
|
-
def solvePnPRefineVVS(objectPoints: cv2.typing.MatLike, imagePoints: cv2.typing.MatLike, cameraMatrix: cv2.typing.MatLike, distCoeffs: cv2.typing.MatLike, rvec: cv2.typing.MatLike, tvec: cv2.typing.MatLike, criteria: cv2.typing.TermCriteria = ..., VVSlambda: float = ...) -> tuple[cv2.typing.MatLike, cv2.typing.MatLike]: ...
|
|
6353
|
+
def solvePnPRefineVVS(objectPoints: cv2.typing.MatLike, imagePoints: cv2.typing.MatLike, cameraMatrix: cv2.typing.MatLike, distCoeffs: cv2.typing.MatLike | None, rvec: cv2.typing.MatLike, tvec: cv2.typing.MatLike, criteria: cv2.typing.TermCriteria = ..., VVSlambda: float = ...) -> tuple[cv2.typing.MatLike, cv2.typing.MatLike]: ...
|
|
6182
6354
|
@_typing.overload
|
|
6183
|
-
def solvePnPRefineVVS(objectPoints: UMat, imagePoints: UMat, cameraMatrix: UMat, distCoeffs: UMat, rvec: UMat, tvec: UMat, criteria: cv2.typing.TermCriteria = ..., VVSlambda: float = ...) -> tuple[UMat, UMat]: ...
|
|
6355
|
+
def solvePnPRefineVVS(objectPoints: UMat, imagePoints: UMat, cameraMatrix: UMat, distCoeffs: UMat | None, rvec: UMat, tvec: UMat, criteria: cv2.typing.TermCriteria = ..., VVSlambda: float = ...) -> tuple[UMat, UMat]: ...
|
|
6184
6356
|
|
|
6185
6357
|
@_typing.overload
|
|
6186
6358
|
def solvePoly(coeffs: cv2.typing.MatLike, roots: cv2.typing.MatLike | None = ..., maxIters: int = ...) -> tuple[float, cv2.typing.MatLike]: ...
|
|
@@ -6259,9 +6431,9 @@ def subtract(src1: cv2.typing.MatLike, src2: cv2.typing.MatLike, dst: cv2.typing
|
|
|
6259
6431
|
def subtract(src1: UMat, src2: UMat, dst: UMat | None = ..., mask: UMat | None = ..., dtype: int = ...) -> UMat: ...
|
|
6260
6432
|
|
|
6261
6433
|
@_typing.overload
|
|
6262
|
-
def sumElems(src: cv2.typing.MatLike) ->
|
|
6434
|
+
def sumElems(src: cv2.typing.MatLike) -> tuple[float, float, float, float]: ...
|
|
6263
6435
|
@_typing.overload
|
|
6264
|
-
def sumElems(src: UMat) ->
|
|
6436
|
+
def sumElems(src: UMat) -> tuple[float, float, float, float]: ...
|
|
6265
6437
|
|
|
6266
6438
|
@_typing.overload
|
|
6267
6439
|
def textureFlattening(src: cv2.typing.MatLike, mask: cv2.typing.MatLike, dst: cv2.typing.MatLike | None = ..., low_threshold: float = ..., high_threshold: float = ..., kernel_size: int = ...) -> cv2.typing.MatLike: ...
|
|
@@ -6274,9 +6446,14 @@ def threshold(src: cv2.typing.MatLike, thresh: float, maxval: float, type: int,
|
|
|
6274
6446
|
def threshold(src: UMat, thresh: float, maxval: float, type: int, dst: UMat | None = ...) -> tuple[float, UMat]: ...
|
|
6275
6447
|
|
|
6276
6448
|
@_typing.overload
|
|
6277
|
-
def
|
|
6449
|
+
def thresholdWithMask(src: cv2.typing.MatLike, dst: cv2.typing.MatLike, mask: cv2.typing.MatLike, thresh: float, maxval: float, type: int) -> tuple[float, cv2.typing.MatLike]: ...
|
|
6450
|
+
@_typing.overload
|
|
6451
|
+
def thresholdWithMask(src: UMat, dst: UMat, mask: UMat, thresh: float, maxval: float, type: int) -> tuple[float, UMat]: ...
|
|
6452
|
+
|
|
6453
|
+
@_typing.overload
|
|
6454
|
+
def trace(mtx: cv2.typing.MatLike) -> tuple[float, float, float, float]: ...
|
|
6278
6455
|
@_typing.overload
|
|
6279
|
-
def trace(mtx: UMat) ->
|
|
6456
|
+
def trace(mtx: UMat) -> tuple[float, float, float, float]: ...
|
|
6280
6457
|
|
|
6281
6458
|
@_typing.overload
|
|
6282
6459
|
def transform(src: cv2.typing.MatLike, m: cv2.typing.MatLike, dst: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
|
|
@@ -6299,9 +6476,9 @@ def triangulatePoints(projMatr1: cv2.typing.MatLike, projMatr2: cv2.typing.MatLi
|
|
|
6299
6476
|
def triangulatePoints(projMatr1: UMat, projMatr2: UMat, projPoints1: UMat, projPoints2: UMat, points4D: UMat | None = ...) -> UMat: ...
|
|
6300
6477
|
|
|
6301
6478
|
@_typing.overload
|
|
6302
|
-
def undistort(src: cv2.typing.MatLike, cameraMatrix: cv2.typing.MatLike, distCoeffs: cv2.typing.MatLike, dst: cv2.typing.MatLike | None = ..., newCameraMatrix: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
|
|
6479
|
+
def undistort(src: cv2.typing.MatLike, cameraMatrix: cv2.typing.MatLike, distCoeffs: cv2.typing.MatLike | None, dst: cv2.typing.MatLike | None = ..., newCameraMatrix: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
|
|
6303
6480
|
@_typing.overload
|
|
6304
|
-
def undistort(src: UMat, cameraMatrix: UMat, distCoeffs: UMat, dst: UMat | None = ..., newCameraMatrix: UMat | None = ...) -> UMat: ...
|
|
6481
|
+
def undistort(src: UMat, cameraMatrix: UMat, distCoeffs: UMat | None, dst: UMat | None = ..., newCameraMatrix: UMat | None = ...) -> UMat: ...
|
|
6305
6482
|
|
|
6306
6483
|
@_typing.overload
|
|
6307
6484
|
def undistortImagePoints(src: cv2.typing.MatLike, cameraMatrix: cv2.typing.MatLike, distCoeffs: cv2.typing.MatLike, dst: cv2.typing.MatLike | None = ..., arg1: cv2.typing.TermCriteria = ...) -> cv2.typing.MatLike: ...
|
|
@@ -6309,9 +6486,9 @@ def undistortImagePoints(src: cv2.typing.MatLike, cameraMatrix: cv2.typing.MatLi
|
|
|
6309
6486
|
def undistortImagePoints(src: UMat, cameraMatrix: UMat, distCoeffs: UMat, dst: UMat | None = ..., arg1: cv2.typing.TermCriteria = ...) -> UMat: ...
|
|
6310
6487
|
|
|
6311
6488
|
@_typing.overload
|
|
6312
|
-
def undistortPoints(src: cv2.typing.MatLike, cameraMatrix: cv2.typing.MatLike, distCoeffs: cv2.typing.MatLike, dst: cv2.typing.MatLike | None = ..., R: cv2.typing.MatLike | None = ..., P: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
|
|
6489
|
+
def undistortPoints(src: cv2.typing.MatLike, cameraMatrix: cv2.typing.MatLike, distCoeffs: cv2.typing.MatLike | None, dst: cv2.typing.MatLike | None = ..., R: cv2.typing.MatLike | None = ..., P: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
|
|
6313
6490
|
@_typing.overload
|
|
6314
|
-
def undistortPoints(src: UMat, cameraMatrix: UMat, distCoeffs: UMat, dst: UMat | None = ..., R: UMat | None = ..., P: UMat | None = ...) -> UMat: ...
|
|
6491
|
+
def undistortPoints(src: UMat, cameraMatrix: UMat, distCoeffs: UMat | None, dst: UMat | None = ..., R: UMat | None = ..., P: UMat | None = ...) -> UMat: ...
|
|
6315
6492
|
|
|
6316
6493
|
@_typing.overload
|
|
6317
6494
|
def undistortPointsIter(src: cv2.typing.MatLike, cameraMatrix: cv2.typing.MatLike, distCoeffs: cv2.typing.MatLike, R: cv2.typing.MatLike, P: cv2.typing.MatLike, criteria: cv2.typing.TermCriteria, dst: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
|