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/__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
|
|
|
@@ -33,6 +34,7 @@ from cv2 import ft as ft
|
|
|
33
34
|
from cv2 import gapi as gapi
|
|
34
35
|
from cv2 import hfs as hfs
|
|
35
36
|
from cv2 import img_hash as img_hash
|
|
37
|
+
from cv2 import instr as instr
|
|
36
38
|
from cv2 import intensity_transform as intensity_transform
|
|
37
39
|
from cv2 import ipp as ipp
|
|
38
40
|
from cv2 import kinfu as kinfu
|
|
@@ -250,8 +252,9 @@ MorphTypes = int
|
|
|
250
252
|
MORPH_RECT: int
|
|
251
253
|
MORPH_CROSS: int
|
|
252
254
|
MORPH_ELLIPSE: int
|
|
255
|
+
MORPH_DIAMOND: int
|
|
253
256
|
MorphShapes = int
|
|
254
|
-
"""One of [MORPH_RECT, MORPH_CROSS, MORPH_ELLIPSE]"""
|
|
257
|
+
"""One of [MORPH_RECT, MORPH_CROSS, MORPH_ELLIPSE, MORPH_DIAMOND]"""
|
|
255
258
|
|
|
256
259
|
INTER_NEAREST: int
|
|
257
260
|
INTER_LINEAR: int
|
|
@@ -304,8 +307,9 @@ THRESH_TOZERO_INV: int
|
|
|
304
307
|
THRESH_MASK: int
|
|
305
308
|
THRESH_OTSU: int
|
|
306
309
|
THRESH_TRIANGLE: int
|
|
310
|
+
THRESH_DRYRUN: int
|
|
307
311
|
ThresholdTypes = int
|
|
308
|
-
"""One of [THRESH_BINARY, THRESH_BINARY_INV, THRESH_TRUNC, THRESH_TOZERO, THRESH_TOZERO_INV, THRESH_MASK, THRESH_OTSU, THRESH_TRIANGLE]"""
|
|
312
|
+
"""One of [THRESH_BINARY, THRESH_BINARY_INV, THRESH_TRUNC, THRESH_TOZERO, THRESH_TOZERO_INV, THRESH_MASK, THRESH_OTSU, THRESH_TRIANGLE, THRESH_DRYRUN]"""
|
|
309
313
|
|
|
310
314
|
ADAPTIVE_THRESH_MEAN_C: int
|
|
311
315
|
ADAPTIVE_THRESH_GAUSSIAN_C: int
|
|
@@ -1219,6 +1223,8 @@ IMWRITE_JPEG_SAMPLING_FACTOR: int
|
|
|
1219
1223
|
IMWRITE_PNG_COMPRESSION: int
|
|
1220
1224
|
IMWRITE_PNG_STRATEGY: int
|
|
1221
1225
|
IMWRITE_PNG_BILEVEL: int
|
|
1226
|
+
IMWRITE_PNG_FILTER: int
|
|
1227
|
+
IMWRITE_PNG_ZLIBBUFFER_SIZE: int
|
|
1222
1228
|
IMWRITE_PXM_BINARY: int
|
|
1223
1229
|
IMWRITE_EXR_TYPE: int
|
|
1224
1230
|
IMWRITE_EXR_COMPRESSION: int
|
|
@@ -1240,6 +1246,7 @@ IMWRITE_JPEGXL_QUALITY: int
|
|
|
1240
1246
|
IMWRITE_JPEGXL_EFFORT: int
|
|
1241
1247
|
IMWRITE_JPEGXL_DISTANCE: int
|
|
1242
1248
|
IMWRITE_JPEGXL_DECODING_SPEED: int
|
|
1249
|
+
IMWRITE_BMP_COMPRESSION: int
|
|
1243
1250
|
IMWRITE_GIF_LOOP: int
|
|
1244
1251
|
IMWRITE_GIF_SPEED: int
|
|
1245
1252
|
IMWRITE_GIF_QUALITY: int
|
|
@@ -1247,7 +1254,7 @@ IMWRITE_GIF_DITHER: int
|
|
|
1247
1254
|
IMWRITE_GIF_TRANSPARENCY: int
|
|
1248
1255
|
IMWRITE_GIF_COLORTABLE: int
|
|
1249
1256
|
ImwriteFlags = int
|
|
1250
|
-
"""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]"""
|
|
1257
|
+
"""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]"""
|
|
1251
1258
|
|
|
1252
1259
|
IMWRITE_JPEG_SAMPLING_FACTOR_411: int
|
|
1253
1260
|
IMWRITE_JPEG_SAMPLING_FACTOR_420: int
|
|
@@ -1299,6 +1306,12 @@ IMWRITE_TIFF_PREDICTOR_FLOATINGPOINT: int
|
|
|
1299
1306
|
ImwriteTiffPredictorFlags = int
|
|
1300
1307
|
"""One of [IMWRITE_TIFF_PREDICTOR_NONE, IMWRITE_TIFF_PREDICTOR_HORIZONTAL, IMWRITE_TIFF_PREDICTOR_FLOATINGPOINT]"""
|
|
1301
1308
|
|
|
1309
|
+
IMWRITE_TIFF_RESOLUTION_UNIT_NONE: int
|
|
1310
|
+
IMWRITE_TIFF_RESOLUTION_UNIT_INCH: int
|
|
1311
|
+
IMWRITE_TIFF_RESOLUTION_UNIT_CENTIMETER: int
|
|
1312
|
+
ImwriteTiffResolutionUnitFlags = int
|
|
1313
|
+
"""One of [IMWRITE_TIFF_RESOLUTION_UNIT_NONE, IMWRITE_TIFF_RESOLUTION_UNIT_INCH, IMWRITE_TIFF_RESOLUTION_UNIT_CENTIMETER]"""
|
|
1314
|
+
|
|
1302
1315
|
IMWRITE_EXR_TYPE_HALF: int
|
|
1303
1316
|
IMWRITE_EXR_TYPE_FLOAT: int
|
|
1304
1317
|
ImwriteEXRTypeFlags = int
|
|
@@ -1325,6 +1338,16 @@ IMWRITE_PNG_STRATEGY_FIXED: int
|
|
|
1325
1338
|
ImwritePNGFlags = int
|
|
1326
1339
|
"""One of [IMWRITE_PNG_STRATEGY_DEFAULT, IMWRITE_PNG_STRATEGY_FILTERED, IMWRITE_PNG_STRATEGY_HUFFMAN_ONLY, IMWRITE_PNG_STRATEGY_RLE, IMWRITE_PNG_STRATEGY_FIXED]"""
|
|
1327
1340
|
|
|
1341
|
+
IMWRITE_PNG_FILTER_NONE: int
|
|
1342
|
+
IMWRITE_PNG_FILTER_SUB: int
|
|
1343
|
+
IMWRITE_PNG_FILTER_UP: int
|
|
1344
|
+
IMWRITE_PNG_FILTER_AVG: int
|
|
1345
|
+
IMWRITE_PNG_FILTER_PAETH: int
|
|
1346
|
+
IMWRITE_PNG_FAST_FILTERS: int
|
|
1347
|
+
IMWRITE_PNG_ALL_FILTERS: int
|
|
1348
|
+
ImwritePNGFilterFlags = int
|
|
1349
|
+
"""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]"""
|
|
1350
|
+
|
|
1328
1351
|
IMWRITE_PAM_FORMAT_NULL: int
|
|
1329
1352
|
IMWRITE_PAM_FORMAT_BLACKANDWHITE: int
|
|
1330
1353
|
IMWRITE_PAM_FORMAT_GRAYSCALE: int
|
|
@@ -1339,6 +1362,11 @@ IMWRITE_HDR_COMPRESSION_RLE: int
|
|
|
1339
1362
|
ImwriteHDRCompressionFlags = int
|
|
1340
1363
|
"""One of [IMWRITE_HDR_COMPRESSION_NONE, IMWRITE_HDR_COMPRESSION_RLE]"""
|
|
1341
1364
|
|
|
1365
|
+
IMWRITE_BMP_COMPRESSION_RGB: int
|
|
1366
|
+
IMWRITE_BMP_COMPRESSION_BITFIELDS: int
|
|
1367
|
+
ImwriteBMPCompressionFlags = int
|
|
1368
|
+
"""One of [IMWRITE_BMP_COMPRESSION_RGB, IMWRITE_BMP_COMPRESSION_BITFIELDS]"""
|
|
1369
|
+
|
|
1342
1370
|
IMWRITE_GIF_FAST_NO_DITHER: int
|
|
1343
1371
|
IMWRITE_GIF_FAST_FLOYD_DITHER: int
|
|
1344
1372
|
IMWRITE_GIF_COLORTABLE_SIZE_8: int
|
|
@@ -1350,6 +1378,15 @@ IMWRITE_GIF_COLORTABLE_SIZE_256: int
|
|
|
1350
1378
|
ImwriteGIFCompressionFlags = int
|
|
1351
1379
|
"""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]"""
|
|
1352
1380
|
|
|
1381
|
+
IMAGE_METADATA_UNKNOWN: int
|
|
1382
|
+
IMAGE_METADATA_EXIF: int
|
|
1383
|
+
IMAGE_METADATA_XMP: int
|
|
1384
|
+
IMAGE_METADATA_ICCP: int
|
|
1385
|
+
IMAGE_METADATA_CICP: int
|
|
1386
|
+
IMAGE_METADATA_MAX: int
|
|
1387
|
+
ImageMetadataType = int
|
|
1388
|
+
"""One of [IMAGE_METADATA_UNKNOWN, IMAGE_METADATA_EXIF, IMAGE_METADATA_XMP, IMAGE_METADATA_ICCP, IMAGE_METADATA_CICP, IMAGE_METADATA_MAX]"""
|
|
1389
|
+
|
|
1353
1390
|
CAP_ANY: int
|
|
1354
1391
|
CAP_VFW: int
|
|
1355
1392
|
CAP_V4L: int
|
|
@@ -1485,8 +1522,9 @@ VIDEO_ACCELERATION_ANY: int
|
|
|
1485
1522
|
VIDEO_ACCELERATION_D3D11: int
|
|
1486
1523
|
VIDEO_ACCELERATION_VAAPI: int
|
|
1487
1524
|
VIDEO_ACCELERATION_MFX: int
|
|
1525
|
+
VIDEO_ACCELERATION_DRM: int
|
|
1488
1526
|
VideoAccelerationType = int
|
|
1489
|
-
"""One of [VIDEO_ACCELERATION_NONE, VIDEO_ACCELERATION_ANY, VIDEO_ACCELERATION_D3D11, VIDEO_ACCELERATION_VAAPI, VIDEO_ACCELERATION_MFX]"""
|
|
1527
|
+
"""One of [VIDEO_ACCELERATION_NONE, VIDEO_ACCELERATION_ANY, VIDEO_ACCELERATION_D3D11, VIDEO_ACCELERATION_VAAPI, VIDEO_ACCELERATION_MFX, VIDEO_ACCELERATION_DRM]"""
|
|
1490
1528
|
|
|
1491
1529
|
CAP_OBSENSOR_DEPTH_MAP: int
|
|
1492
1530
|
CAP_OBSENSOR_BGR_IMAGE: int
|
|
@@ -1505,8 +1543,21 @@ CAP_PROP_OBSENSOR_INTRINSIC_FX: int
|
|
|
1505
1543
|
CAP_PROP_OBSENSOR_INTRINSIC_FY: int
|
|
1506
1544
|
CAP_PROP_OBSENSOR_INTRINSIC_CX: int
|
|
1507
1545
|
CAP_PROP_OBSENSOR_INTRINSIC_CY: int
|
|
1546
|
+
CAP_PROP_OBSENSOR_RGB_POS_MSEC: int
|
|
1547
|
+
CAP_PROP_OBSENSOR_DEPTH_POS_MSEC: int
|
|
1548
|
+
CAP_PROP_OBSENSOR_DEPTH_WIDTH: int
|
|
1549
|
+
CAP_PROP_OBSENSOR_DEPTH_HEIGHT: int
|
|
1550
|
+
CAP_PROP_OBSENSOR_DEPTH_FPS: int
|
|
1551
|
+
CAP_PROP_OBSENSOR_COLOR_DISTORTION_K1: int
|
|
1552
|
+
CAP_PROP_OBSENSOR_COLOR_DISTORTION_K2: int
|
|
1553
|
+
CAP_PROP_OBSENSOR_COLOR_DISTORTION_K3: int
|
|
1554
|
+
CAP_PROP_OBSENSOR_COLOR_DISTORTION_K4: int
|
|
1555
|
+
CAP_PROP_OBSENSOR_COLOR_DISTORTION_K5: int
|
|
1556
|
+
CAP_PROP_OBSENSOR_COLOR_DISTORTION_K6: int
|
|
1557
|
+
CAP_PROP_OBSENSOR_COLOR_DISTORTION_P1: int
|
|
1558
|
+
CAP_PROP_OBSENSOR_COLOR_DISTORTION_P2: int
|
|
1508
1559
|
VideoCaptureOBSensorProperties = int
|
|
1509
|
-
"""One of [CAP_PROP_OBSENSOR_INTRINSIC_FX, CAP_PROP_OBSENSOR_INTRINSIC_FY, CAP_PROP_OBSENSOR_INTRINSIC_CX, CAP_PROP_OBSENSOR_INTRINSIC_CY]"""
|
|
1560
|
+
"""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]"""
|
|
1510
1561
|
|
|
1511
1562
|
SOLVEPNP_ITERATIVE: int
|
|
1512
1563
|
SOLVEPNP_EPNP: int
|
|
@@ -1903,10 +1954,12 @@ QRCODE_ENCODER_CORRECT_LEVEL_H: int
|
|
|
1903
1954
|
QRCodeEncoder_CorrectionLevel = int
|
|
1904
1955
|
"""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]"""
|
|
1905
1956
|
|
|
1957
|
+
QRCodeEncoder_ECI_SHIFT_JIS: int
|
|
1958
|
+
QRCODE_ENCODER_ECI_SHIFT_JIS: int
|
|
1906
1959
|
QRCodeEncoder_ECI_UTF8: int
|
|
1907
1960
|
QRCODE_ENCODER_ECI_UTF8: int
|
|
1908
1961
|
QRCodeEncoder_ECIEncodings = int
|
|
1909
|
-
"""One of [QRCodeEncoder_ECI_UTF8, QRCODE_ENCODER_ECI_UTF8]"""
|
|
1962
|
+
"""One of [QRCodeEncoder_ECI_SHIFT_JIS, QRCODE_ENCODER_ECI_SHIFT_JIS, QRCodeEncoder_ECI_UTF8, QRCODE_ENCODER_ECI_UTF8]"""
|
|
1910
1963
|
|
|
1911
1964
|
FaceRecognizerSF_FR_COSINE: int
|
|
1912
1965
|
FACE_RECOGNIZER_SF_FR_COSINE: int
|
|
@@ -2019,8 +2072,10 @@ _InputArray_STD_ARRAY: int
|
|
|
2019
2072
|
_INPUT_ARRAY_STD_ARRAY: int
|
|
2020
2073
|
_InputArray_STD_ARRAY_MAT: int
|
|
2021
2074
|
_INPUT_ARRAY_STD_ARRAY_MAT: int
|
|
2075
|
+
_InputArray_CUDA_GPU_MATND: int
|
|
2076
|
+
_INPUT_ARRAY_CUDA_GPU_MATND: int
|
|
2022
2077
|
_InputArray_KindFlag = int
|
|
2023
|
-
"""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]"""
|
|
2078
|
+
"""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]"""
|
|
2024
2079
|
|
|
2025
2080
|
_OutputArray_DEPTH_MASK_8U: int
|
|
2026
2081
|
_OUTPUT_ARRAY_DEPTH_MASK_8U: int
|
|
@@ -2235,7 +2290,7 @@ class Algorithm:
|
|
|
2235
2290
|
|
|
2236
2291
|
def empty(self) -> bool: ...
|
|
2237
2292
|
|
|
2238
|
-
def save(self, filename: str) -> None: ...
|
|
2293
|
+
def save(self, filename: str | os.PathLike[str]) -> None: ...
|
|
2239
2294
|
|
|
2240
2295
|
def getDefaultName(self) -> str: ...
|
|
2241
2296
|
|
|
@@ -2265,9 +2320,9 @@ class FileStorage:
|
|
|
2265
2320
|
@_typing.overload
|
|
2266
2321
|
def __init__(self) -> None: ...
|
|
2267
2322
|
@_typing.overload
|
|
2268
|
-
def __init__(self, filename: str, flags: int, encoding: str = ...) -> None: ...
|
|
2323
|
+
def __init__(self, filename: str | os.PathLike[str], flags: int, encoding: str = ...) -> None: ...
|
|
2269
2324
|
|
|
2270
|
-
def open(self, filename: str, flags: int, encoding: str = ...) -> bool: ...
|
|
2325
|
+
def open(self, filename: str | os.PathLike[str], flags: int, encoding: str = ...) -> bool: ...
|
|
2271
2326
|
|
|
2272
2327
|
def isOpened(self) -> bool: ...
|
|
2273
2328
|
|
|
@@ -2595,6 +2650,10 @@ class CLAHE(Algorithm):
|
|
|
2595
2650
|
|
|
2596
2651
|
def getTilesGridSize(self) -> cv2.typing.Size: ...
|
|
2597
2652
|
|
|
2653
|
+
def setBitShift(self, bitShift: int) -> None: ...
|
|
2654
|
+
|
|
2655
|
+
def getBitShift(self) -> int: ...
|
|
2656
|
+
|
|
2598
2657
|
def collectGarbage(self) -> None: ...
|
|
2599
2658
|
|
|
2600
2659
|
|
|
@@ -2604,9 +2663,13 @@ class Subdiv2D:
|
|
|
2604
2663
|
def __init__(self) -> None: ...
|
|
2605
2664
|
@_typing.overload
|
|
2606
2665
|
def __init__(self, rect: cv2.typing.Rect) -> None: ...
|
|
2666
|
+
@_typing.overload
|
|
2667
|
+
def __init__(self, rect2f: cv2.typing.Rect2f) -> None: ...
|
|
2607
2668
|
|
|
2608
2669
|
def initDelaunay(self, rect: cv2.typing.Rect) -> None: ...
|
|
2609
2670
|
|
|
2671
|
+
def initDelaunay2f(self, rect: cv2.typing.Rect2f) -> None: ...
|
|
2672
|
+
|
|
2610
2673
|
@_typing.overload
|
|
2611
2674
|
def insert(self, pt: cv2.typing.Point2f) -> int: ...
|
|
2612
2675
|
@_typing.overload
|
|
@@ -2845,7 +2908,7 @@ class MergeRobertson(MergeExposures):
|
|
|
2845
2908
|
def process(self, src: _typing.Sequence[UMat], times: UMat, dst: UMat | None = ...) -> UMat: ...
|
|
2846
2909
|
|
|
2847
2910
|
|
|
2848
|
-
class Feature2D:
|
|
2911
|
+
class Feature2D(Algorithm):
|
|
2849
2912
|
# Functions
|
|
2850
2913
|
@_typing.overload
|
|
2851
2914
|
def detect(self, image: cv2.typing.MatLike, mask: cv2.typing.MatLike | None = ...) -> _typing.Sequence[KeyPoint]: ...
|
|
@@ -2866,9 +2929,9 @@ class Feature2D:
|
|
|
2866
2929
|
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]]: ...
|
|
2867
2930
|
|
|
2868
2931
|
@_typing.overload
|
|
2869
|
-
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]: ...
|
|
2932
|
+
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]: ...
|
|
2870
2933
|
@_typing.overload
|
|
2871
|
-
def detectAndCompute(self, image: UMat, mask: UMat, descriptors: UMat | None = ..., useProvidedKeypoints: bool = ...) -> tuple[_typing.Sequence[KeyPoint], UMat]: ...
|
|
2934
|
+
def detectAndCompute(self, image: UMat, mask: UMat | None, descriptors: UMat | None = ..., useProvidedKeypoints: bool = ...) -> tuple[_typing.Sequence[KeyPoint], UMat]: ...
|
|
2872
2935
|
|
|
2873
2936
|
def descriptorSize(self) -> int: ...
|
|
2874
2937
|
|
|
@@ -2877,12 +2940,12 @@ class Feature2D:
|
|
|
2877
2940
|
def defaultNorm(self) -> int: ...
|
|
2878
2941
|
|
|
2879
2942
|
@_typing.overload
|
|
2880
|
-
def write(self, fileName: str) -> None: ...
|
|
2943
|
+
def write(self, fileName: str | os.PathLike[str]) -> None: ...
|
|
2881
2944
|
@_typing.overload
|
|
2882
2945
|
def write(self, fs: FileStorage, name: str) -> None: ...
|
|
2883
2946
|
|
|
2884
2947
|
@_typing.overload
|
|
2885
|
-
def read(self, fileName: str) -> None: ...
|
|
2948
|
+
def read(self, fileName: str | os.PathLike[str]) -> None: ...
|
|
2886
2949
|
@_typing.overload
|
|
2887
2950
|
def read(self, arg1: FileNode) -> None: ...
|
|
2888
2951
|
|
|
@@ -3106,7 +3169,7 @@ class GFTTDetector(Feature2D):
|
|
|
3106
3169
|
def create(cls, maxCorners: int = ..., qualityLevel: float = ..., minDistance: float = ..., blockSize: int = ..., useHarrisDetector: bool = ..., k: float = ...) -> GFTTDetector: ...
|
|
3107
3170
|
@classmethod
|
|
3108
3171
|
@_typing.overload
|
|
3109
|
-
def create(cls, maxCorners: int, qualityLevel: float, minDistance: float, blockSize: int,
|
|
3172
|
+
def create(cls, maxCorners: int, qualityLevel: float, minDistance: float, blockSize: int, gradientSize: int, useHarrisDetector: bool = ..., k: float = ...) -> GFTTDetector: ...
|
|
3110
3173
|
|
|
3111
3174
|
def setMaxFeatures(self, maxFeatures: int) -> None: ...
|
|
3112
3175
|
|
|
@@ -3298,12 +3361,12 @@ class DescriptorMatcher(Algorithm):
|
|
|
3298
3361
|
def radiusMatch(self, queryDescriptors: UMat, maxDistance: float, masks: _typing.Sequence[UMat] | None = ..., compactResult: bool = ...) -> _typing.Sequence[_typing.Sequence[DMatch]]: ...
|
|
3299
3362
|
|
|
3300
3363
|
@_typing.overload
|
|
3301
|
-
def write(self, fileName: str) -> None: ...
|
|
3364
|
+
def write(self, fileName: str | os.PathLike[str]) -> None: ...
|
|
3302
3365
|
@_typing.overload
|
|
3303
3366
|
def write(self, fs: FileStorage, name: str) -> None: ...
|
|
3304
3367
|
|
|
3305
3368
|
@_typing.overload
|
|
3306
|
-
def read(self, fileName: str) -> None: ...
|
|
3369
|
+
def read(self, fileName: str | os.PathLike[str]) -> None: ...
|
|
3307
3370
|
@_typing.overload
|
|
3308
3371
|
def read(self, arg1: FileNode) -> None: ...
|
|
3309
3372
|
|
|
@@ -3379,18 +3442,27 @@ class Animation:
|
|
|
3379
3442
|
bgcolor: cv2.typing.Scalar
|
|
3380
3443
|
durations: _typing.Sequence[int]
|
|
3381
3444
|
frames: _typing.Sequence[cv2.typing.MatLike]
|
|
3445
|
+
still_image: cv2.typing.MatLike
|
|
3446
|
+
|
|
3447
|
+
# Functions
|
|
3448
|
+
def __init__(self, loopCount: int = ..., bgColor: cv2.typing.Scalar = ...) -> None: ...
|
|
3449
|
+
|
|
3382
3450
|
|
|
3383
3451
|
class IStreamReader:
|
|
3384
|
-
|
|
3452
|
+
# Functions
|
|
3453
|
+
def read(self, buffer: str, size: int) -> int: ...
|
|
3454
|
+
|
|
3455
|
+
def seek(self, offset: int, origin: int) -> int: ...
|
|
3456
|
+
|
|
3385
3457
|
|
|
3386
3458
|
class VideoCapture:
|
|
3387
3459
|
# Functions
|
|
3388
3460
|
@_typing.overload
|
|
3389
3461
|
def __init__(self) -> None: ...
|
|
3390
3462
|
@_typing.overload
|
|
3391
|
-
def __init__(self, filename: str, apiPreference: int = ...) -> None: ...
|
|
3463
|
+
def __init__(self, filename: str | os.PathLike[str], apiPreference: int = ...) -> None: ...
|
|
3392
3464
|
@_typing.overload
|
|
3393
|
-
def __init__(self, filename: str, apiPreference: int, params: _typing.Sequence[int]) -> None: ...
|
|
3465
|
+
def __init__(self, filename: str | os.PathLike[str], apiPreference: int, params: _typing.Sequence[int]) -> None: ...
|
|
3394
3466
|
@_typing.overload
|
|
3395
3467
|
def __init__(self, index: int, apiPreference: int = ...) -> None: ...
|
|
3396
3468
|
@_typing.overload
|
|
@@ -3399,9 +3471,9 @@ class VideoCapture:
|
|
|
3399
3471
|
def __init__(self, source: IStreamReader, apiPreference: int, params: _typing.Sequence[int]) -> None: ...
|
|
3400
3472
|
|
|
3401
3473
|
@_typing.overload
|
|
3402
|
-
def open(self, filename: str, apiPreference: int = ...) -> bool: ...
|
|
3474
|
+
def open(self, filename: str | os.PathLike[str], apiPreference: int = ...) -> bool: ...
|
|
3403
3475
|
@_typing.overload
|
|
3404
|
-
def open(self, filename: str, apiPreference: int, params: _typing.Sequence[int]) -> bool: ...
|
|
3476
|
+
def open(self, filename: str | os.PathLike[str], apiPreference: int, params: _typing.Sequence[int]) -> bool: ...
|
|
3405
3477
|
@_typing.overload
|
|
3406
3478
|
def open(self, index: int, apiPreference: int = ...) -> bool: ...
|
|
3407
3479
|
@_typing.overload
|
|
@@ -3444,22 +3516,22 @@ class VideoWriter:
|
|
|
3444
3516
|
@_typing.overload
|
|
3445
3517
|
def __init__(self) -> None: ...
|
|
3446
3518
|
@_typing.overload
|
|
3447
|
-
def __init__(self, filename: str, fourcc: int, fps: float, frameSize: cv2.typing.Size, isColor: bool = ...) -> None: ...
|
|
3519
|
+
def __init__(self, filename: str | os.PathLike[str], fourcc: int, fps: float, frameSize: cv2.typing.Size, isColor: bool = ...) -> None: ...
|
|
3448
3520
|
@_typing.overload
|
|
3449
|
-
def __init__(self, filename: str, apiPreference: int, fourcc: int, fps: float, frameSize: cv2.typing.Size, isColor: bool = ...) -> None: ...
|
|
3521
|
+
def __init__(self, filename: str | os.PathLike[str], apiPreference: int, fourcc: int, fps: float, frameSize: cv2.typing.Size, isColor: bool = ...) -> None: ...
|
|
3450
3522
|
@_typing.overload
|
|
3451
|
-
def __init__(self, filename: str, fourcc: int, fps: float, frameSize: cv2.typing.Size, params: _typing.Sequence[int]) -> None: ...
|
|
3523
|
+
def __init__(self, filename: str | os.PathLike[str], fourcc: int, fps: float, frameSize: cv2.typing.Size, params: _typing.Sequence[int]) -> None: ...
|
|
3452
3524
|
@_typing.overload
|
|
3453
|
-
def __init__(self, filename: str, apiPreference: int, fourcc: int, fps: float, frameSize: cv2.typing.Size, params: _typing.Sequence[int]) -> None: ...
|
|
3525
|
+
def __init__(self, filename: str | os.PathLike[str], apiPreference: int, fourcc: int, fps: float, frameSize: cv2.typing.Size, params: _typing.Sequence[int]) -> None: ...
|
|
3454
3526
|
|
|
3455
3527
|
@_typing.overload
|
|
3456
|
-
def open(self, filename: str, fourcc: int, fps: float, frameSize: cv2.typing.Size, isColor: bool = ...) -> bool: ...
|
|
3528
|
+
def open(self, filename: str | os.PathLike[str], fourcc: int, fps: float, frameSize: cv2.typing.Size, isColor: bool = ...) -> bool: ...
|
|
3457
3529
|
@_typing.overload
|
|
3458
|
-
def open(self, filename: str, apiPreference: int, fourcc: int, fps: float, frameSize: cv2.typing.Size, isColor: bool = ...) -> bool: ...
|
|
3530
|
+
def open(self, filename: str | os.PathLike[str], apiPreference: int, fourcc: int, fps: float, frameSize: cv2.typing.Size, isColor: bool = ...) -> bool: ...
|
|
3459
3531
|
@_typing.overload
|
|
3460
|
-
def open(self, filename: str, fourcc: int, fps: float, frameSize: cv2.typing.Size, params: _typing.Sequence[int]) -> bool: ...
|
|
3532
|
+
def open(self, filename: str | os.PathLike[str], fourcc: int, fps: float, frameSize: cv2.typing.Size, params: _typing.Sequence[int]) -> bool: ...
|
|
3461
3533
|
@_typing.overload
|
|
3462
|
-
def open(self, filename: str, apiPreference: int, fourcc: int, fps: float, frameSize: cv2.typing.Size, params: _typing.Sequence[int]) -> bool: ...
|
|
3534
|
+
def open(self, filename: str | os.PathLike[str], apiPreference: int, fourcc: int, fps: float, frameSize: cv2.typing.Size, params: _typing.Sequence[int]) -> bool: ...
|
|
3463
3535
|
|
|
3464
3536
|
def isOpened(self) -> bool: ...
|
|
3465
3537
|
|
|
@@ -3513,6 +3585,7 @@ class CirclesGridFinderParameters:
|
|
|
3513
3585
|
edgePenalty: float
|
|
3514
3586
|
convexHullFactor: float
|
|
3515
3587
|
minRNGEdgeSwitchDist: float
|
|
3588
|
+
gridType: CirclesGridFinderParameters_GridType
|
|
3516
3589
|
squareSize: float
|
|
3517
3590
|
maxRectifiedDistance: float
|
|
3518
3591
|
|
|
@@ -3624,11 +3697,11 @@ class CascadeClassifier:
|
|
|
3624
3697
|
@_typing.overload
|
|
3625
3698
|
def __init__(self) -> None: ...
|
|
3626
3699
|
@_typing.overload
|
|
3627
|
-
def __init__(self, filename: str) -> None: ...
|
|
3700
|
+
def __init__(self, filename: str | os.PathLike[str]) -> None: ...
|
|
3628
3701
|
|
|
3629
3702
|
def empty(self) -> bool: ...
|
|
3630
3703
|
|
|
3631
|
-
def load(self, filename: str) -> bool: ...
|
|
3704
|
+
def load(self, filename: str | os.PathLike[str]) -> bool: ...
|
|
3632
3705
|
|
|
3633
3706
|
def read(self, node: FileNode) -> bool: ...
|
|
3634
3707
|
|
|
@@ -3691,7 +3764,7 @@ class HOGDescriptor:
|
|
|
3691
3764
|
@_typing.overload
|
|
3692
3765
|
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: ...
|
|
3693
3766
|
@_typing.overload
|
|
3694
|
-
def __init__(self, filename: str) -> None: ...
|
|
3767
|
+
def __init__(self, filename: str | os.PathLike[str]) -> None: ...
|
|
3695
3768
|
|
|
3696
3769
|
def getDescriptorSize(self) -> int: ...
|
|
3697
3770
|
|
|
@@ -3704,9 +3777,9 @@ class HOGDescriptor:
|
|
|
3704
3777
|
@_typing.overload
|
|
3705
3778
|
def setSVMDetector(self, svmdetector: UMat) -> None: ...
|
|
3706
3779
|
|
|
3707
|
-
def load(self, filename: str, objname: str = ...) -> bool: ...
|
|
3780
|
+
def load(self, filename: str | os.PathLike[str], objname: str = ...) -> bool: ...
|
|
3708
3781
|
|
|
3709
|
-
def save(self, filename: str, objname: str = ...) -> None: ...
|
|
3782
|
+
def save(self, filename: str | os.PathLike[str], objname: str = ...) -> None: ...
|
|
3710
3783
|
|
|
3711
3784
|
@_typing.overload
|
|
3712
3785
|
def compute(self, img: cv2.typing.MatLike, winStride: cv2.typing.Size = ..., padding: cv2.typing.Size = ..., locations: _typing.Sequence[cv2.typing.Point] = ...) -> _typing.Sequence[float]: ...
|
|
@@ -3783,6 +3856,8 @@ class QRCodeDetector(GraphicalCodeDetector):
|
|
|
3783
3856
|
@_typing.overload
|
|
3784
3857
|
def detectAndDecodeCurved(self, img: UMat, points: UMat | None = ..., straight_qrcode: UMat | None = ...) -> tuple[str, UMat, UMat]: ...
|
|
3785
3858
|
|
|
3859
|
+
def getEncoding(self, codeIdx: int = ...) -> QRCodeEncoder_ECIEncodings: ...
|
|
3860
|
+
|
|
3786
3861
|
|
|
3787
3862
|
class GraphicalCodeDetector:
|
|
3788
3863
|
# Functions
|
|
@@ -3816,6 +3891,26 @@ class GraphicalCodeDetector:
|
|
|
3816
3891
|
@_typing.overload
|
|
3817
3892
|
def detectAndDecodeMulti(self, img: UMat, points: UMat | None = ..., straight_code: _typing.Sequence[UMat] | None = ...) -> tuple[bool, _typing.Sequence[str], UMat, _typing.Sequence[UMat]]: ...
|
|
3818
3893
|
|
|
3894
|
+
@_typing.overload
|
|
3895
|
+
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]: ...
|
|
3896
|
+
@_typing.overload
|
|
3897
|
+
def detectAndDecodeBytes(self, img: UMat, points: UMat | None = ..., straight_code: UMat | None = ...) -> tuple[bytes, UMat, UMat]: ...
|
|
3898
|
+
|
|
3899
|
+
@_typing.overload
|
|
3900
|
+
def decodeBytes(self, img: cv2.typing.MatLike, points: cv2.typing.MatLike, straight_code: cv2.typing.MatLike | None = ...) -> tuple[bytes, cv2.typing.MatLike]: ...
|
|
3901
|
+
@_typing.overload
|
|
3902
|
+
def decodeBytes(self, img: UMat, points: UMat, straight_code: UMat | None = ...) -> tuple[bytes, UMat]: ...
|
|
3903
|
+
|
|
3904
|
+
@_typing.overload
|
|
3905
|
+
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]]: ...
|
|
3906
|
+
@_typing.overload
|
|
3907
|
+
def decodeBytesMulti(self, img: UMat, points: UMat, straight_code: _typing.Sequence[UMat] | None = ...) -> tuple[bool, _typing.Sequence[bytes], _typing.Sequence[UMat]]: ...
|
|
3908
|
+
|
|
3909
|
+
@_typing.overload
|
|
3910
|
+
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]]: ...
|
|
3911
|
+
@_typing.overload
|
|
3912
|
+
def detectAndDecodeBytesMulti(self, img: UMat, points: UMat | None = ..., straight_code: _typing.Sequence[UMat] | None = ...) -> tuple[bool, _typing.Sequence[bytes], UMat, _typing.Sequence[UMat]]: ...
|
|
3913
|
+
|
|
3819
3914
|
|
|
3820
3915
|
class QRCodeDetectorAruco(GraphicalCodeDetector):
|
|
3821
3916
|
# Classes
|
|
@@ -3873,7 +3968,7 @@ class FaceDetectorYN:
|
|
|
3873
3968
|
|
|
3874
3969
|
@classmethod
|
|
3875
3970
|
@_typing.overload
|
|
3876
|
-
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: ...
|
|
3971
|
+
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: ...
|
|
3877
3972
|
@classmethod
|
|
3878
3973
|
@_typing.overload
|
|
3879
3974
|
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: ...
|
|
@@ -3898,7 +3993,7 @@ class FaceRecognizerSF:
|
|
|
3898
3993
|
|
|
3899
3994
|
@classmethod
|
|
3900
3995
|
@_typing.overload
|
|
3901
|
-
def create(cls, model: str, config: str, backend_id: int = ..., target_id: int = ...) -> FaceRecognizerSF: ...
|
|
3996
|
+
def create(cls, model: str | os.PathLike[str], config: str | os.PathLike[str], backend_id: int = ..., target_id: int = ...) -> FaceRecognizerSF: ...
|
|
3902
3997
|
@classmethod
|
|
3903
3998
|
@_typing.overload
|
|
3904
3999
|
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: ...
|
|
@@ -4058,6 +4153,10 @@ class BackgroundSubtractor(Algorithm):
|
|
|
4058
4153
|
def apply(self, image: cv2.typing.MatLike, fgmask: cv2.typing.MatLike | None = ..., learningRate: float = ...) -> cv2.typing.MatLike: ...
|
|
4059
4154
|
@_typing.overload
|
|
4060
4155
|
def apply(self, image: UMat, fgmask: UMat | None = ..., learningRate: float = ...) -> UMat: ...
|
|
4156
|
+
@_typing.overload
|
|
4157
|
+
def apply(self, image: cv2.typing.MatLike, knownForegroundMask: cv2.typing.MatLike, fgmask: cv2.typing.MatLike | None = ..., learningRate: float = ...) -> cv2.typing.MatLike: ...
|
|
4158
|
+
@_typing.overload
|
|
4159
|
+
def apply(self, image: UMat, knownForegroundMask: UMat, fgmask: UMat | None = ..., learningRate: float = ...) -> UMat: ...
|
|
4061
4160
|
|
|
4062
4161
|
@_typing.overload
|
|
4063
4162
|
def getBackgroundImage(self, backgroundImage: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
|
|
@@ -4119,6 +4218,10 @@ class BackgroundSubtractorMOG2(BackgroundSubtractor):
|
|
|
4119
4218
|
def apply(self, image: cv2.typing.MatLike, fgmask: cv2.typing.MatLike | None = ..., learningRate: float = ...) -> cv2.typing.MatLike: ...
|
|
4120
4219
|
@_typing.overload
|
|
4121
4220
|
def apply(self, image: UMat, fgmask: UMat | None = ..., learningRate: float = ...) -> UMat: ...
|
|
4221
|
+
@_typing.overload
|
|
4222
|
+
def apply(self, image: cv2.typing.MatLike, knownForegroundMask: cv2.typing.MatLike, fgmask: cv2.typing.MatLike | None = ..., learningRate: float = ...) -> cv2.typing.MatLike: ...
|
|
4223
|
+
@_typing.overload
|
|
4224
|
+
def apply(self, image: UMat, knownForegroundMask: UMat, fgmask: UMat | None = ..., learningRate: float = ...) -> UMat: ...
|
|
4122
4225
|
|
|
4123
4226
|
|
|
4124
4227
|
class BackgroundSubtractorKNN(BackgroundSubtractor):
|
|
@@ -4276,6 +4379,10 @@ class DISOpticalFlow(DenseOpticalFlow):
|
|
|
4276
4379
|
|
|
4277
4380
|
def setFinestScale(self, val: int) -> None: ...
|
|
4278
4381
|
|
|
4382
|
+
def setCoarsestScale(self, val: int) -> None: ...
|
|
4383
|
+
|
|
4384
|
+
def getCoarsestScale(self) -> int: ...
|
|
4385
|
+
|
|
4279
4386
|
def getPatchSize(self) -> int: ...
|
|
4280
4387
|
|
|
4281
4388
|
def setPatchSize(self, val: int) -> None: ...
|
|
@@ -4393,7 +4500,11 @@ class TrackerGOTURN(Tracker):
|
|
|
4393
4500
|
|
|
4394
4501
|
# Functions
|
|
4395
4502
|
@classmethod
|
|
4503
|
+
@_typing.overload
|
|
4396
4504
|
def create(cls, parameters: TrackerGOTURN.Params = ...) -> TrackerGOTURN: ...
|
|
4505
|
+
@classmethod
|
|
4506
|
+
@_typing.overload
|
|
4507
|
+
def create(cls, model: cv2.dnn.Net) -> TrackerGOTURN: ...
|
|
4397
4508
|
|
|
4398
4509
|
|
|
4399
4510
|
class TrackerDaSiamRPN(Tracker):
|
|
@@ -4412,7 +4523,11 @@ class TrackerDaSiamRPN(Tracker):
|
|
|
4412
4523
|
|
|
4413
4524
|
# Functions
|
|
4414
4525
|
@classmethod
|
|
4526
|
+
@_typing.overload
|
|
4415
4527
|
def create(cls, parameters: TrackerDaSiamRPN.Params = ...) -> TrackerDaSiamRPN: ...
|
|
4528
|
+
@classmethod
|
|
4529
|
+
@_typing.overload
|
|
4530
|
+
def create(cls, siam_rpn: cv2.dnn.Net, kernel_cls1: cv2.dnn.Net, kernel_r1: cv2.dnn.Net) -> TrackerDaSiamRPN: ...
|
|
4416
4531
|
|
|
4417
4532
|
def getTrackingScore(self) -> float: ...
|
|
4418
4533
|
|
|
@@ -4432,7 +4547,11 @@ class TrackerNano(Tracker):
|
|
|
4432
4547
|
|
|
4433
4548
|
# Functions
|
|
4434
4549
|
@classmethod
|
|
4550
|
+
@_typing.overload
|
|
4435
4551
|
def create(cls, parameters: TrackerNano.Params = ...) -> TrackerNano: ...
|
|
4552
|
+
@classmethod
|
|
4553
|
+
@_typing.overload
|
|
4554
|
+
def create(cls, backbone: cv2.dnn.Net, neckhead: cv2.dnn.Net) -> TrackerNano: ...
|
|
4436
4555
|
|
|
4437
4556
|
def getTrackingScore(self) -> float: ...
|
|
4438
4557
|
|
|
@@ -4454,7 +4573,11 @@ class TrackerVit(Tracker):
|
|
|
4454
4573
|
|
|
4455
4574
|
# Functions
|
|
4456
4575
|
@classmethod
|
|
4576
|
+
@_typing.overload
|
|
4457
4577
|
def create(cls, parameters: TrackerVit.Params = ...) -> TrackerVit: ...
|
|
4578
|
+
@classmethod
|
|
4579
|
+
@_typing.overload
|
|
4580
|
+
def create(cls, model: cv2.dnn.Net, meanvalue: cv2.typing.Scalar = ..., stdvalue: cv2.typing.Scalar = ..., tracking_score_threshold: float = ...) -> TrackerVit: ...
|
|
4458
4581
|
|
|
4459
4582
|
def getTrackingScore(self) -> float: ...
|
|
4460
4583
|
|
|
@@ -4702,10 +4825,6 @@ class PyRotationWarper:
|
|
|
4702
4825
|
@_typing.overload
|
|
4703
4826
|
def warpPoint(self, pt: cv2.typing.Point2f, K: UMat, R: UMat) -> cv2.typing.Point2f: ...
|
|
4704
4827
|
|
|
4705
|
-
@_typing.overload
|
|
4706
|
-
def warpPointBackward(self, pt: cv2.typing.Point2f, K: cv2.typing.MatLike, R: cv2.typing.MatLike) -> cv2.typing.Point2f: ...
|
|
4707
|
-
@_typing.overload
|
|
4708
|
-
def warpPointBackward(self, pt: cv2.typing.Point2f, K: UMat, R: UMat) -> cv2.typing.Point2f: ...
|
|
4709
4828
|
@_typing.overload
|
|
4710
4829
|
def warpPointBackward(self, pt: cv2.typing.Point2f, K: cv2.typing.MatLike, R: cv2.typing.MatLike) -> cv2.typing.Point2f: ...
|
|
4711
4830
|
@_typing.overload
|
|
@@ -4852,6 +4971,11 @@ def HoughCircles(image: cv2.typing.MatLike, method: int, dp: float, minDist: flo
|
|
|
4852
4971
|
@_typing.overload
|
|
4853
4972
|
def HoughCircles(image: UMat, method: int, dp: float, minDist: float, circles: UMat | None = ..., param1: float = ..., param2: float = ..., minRadius: int = ..., maxRadius: int = ...) -> UMat: ...
|
|
4854
4973
|
|
|
4974
|
+
@_typing.overload
|
|
4975
|
+
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: ...
|
|
4976
|
+
@_typing.overload
|
|
4977
|
+
def HoughCirclesWithAccumulator(image: UMat, method: int, dp: float, minDist: float, circles: UMat | None = ..., param1: float = ..., param2: float = ..., minRadius: int = ..., maxRadius: int = ...) -> UMat: ...
|
|
4978
|
+
|
|
4855
4979
|
@_typing.overload
|
|
4856
4980
|
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: ...
|
|
4857
4981
|
@_typing.overload
|
|
@@ -4868,9 +4992,9 @@ def HoughLinesPointSet(point: cv2.typing.MatLike, lines_max: int, threshold: int
|
|
|
4868
4992
|
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: ...
|
|
4869
4993
|
|
|
4870
4994
|
@_typing.overload
|
|
4871
|
-
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: ...
|
|
4995
|
+
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: ...
|
|
4872
4996
|
@_typing.overload
|
|
4873
|
-
def HoughLinesWithAccumulator(image: UMat, rho: float, theta: float, threshold: int, lines: UMat | None = ..., srn: float = ..., stn: float = ..., min_theta: float = ..., max_theta: float = ...) -> UMat: ...
|
|
4997
|
+
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: ...
|
|
4874
4998
|
|
|
4875
4999
|
@_typing.overload
|
|
4876
5000
|
def HuMoments(m: cv2.typing.Moments, hu: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
|
|
@@ -5474,9 +5598,9 @@ def drawContours(image: cv2.typing.MatLike, contours: _typing.Sequence[cv2.typin
|
|
|
5474
5598
|
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: ...
|
|
5475
5599
|
|
|
5476
5600
|
@_typing.overload
|
|
5477
|
-
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: ...
|
|
5601
|
+
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: ...
|
|
5478
5602
|
@_typing.overload
|
|
5479
|
-
def drawFrameAxes(image: UMat, cameraMatrix: UMat, distCoeffs: UMat, rvec: UMat, tvec: UMat, length: float, thickness: int = ...) -> UMat: ...
|
|
5603
|
+
def drawFrameAxes(image: UMat, cameraMatrix: UMat, distCoeffs: UMat | None, rvec: UMat, tvec: UMat, length: float, thickness: int = ...) -> UMat: ...
|
|
5480
5604
|
|
|
5481
5605
|
@_typing.overload
|
|
5482
5606
|
def drawKeypoints(image: cv2.typing.MatLike, keypoints: _typing.Sequence[KeyPoint], outImage: cv2.typing.MatLike, color: cv2.typing.Scalar = ..., flags: DrawMatchesFlags = ...) -> cv2.typing.MatLike: ...
|
|
@@ -5572,6 +5696,11 @@ def estimateChessboardSharpness(image: cv2.typing.MatLike, patternSize: cv2.typi
|
|
|
5572
5696
|
@_typing.overload
|
|
5573
5697
|
def estimateChessboardSharpness(image: UMat, patternSize: cv2.typing.Size, corners: UMat, rise_distance: float = ..., vertical: bool = ..., sharpness: UMat | None = ...) -> tuple[cv2.typing.Scalar, UMat]: ...
|
|
5574
5698
|
|
|
5699
|
+
@_typing.overload
|
|
5700
|
+
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]: ...
|
|
5701
|
+
@_typing.overload
|
|
5702
|
+
def estimateTranslation2D(from_: UMat, to: UMat, inliers: UMat | None = ..., method: int = ..., ransacReprojThreshold: float = ..., maxIters: int = ..., confidence: float = ..., refineIters: int = ...) -> tuple[cv2.typing.Vec2d, UMat]: ...
|
|
5703
|
+
|
|
5575
5704
|
@_typing.overload
|
|
5576
5705
|
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]: ...
|
|
5577
5706
|
@_typing.overload
|
|
@@ -5694,13 +5823,13 @@ def findEssentialMat(points1: cv2.typing.MatLike, points2: cv2.typing.MatLike, f
|
|
|
5694
5823
|
@_typing.overload
|
|
5695
5824
|
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]: ...
|
|
5696
5825
|
@_typing.overload
|
|
5697
|
-
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]: ...
|
|
5826
|
+
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]: ...
|
|
5698
5827
|
@_typing.overload
|
|
5699
|
-
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]: ...
|
|
5828
|
+
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]: ...
|
|
5700
5829
|
@_typing.overload
|
|
5701
|
-
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]: ...
|
|
5830
|
+
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]: ...
|
|
5702
5831
|
@_typing.overload
|
|
5703
|
-
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]: ...
|
|
5832
|
+
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]: ...
|
|
5704
5833
|
|
|
5705
5834
|
@_typing.overload
|
|
5706
5835
|
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]: ...
|
|
@@ -5738,6 +5867,11 @@ def findTransformECC(templateImage: cv2.typing.MatLike, inputImage: cv2.typing.M
|
|
|
5738
5867
|
@_typing.overload
|
|
5739
5868
|
def findTransformECC(templateImage: UMat, inputImage: UMat, warpMatrix: UMat, motionType: int = ..., criteria: cv2.typing.TermCriteria = ..., inputMask: UMat | None = ...) -> tuple[float, UMat]: ...
|
|
5740
5869
|
|
|
5870
|
+
@_typing.overload
|
|
5871
|
+
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]: ...
|
|
5872
|
+
@_typing.overload
|
|
5873
|
+
def findTransformECCWithMask(templateImage: UMat, inputImage: UMat, templateMask: UMat, inputMask: UMat, warpMatrix: UMat, motionType: int = ..., criteria: cv2.typing.TermCriteria = ..., gaussFiltSize: int = ...) -> tuple[float, UMat]: ...
|
|
5874
|
+
|
|
5741
5875
|
@_typing.overload
|
|
5742
5876
|
def fitEllipse(points: cv2.typing.MatLike) -> cv2.typing.RotatedRect: ...
|
|
5743
5877
|
@_typing.overload
|
|
@@ -5789,6 +5923,11 @@ def getCPUFeaturesLine() -> str: ...
|
|
|
5789
5923
|
|
|
5790
5924
|
def getCPUTickCount() -> int: ...
|
|
5791
5925
|
|
|
5926
|
+
@_typing.overload
|
|
5927
|
+
def getClosestEllipsePoints(ellipse_params: cv2.typing.RotatedRect, points: cv2.typing.MatLike, closest_pts: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
|
|
5928
|
+
@_typing.overload
|
|
5929
|
+
def getClosestEllipsePoints(ellipse_params: cv2.typing.RotatedRect, points: UMat, closest_pts: UMat | None = ...) -> UMat: ...
|
|
5930
|
+
|
|
5792
5931
|
def getDefaultAlgorithmHint() -> AlgorithmHint: ...
|
|
5793
5932
|
|
|
5794
5933
|
@_typing.overload
|
|
@@ -5809,8 +5948,6 @@ def getGaussianKernel(ksize: int, sigma: float, ktype: int = ...) -> cv2.typing.
|
|
|
5809
5948
|
|
|
5810
5949
|
def getHardwareFeatureName(feature: int) -> str: ...
|
|
5811
5950
|
|
|
5812
|
-
def getLogLevel() -> int: ...
|
|
5813
|
-
|
|
5814
5951
|
def getNumThreads() -> int: ...
|
|
5815
5952
|
|
|
5816
5953
|
def getNumberOfCPUs() -> int: ...
|
|
@@ -5818,9 +5955,9 @@ def getNumberOfCPUs() -> int: ...
|
|
|
5818
5955
|
def getOptimalDFTSize(vecsize: int) -> int: ...
|
|
5819
5956
|
|
|
5820
5957
|
@_typing.overload
|
|
5821
|
-
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]: ...
|
|
5958
|
+
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]: ...
|
|
5822
5959
|
@_typing.overload
|
|
5823
|
-
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]: ...
|
|
5960
|
+
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]: ...
|
|
5824
5961
|
|
|
5825
5962
|
@_typing.overload
|
|
5826
5963
|
def getPerspectiveTransform(src: cv2.typing.MatLike, dst: cv2.typing.MatLike, solveMethod: int = ...) -> cv2.typing.MatLike: ...
|
|
@@ -5886,9 +6023,9 @@ def hasNonZero(src: cv2.typing.MatLike) -> bool: ...
|
|
|
5886
6023
|
@_typing.overload
|
|
5887
6024
|
def hasNonZero(src: UMat) -> bool: ...
|
|
5888
6025
|
|
|
5889
|
-
def haveImageReader(filename: str) -> bool: ...
|
|
6026
|
+
def haveImageReader(filename: str | os.PathLike[str]) -> bool: ...
|
|
5890
6027
|
|
|
5891
|
-
def haveImageWriter(filename: str) -> bool: ...
|
|
6028
|
+
def haveImageWriter(filename: str | os.PathLike[str]) -> bool: ...
|
|
5892
6029
|
|
|
5893
6030
|
def haveOpenVX() -> bool: ...
|
|
5894
6031
|
|
|
@@ -5912,12 +6049,22 @@ def illuminationChange(src: cv2.typing.MatLike, mask: cv2.typing.MatLike, dst: c
|
|
|
5912
6049
|
@_typing.overload
|
|
5913
6050
|
def illuminationChange(src: UMat, mask: UMat, dst: UMat | None = ..., alpha: float = ..., beta: float = ...) -> UMat: ...
|
|
5914
6051
|
|
|
5915
|
-
def imcount(filename: str, flags: int = ...) -> int: ...
|
|
6052
|
+
def imcount(filename: str | os.PathLike[str], flags: int = ...) -> int: ...
|
|
6053
|
+
|
|
6054
|
+
@_typing.overload
|
|
6055
|
+
def imdecode(buf: cv2.typing.MatLike, flags: int) -> cv2.typing.MatLike | None: ...
|
|
6056
|
+
@_typing.overload
|
|
6057
|
+
def imdecode(buf: UMat, flags: int) -> cv2.typing.MatLike | None: ...
|
|
6058
|
+
|
|
6059
|
+
@_typing.overload
|
|
6060
|
+
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]]: ...
|
|
6061
|
+
@_typing.overload
|
|
6062
|
+
def imdecodeWithMetadata(buf: UMat, metadata: _typing.Sequence[UMat] | None = ..., flags: int = ...) -> tuple[cv2.typing.MatLike, _typing.Sequence[int], _typing.Sequence[UMat]]: ...
|
|
5916
6063
|
|
|
5917
6064
|
@_typing.overload
|
|
5918
|
-
def
|
|
6065
|
+
def imdecodeanimation(buf: cv2.typing.MatLike, start: int = ..., count: int = ...) -> tuple[bool, Animation]: ...
|
|
5919
6066
|
@_typing.overload
|
|
5920
|
-
def
|
|
6067
|
+
def imdecodeanimation(buf: UMat, start: int = ..., count: int = ...) -> tuple[bool, Animation]: ...
|
|
5921
6068
|
|
|
5922
6069
|
@_typing.overload
|
|
5923
6070
|
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]]: ...
|
|
@@ -5929,24 +6076,36 @@ def imencode(ext: str, img: cv2.typing.MatLike, params: _typing.Sequence[int] =
|
|
|
5929
6076
|
@_typing.overload
|
|
5930
6077
|
def imencode(ext: str, img: UMat, params: _typing.Sequence[int] = ...) -> tuple[bool, numpy.ndarray[_typing.Any, numpy.dtype[numpy.uint8]]]: ...
|
|
5931
6078
|
|
|
6079
|
+
@_typing.overload
|
|
6080
|
+
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]]]: ...
|
|
6081
|
+
@_typing.overload
|
|
6082
|
+
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]]]: ...
|
|
6083
|
+
|
|
6084
|
+
def imencodeanimation(ext: str, animation: Animation, params: _typing.Sequence[int] = ...) -> tuple[bool, numpy.ndarray[_typing.Any, numpy.dtype[numpy.uint8]]]: ...
|
|
6085
|
+
|
|
5932
6086
|
@_typing.overload
|
|
5933
6087
|
def imencodemulti(ext: str, imgs: _typing.Sequence[cv2.typing.MatLike], params: _typing.Sequence[int] = ...) -> tuple[bool, numpy.ndarray[_typing.Any, numpy.dtype[numpy.uint8]]]: ...
|
|
5934
6088
|
@_typing.overload
|
|
5935
6089
|
def imencodemulti(ext: str, imgs: _typing.Sequence[UMat], params: _typing.Sequence[int] = ...) -> tuple[bool, numpy.ndarray[_typing.Any, numpy.dtype[numpy.uint8]]]: ...
|
|
5936
6090
|
|
|
5937
6091
|
@_typing.overload
|
|
5938
|
-
def imread(filename: str, flags: int = ...) -> cv2.typing.MatLike: ...
|
|
6092
|
+
def imread(filename: str | os.PathLike[str], flags: int = ...) -> cv2.typing.MatLike | None: ...
|
|
5939
6093
|
@_typing.overload
|
|
5940
|
-
def imread(filename: str, dst: cv2.typing.MatLike | None = ..., flags: int = ...) -> cv2.typing.MatLike: ...
|
|
6094
|
+
def imread(filename: str | os.PathLike[str], dst: cv2.typing.MatLike | None = ..., flags: int = ...) -> cv2.typing.MatLike | None: ...
|
|
5941
6095
|
@_typing.overload
|
|
5942
|
-
def imread(filename: str, dst: UMat | None = ..., flags: int = ...) -> UMat: ...
|
|
6096
|
+
def imread(filename: str | os.PathLike[str], dst: UMat | None = ..., flags: int = ...) -> UMat | None: ...
|
|
5943
6097
|
|
|
5944
|
-
|
|
6098
|
+
@_typing.overload
|
|
6099
|
+
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]]: ...
|
|
6100
|
+
@_typing.overload
|
|
6101
|
+
def imreadWithMetadata(filename: str | os.PathLike[str], metadata: _typing.Sequence[UMat] | None = ..., flags: int = ...) -> tuple[cv2.typing.MatLike, _typing.Sequence[int], _typing.Sequence[UMat]]: ...
|
|
6102
|
+
|
|
6103
|
+
def imreadanimation(filename: str | os.PathLike[str], start: int = ..., count: int = ...) -> tuple[bool, Animation]: ...
|
|
5945
6104
|
|
|
5946
6105
|
@_typing.overload
|
|
5947
|
-
def imreadmulti(filename: str, mats: _typing.Sequence[cv2.typing.MatLike] | None = ..., flags: int = ...) -> tuple[bool, _typing.Sequence[cv2.typing.MatLike]]: ...
|
|
6106
|
+
def imreadmulti(filename: str | os.PathLike[str], mats: _typing.Sequence[cv2.typing.MatLike] | None = ..., flags: int = ...) -> tuple[bool, _typing.Sequence[cv2.typing.MatLike]]: ...
|
|
5948
6107
|
@_typing.overload
|
|
5949
|
-
def imreadmulti(filename: str, start: int, count: int, mats: _typing.Sequence[cv2.typing.MatLike] | None = ..., flags: int = ...) -> tuple[bool, _typing.Sequence[cv2.typing.MatLike]]: ...
|
|
6108
|
+
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]]: ...
|
|
5950
6109
|
|
|
5951
6110
|
@_typing.overload
|
|
5952
6111
|
def imshow(winname: str, mat: cv2.typing.MatLike) -> None: ...
|
|
@@ -5956,16 +6115,21 @@ def imshow(winname: str, mat: cv2.cuda.GpuMat) -> None: ...
|
|
|
5956
6115
|
def imshow(winname: str, mat: UMat) -> None: ...
|
|
5957
6116
|
|
|
5958
6117
|
@_typing.overload
|
|
5959
|
-
def imwrite(filename: str, img: cv2.typing.MatLike, params: _typing.Sequence[int] = ...) -> bool: ...
|
|
6118
|
+
def imwrite(filename: str | os.PathLike[str], img: cv2.typing.MatLike, params: _typing.Sequence[int] = ...) -> bool: ...
|
|
6119
|
+
@_typing.overload
|
|
6120
|
+
def imwrite(filename: str | os.PathLike[str], img: UMat, params: _typing.Sequence[int] = ...) -> bool: ...
|
|
6121
|
+
|
|
6122
|
+
@_typing.overload
|
|
6123
|
+
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: ...
|
|
5960
6124
|
@_typing.overload
|
|
5961
|
-
def
|
|
6125
|
+
def imwriteWithMetadata(filename: str | os.PathLike[str], img: UMat, metadataTypes: _typing.Sequence[int], metadata: _typing.Sequence[UMat], params: _typing.Sequence[int] = ...) -> bool: ...
|
|
5962
6126
|
|
|
5963
|
-
def imwriteanimation(filename: str, animation: Animation, params: _typing.Sequence[int] = ...) -> bool: ...
|
|
6127
|
+
def imwriteanimation(filename: str | os.PathLike[str], animation: Animation, params: _typing.Sequence[int] = ...) -> bool: ...
|
|
5964
6128
|
|
|
5965
6129
|
@_typing.overload
|
|
5966
|
-
def imwritemulti(filename: str, img: _typing.Sequence[cv2.typing.MatLike], params: _typing.Sequence[int] = ...) -> bool: ...
|
|
6130
|
+
def imwritemulti(filename: str | os.PathLike[str], img: _typing.Sequence[cv2.typing.MatLike], params: _typing.Sequence[int] = ...) -> bool: ...
|
|
5967
6131
|
@_typing.overload
|
|
5968
|
-
def imwritemulti(filename: str, img: _typing.Sequence[UMat], params: _typing.Sequence[int] = ...) -> bool: ...
|
|
6132
|
+
def imwritemulti(filename: str | os.PathLike[str], img: _typing.Sequence[UMat], params: _typing.Sequence[int] = ...) -> bool: ...
|
|
5969
6133
|
|
|
5970
6134
|
@_typing.overload
|
|
5971
6135
|
def inRange(src: cv2.typing.MatLike, lowerb: cv2.typing.MatLike, upperb: cv2.typing.MatLike, dst: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
|
|
@@ -5978,14 +6142,14 @@ def initCameraMatrix2D(objectPoints: _typing.Sequence[cv2.typing.MatLike], image
|
|
|
5978
6142
|
def initCameraMatrix2D(objectPoints: _typing.Sequence[UMat], imagePoints: _typing.Sequence[UMat], imageSize: cv2.typing.Size, aspectRatio: float = ...) -> cv2.typing.MatLike: ...
|
|
5979
6143
|
|
|
5980
6144
|
@_typing.overload
|
|
5981
|
-
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]: ...
|
|
6145
|
+
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]: ...
|
|
5982
6146
|
@_typing.overload
|
|
5983
|
-
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]: ...
|
|
6147
|
+
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]: ...
|
|
5984
6148
|
|
|
5985
6149
|
@_typing.overload
|
|
5986
|
-
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]: ...
|
|
6150
|
+
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]: ...
|
|
5987
6151
|
@_typing.overload
|
|
5988
|
-
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]: ...
|
|
6152
|
+
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]: ...
|
|
5989
6153
|
|
|
5990
6154
|
@_typing.overload
|
|
5991
6155
|
def inpaint(src: cv2.typing.MatLike, inpaintMask: cv2.typing.MatLike, inpaintRadius: float, flags: int, dst: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
|
|
@@ -6083,9 +6247,9 @@ def max(src1: cv2.typing.MatLike, src2: cv2.typing.MatLike, dst: cv2.typing.MatL
|
|
|
6083
6247
|
def max(src1: UMat, src2: UMat, dst: UMat | None = ...) -> UMat: ...
|
|
6084
6248
|
|
|
6085
6249
|
@_typing.overload
|
|
6086
|
-
def mean(src: cv2.typing.MatLike, mask: cv2.typing.MatLike | None = ...) ->
|
|
6250
|
+
def mean(src: cv2.typing.MatLike, mask: cv2.typing.MatLike | None = ...) -> tuple[float, float, float, float]: ...
|
|
6087
6251
|
@_typing.overload
|
|
6088
|
-
def mean(src: UMat, mask: UMat | None = ...) ->
|
|
6252
|
+
def mean(src: UMat, mask: UMat | None = ...) -> tuple[float, float, float, float]: ...
|
|
6089
6253
|
|
|
6090
6254
|
@_typing.overload
|
|
6091
6255
|
def meanShift(probImage: cv2.typing.MatLike, window: cv2.typing.Rect, criteria: cv2.typing.TermCriteria) -> tuple[int, cv2.typing.Rect]: ...
|
|
@@ -6122,6 +6286,11 @@ def minEnclosingCircle(points: cv2.typing.MatLike) -> tuple[cv2.typing.Point2f,
|
|
|
6122
6286
|
@_typing.overload
|
|
6123
6287
|
def minEnclosingCircle(points: UMat) -> tuple[cv2.typing.Point2f, float]: ...
|
|
6124
6288
|
|
|
6289
|
+
@_typing.overload
|
|
6290
|
+
def minEnclosingConvexPolygon(points: cv2.typing.MatLike, k: int, polygon: cv2.typing.MatLike | None = ...) -> tuple[float, cv2.typing.MatLike]: ...
|
|
6291
|
+
@_typing.overload
|
|
6292
|
+
def minEnclosingConvexPolygon(points: UMat, k: int, polygon: UMat | None = ...) -> tuple[float, UMat]: ...
|
|
6293
|
+
|
|
6125
6294
|
@_typing.overload
|
|
6126
6295
|
def minEnclosingTriangle(points: cv2.typing.MatLike, triangle: cv2.typing.MatLike | None = ...) -> tuple[float, cv2.typing.MatLike]: ...
|
|
6127
6296
|
@_typing.overload
|
|
@@ -6205,6 +6374,11 @@ def phaseCorrelate(src1: cv2.typing.MatLike, src2: cv2.typing.MatLike, window: c
|
|
|
6205
6374
|
@_typing.overload
|
|
6206
6375
|
def phaseCorrelate(src1: UMat, src2: UMat, window: UMat | None = ...) -> tuple[cv2.typing.Point2d, float]: ...
|
|
6207
6376
|
|
|
6377
|
+
@_typing.overload
|
|
6378
|
+
def phaseCorrelateIterative(src1: cv2.typing.MatLike, src2: cv2.typing.MatLike, L2size: int = ..., maxIters: int = ...) -> cv2.typing.Point2d: ...
|
|
6379
|
+
@_typing.overload
|
|
6380
|
+
def phaseCorrelateIterative(src1: UMat, src2: UMat, L2size: int = ..., maxIters: int = ...) -> cv2.typing.Point2d: ...
|
|
6381
|
+
|
|
6208
6382
|
@_typing.overload
|
|
6209
6383
|
def pointPolygonTest(contour: cv2.typing.MatLike, pt: cv2.typing.Point2f, measureDist: bool) -> float: ...
|
|
6210
6384
|
@_typing.overload
|
|
@@ -6233,9 +6407,9 @@ def preCornerDetect(src: cv2.typing.MatLike, ksize: int, dst: cv2.typing.MatLike
|
|
|
6233
6407
|
def preCornerDetect(src: UMat, ksize: int, dst: UMat | None = ..., borderType: int = ...) -> UMat: ...
|
|
6234
6408
|
|
|
6235
6409
|
@_typing.overload
|
|
6236
|
-
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]: ...
|
|
6410
|
+
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]: ...
|
|
6237
6411
|
@_typing.overload
|
|
6238
|
-
def projectPoints(objectPoints: UMat, rvec: UMat, tvec: UMat, cameraMatrix: UMat, distCoeffs: UMat, imagePoints: UMat | None = ..., jacobian: UMat | None = ..., aspectRatio: float = ...) -> tuple[UMat, UMat]: ...
|
|
6412
|
+
def projectPoints(objectPoints: UMat, rvec: UMat, tvec: UMat, cameraMatrix: UMat, distCoeffs: UMat | None, imagePoints: UMat | None = ..., jacobian: UMat | None = ..., aspectRatio: float = ...) -> tuple[UMat, UMat]: ...
|
|
6239
6413
|
|
|
6240
6414
|
@_typing.overload
|
|
6241
6415
|
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: ...
|
|
@@ -6396,8 +6570,6 @@ def setIdentity(mtx: cv2.typing.MatLike, s: cv2.typing.Scalar = ...) -> cv2.typi
|
|
|
6396
6570
|
@_typing.overload
|
|
6397
6571
|
def setIdentity(mtx: UMat, s: cv2.typing.Scalar = ...) -> UMat: ...
|
|
6398
6572
|
|
|
6399
|
-
def setLogLevel(level: int) -> int: ...
|
|
6400
|
-
|
|
6401
6573
|
def setNumThreads(nthreads: int) -> None: ...
|
|
6402
6574
|
|
|
6403
6575
|
def setRNGSeed(seed: int) -> None: ...
|
|
@@ -6436,38 +6608,38 @@ def solveLP(Func: cv2.typing.MatLike, Constr: cv2.typing.MatLike, z: cv2.typing.
|
|
|
6436
6608
|
def solveLP(Func: UMat, Constr: UMat, z: UMat | None = ...) -> tuple[int, UMat]: ...
|
|
6437
6609
|
|
|
6438
6610
|
@_typing.overload
|
|
6439
|
-
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]]: ...
|
|
6611
|
+
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]]: ...
|
|
6440
6612
|
@_typing.overload
|
|
6441
|
-
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]]: ...
|
|
6613
|
+
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]]: ...
|
|
6442
6614
|
|
|
6443
6615
|
@_typing.overload
|
|
6444
|
-
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]: ...
|
|
6616
|
+
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]: ...
|
|
6445
6617
|
@_typing.overload
|
|
6446
|
-
def solvePnP(objectPoints: UMat, imagePoints: UMat, cameraMatrix: UMat, distCoeffs: UMat, rvec: UMat | None = ..., tvec: UMat | None = ..., useExtrinsicGuess: bool = ..., flags: int = ...) -> tuple[bool, UMat, UMat]: ...
|
|
6618
|
+
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]: ...
|
|
6447
6619
|
|
|
6448
6620
|
@_typing.overload
|
|
6449
|
-
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]: ...
|
|
6621
|
+
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]: ...
|
|
6450
6622
|
@_typing.overload
|
|
6451
|
-
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]: ...
|
|
6623
|
+
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]: ...
|
|
6452
6624
|
|
|
6453
6625
|
@_typing.overload
|
|
6454
|
-
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]: ...
|
|
6626
|
+
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]: ...
|
|
6455
6627
|
@_typing.overload
|
|
6456
|
-
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]: ...
|
|
6628
|
+
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]: ...
|
|
6457
6629
|
@_typing.overload
|
|
6458
|
-
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]: ...
|
|
6630
|
+
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]: ...
|
|
6459
6631
|
@_typing.overload
|
|
6460
|
-
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]: ...
|
|
6632
|
+
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]: ...
|
|
6461
6633
|
|
|
6462
6634
|
@_typing.overload
|
|
6463
|
-
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]: ...
|
|
6635
|
+
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]: ...
|
|
6464
6636
|
@_typing.overload
|
|
6465
|
-
def solvePnPRefineLM(objectPoints: UMat, imagePoints: UMat, cameraMatrix: UMat, distCoeffs: UMat, rvec: UMat, tvec: UMat, criteria: cv2.typing.TermCriteria = ...) -> tuple[UMat, UMat]: ...
|
|
6637
|
+
def solvePnPRefineLM(objectPoints: UMat, imagePoints: UMat, cameraMatrix: UMat, distCoeffs: UMat | None, rvec: UMat, tvec: UMat, criteria: cv2.typing.TermCriteria = ...) -> tuple[UMat, UMat]: ...
|
|
6466
6638
|
|
|
6467
6639
|
@_typing.overload
|
|
6468
|
-
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]: ...
|
|
6640
|
+
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]: ...
|
|
6469
6641
|
@_typing.overload
|
|
6470
|
-
def solvePnPRefineVVS(objectPoints: UMat, imagePoints: UMat, cameraMatrix: UMat, distCoeffs: UMat, rvec: UMat, tvec: UMat, criteria: cv2.typing.TermCriteria = ..., VVSlambda: float = ...) -> tuple[UMat, UMat]: ...
|
|
6642
|
+
def solvePnPRefineVVS(objectPoints: UMat, imagePoints: UMat, cameraMatrix: UMat, distCoeffs: UMat | None, rvec: UMat, tvec: UMat, criteria: cv2.typing.TermCriteria = ..., VVSlambda: float = ...) -> tuple[UMat, UMat]: ...
|
|
6471
6643
|
|
|
6472
6644
|
@_typing.overload
|
|
6473
6645
|
def solvePoly(coeffs: cv2.typing.MatLike, roots: cv2.typing.MatLike | None = ..., maxIters: int = ...) -> tuple[float, cv2.typing.MatLike]: ...
|
|
@@ -6546,9 +6718,9 @@ def subtract(src1: cv2.typing.MatLike, src2: cv2.typing.MatLike, dst: cv2.typing
|
|
|
6546
6718
|
def subtract(src1: UMat, src2: UMat, dst: UMat | None = ..., mask: UMat | None = ..., dtype: int = ...) -> UMat: ...
|
|
6547
6719
|
|
|
6548
6720
|
@_typing.overload
|
|
6549
|
-
def sumElems(src: cv2.typing.MatLike) ->
|
|
6721
|
+
def sumElems(src: cv2.typing.MatLike) -> tuple[float, float, float, float]: ...
|
|
6550
6722
|
@_typing.overload
|
|
6551
|
-
def sumElems(src: UMat) ->
|
|
6723
|
+
def sumElems(src: UMat) -> tuple[float, float, float, float]: ...
|
|
6552
6724
|
|
|
6553
6725
|
@_typing.overload
|
|
6554
6726
|
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: ...
|
|
@@ -6561,9 +6733,14 @@ def threshold(src: cv2.typing.MatLike, thresh: float, maxval: float, type: int,
|
|
|
6561
6733
|
def threshold(src: UMat, thresh: float, maxval: float, type: int, dst: UMat | None = ...) -> tuple[float, UMat]: ...
|
|
6562
6734
|
|
|
6563
6735
|
@_typing.overload
|
|
6564
|
-
def
|
|
6736
|
+
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]: ...
|
|
6737
|
+
@_typing.overload
|
|
6738
|
+
def thresholdWithMask(src: UMat, dst: UMat, mask: UMat, thresh: float, maxval: float, type: int) -> tuple[float, UMat]: ...
|
|
6739
|
+
|
|
6740
|
+
@_typing.overload
|
|
6741
|
+
def trace(mtx: cv2.typing.MatLike) -> tuple[float, float, float, float]: ...
|
|
6565
6742
|
@_typing.overload
|
|
6566
|
-
def trace(mtx: UMat) ->
|
|
6743
|
+
def trace(mtx: UMat) -> tuple[float, float, float, float]: ...
|
|
6567
6744
|
|
|
6568
6745
|
@_typing.overload
|
|
6569
6746
|
def transform(src: cv2.typing.MatLike, m: cv2.typing.MatLike, dst: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
|
|
@@ -6586,9 +6763,9 @@ def triangulatePoints(projMatr1: cv2.typing.MatLike, projMatr2: cv2.typing.MatLi
|
|
|
6586
6763
|
def triangulatePoints(projMatr1: UMat, projMatr2: UMat, projPoints1: UMat, projPoints2: UMat, points4D: UMat | None = ...) -> UMat: ...
|
|
6587
6764
|
|
|
6588
6765
|
@_typing.overload
|
|
6589
|
-
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: ...
|
|
6766
|
+
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: ...
|
|
6590
6767
|
@_typing.overload
|
|
6591
|
-
def undistort(src: UMat, cameraMatrix: UMat, distCoeffs: UMat, dst: UMat | None = ..., newCameraMatrix: UMat | None = ...) -> UMat: ...
|
|
6768
|
+
def undistort(src: UMat, cameraMatrix: UMat, distCoeffs: UMat | None, dst: UMat | None = ..., newCameraMatrix: UMat | None = ...) -> UMat: ...
|
|
6592
6769
|
|
|
6593
6770
|
@_typing.overload
|
|
6594
6771
|
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: ...
|
|
@@ -6596,9 +6773,9 @@ def undistortImagePoints(src: cv2.typing.MatLike, cameraMatrix: cv2.typing.MatLi
|
|
|
6596
6773
|
def undistortImagePoints(src: UMat, cameraMatrix: UMat, distCoeffs: UMat, dst: UMat | None = ..., arg1: cv2.typing.TermCriteria = ...) -> UMat: ...
|
|
6597
6774
|
|
|
6598
6775
|
@_typing.overload
|
|
6599
|
-
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: ...
|
|
6776
|
+
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: ...
|
|
6600
6777
|
@_typing.overload
|
|
6601
|
-
def undistortPoints(src: UMat, cameraMatrix: UMat, distCoeffs: UMat, dst: UMat | None = ..., R: UMat | None = ..., P: UMat | None = ...) -> UMat: ...
|
|
6778
|
+
def undistortPoints(src: UMat, cameraMatrix: UMat, distCoeffs: UMat | None, dst: UMat | None = ..., R: UMat | None = ..., P: UMat | None = ...) -> UMat: ...
|
|
6602
6779
|
|
|
6603
6780
|
@_typing.overload
|
|
6604
6781
|
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: ...
|