opencv-python 4.12.0.88__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/__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
@@ -1182,6 +1184,7 @@ IMWRITE_PNG_COMPRESSION: int
1182
1184
  IMWRITE_PNG_STRATEGY: int
1183
1185
  IMWRITE_PNG_BILEVEL: int
1184
1186
  IMWRITE_PNG_FILTER: int
1187
+ IMWRITE_PNG_ZLIBBUFFER_SIZE: int
1185
1188
  IMWRITE_PXM_BINARY: int
1186
1189
  IMWRITE_EXR_TYPE: int
1187
1190
  IMWRITE_EXR_COMPRESSION: int
@@ -1203,6 +1206,7 @@ IMWRITE_JPEGXL_QUALITY: int
1203
1206
  IMWRITE_JPEGXL_EFFORT: int
1204
1207
  IMWRITE_JPEGXL_DISTANCE: int
1205
1208
  IMWRITE_JPEGXL_DECODING_SPEED: int
1209
+ IMWRITE_BMP_COMPRESSION: int
1206
1210
  IMWRITE_GIF_LOOP: int
1207
1211
  IMWRITE_GIF_SPEED: int
1208
1212
  IMWRITE_GIF_QUALITY: int
@@ -1210,7 +1214,7 @@ IMWRITE_GIF_DITHER: int
1210
1214
  IMWRITE_GIF_TRANSPARENCY: int
1211
1215
  IMWRITE_GIF_COLORTABLE: int
1212
1216
  ImwriteFlags = int
1213
- """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_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]"""
1214
1218
 
1215
1219
  IMWRITE_JPEG_SAMPLING_FACTOR_411: int
1216
1220
  IMWRITE_JPEG_SAMPLING_FACTOR_420: int
@@ -1262,6 +1266,12 @@ IMWRITE_TIFF_PREDICTOR_FLOATINGPOINT: int
1262
1266
  ImwriteTiffPredictorFlags = int
1263
1267
  """One of [IMWRITE_TIFF_PREDICTOR_NONE, IMWRITE_TIFF_PREDICTOR_HORIZONTAL, IMWRITE_TIFF_PREDICTOR_FLOATINGPOINT]"""
1264
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
+
1265
1275
  IMWRITE_EXR_TYPE_HALF: int
1266
1276
  IMWRITE_EXR_TYPE_FLOAT: int
1267
1277
  ImwriteEXRTypeFlags = int
@@ -1312,6 +1322,11 @@ IMWRITE_HDR_COMPRESSION_RLE: int
1312
1322
  ImwriteHDRCompressionFlags = int
1313
1323
  """One of [IMWRITE_HDR_COMPRESSION_NONE, IMWRITE_HDR_COMPRESSION_RLE]"""
1314
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
+
1315
1330
  IMWRITE_GIF_FAST_NO_DITHER: int
1316
1331
  IMWRITE_GIF_FAST_FLOYD_DITHER: int
1317
1332
  IMWRITE_GIF_COLORTABLE_SIZE_8: int
@@ -1327,9 +1342,10 @@ IMAGE_METADATA_UNKNOWN: int
1327
1342
  IMAGE_METADATA_EXIF: int
1328
1343
  IMAGE_METADATA_XMP: int
1329
1344
  IMAGE_METADATA_ICCP: int
1345
+ IMAGE_METADATA_CICP: int
1330
1346
  IMAGE_METADATA_MAX: int
1331
1347
  ImageMetadataType = int
1332
- """One of [IMAGE_METADATA_UNKNOWN, IMAGE_METADATA_EXIF, IMAGE_METADATA_XMP, IMAGE_METADATA_ICCP, IMAGE_METADATA_MAX]"""
1348
+ """One of [IMAGE_METADATA_UNKNOWN, IMAGE_METADATA_EXIF, IMAGE_METADATA_XMP, IMAGE_METADATA_ICCP, IMAGE_METADATA_CICP, IMAGE_METADATA_MAX]"""
1333
1349
 
1334
1350
  CAP_ANY: int
1335
1351
  CAP_VFW: int
@@ -1466,8 +1482,9 @@ VIDEO_ACCELERATION_ANY: int
1466
1482
  VIDEO_ACCELERATION_D3D11: int
1467
1483
  VIDEO_ACCELERATION_VAAPI: int
1468
1484
  VIDEO_ACCELERATION_MFX: int
1485
+ VIDEO_ACCELERATION_DRM: int
1469
1486
  VideoAccelerationType = int
1470
- """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]"""
1471
1488
 
1472
1489
  CAP_OBSENSOR_DEPTH_MAP: int
1473
1490
  CAP_OBSENSOR_BGR_IMAGE: int
@@ -1486,8 +1503,21 @@ CAP_PROP_OBSENSOR_INTRINSIC_FX: int
1486
1503
  CAP_PROP_OBSENSOR_INTRINSIC_FY: int
1487
1504
  CAP_PROP_OBSENSOR_INTRINSIC_CX: int
1488
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
1489
1519
  VideoCaptureOBSensorProperties = int
1490
- """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]"""
1491
1521
 
1492
1522
  SOLVEPNP_ITERATIVE: int
1493
1523
  SOLVEPNP_EPNP: int
@@ -1993,8 +2023,10 @@ _InputArray_STD_ARRAY: int
1993
2023
  _INPUT_ARRAY_STD_ARRAY: int
1994
2024
  _InputArray_STD_ARRAY_MAT: int
1995
2025
  _INPUT_ARRAY_STD_ARRAY_MAT: int
2026
+ _InputArray_CUDA_GPU_MATND: int
2027
+ _INPUT_ARRAY_CUDA_GPU_MATND: int
1996
2028
  _InputArray_KindFlag = int
1997
- """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]"""
1998
2030
 
1999
2031
  _OutputArray_DEPTH_MASK_8U: int
2000
2032
  _OUTPUT_ARRAY_DEPTH_MASK_8U: int
@@ -2209,7 +2241,7 @@ class Algorithm:
2209
2241
 
2210
2242
  def empty(self) -> bool: ...
2211
2243
 
2212
- def save(self, filename: str) -> None: ...
2244
+ def save(self, filename: str | os.PathLike[str]) -> None: ...
2213
2245
 
2214
2246
  def getDefaultName(self) -> str: ...
2215
2247
 
@@ -2239,9 +2271,9 @@ class FileStorage:
2239
2271
  @_typing.overload
2240
2272
  def __init__(self) -> None: ...
2241
2273
  @_typing.overload
2242
- def __init__(self, filename: str, flags: int, encoding: str = ...) -> None: ...
2274
+ def __init__(self, filename: str | os.PathLike[str], flags: int, encoding: str = ...) -> None: ...
2243
2275
 
2244
- def open(self, filename: str, flags: int, encoding: str = ...) -> bool: ...
2276
+ def open(self, filename: str | os.PathLike[str], flags: int, encoding: str = ...) -> bool: ...
2245
2277
 
2246
2278
  def isOpened(self) -> bool: ...
2247
2279
 
@@ -2569,6 +2601,10 @@ class CLAHE(Algorithm):
2569
2601
 
2570
2602
  def getTilesGridSize(self) -> cv2.typing.Size: ...
2571
2603
 
2604
+ def setBitShift(self, bitShift: int) -> None: ...
2605
+
2606
+ def getBitShift(self) -> int: ...
2607
+
2572
2608
  def collectGarbage(self) -> None: ...
2573
2609
 
2574
2610
 
@@ -2578,9 +2614,13 @@ class Subdiv2D:
2578
2614
  def __init__(self) -> None: ...
2579
2615
  @_typing.overload
2580
2616
  def __init__(self, rect: cv2.typing.Rect) -> None: ...
2617
+ @_typing.overload
2618
+ def __init__(self, rect2f: cv2.typing.Rect2f) -> None: ...
2581
2619
 
2582
2620
  def initDelaunay(self, rect: cv2.typing.Rect) -> None: ...
2583
2621
 
2622
+ def initDelaunay2f(self, rect: cv2.typing.Rect2f) -> None: ...
2623
+
2584
2624
  @_typing.overload
2585
2625
  def insert(self, pt: cv2.typing.Point2f) -> int: ...
2586
2626
  @_typing.overload
@@ -2840,9 +2880,9 @@ class Feature2D(Algorithm):
2840
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]]: ...
2841
2881
 
2842
2882
  @_typing.overload
2843
- 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]: ...
2844
2884
  @_typing.overload
2845
- 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]: ...
2846
2886
 
2847
2887
  def descriptorSize(self) -> int: ...
2848
2888
 
@@ -2851,12 +2891,12 @@ class Feature2D(Algorithm):
2851
2891
  def defaultNorm(self) -> int: ...
2852
2892
 
2853
2893
  @_typing.overload
2854
- def write(self, fileName: str) -> None: ...
2894
+ def write(self, fileName: str | os.PathLike[str]) -> None: ...
2855
2895
  @_typing.overload
2856
2896
  def write(self, fs: FileStorage, name: str) -> None: ...
2857
2897
 
2858
2898
  @_typing.overload
2859
- def read(self, fileName: str) -> None: ...
2899
+ def read(self, fileName: str | os.PathLike[str]) -> None: ...
2860
2900
  @_typing.overload
2861
2901
  def read(self, arg1: FileNode) -> None: ...
2862
2902
 
@@ -3080,7 +3120,7 @@ class GFTTDetector(Feature2D):
3080
3120
  def create(cls, maxCorners: int = ..., qualityLevel: float = ..., minDistance: float = ..., blockSize: int = ..., useHarrisDetector: bool = ..., k: float = ...) -> GFTTDetector: ...
3081
3121
  @classmethod
3082
3122
  @_typing.overload
3083
- def create(cls, maxCorners: int, qualityLevel: float, minDistance: float, blockSize: int, gradiantSize: int, useHarrisDetector: bool = ..., k: float = ...) -> GFTTDetector: ...
3123
+ def create(cls, maxCorners: int, qualityLevel: float, minDistance: float, blockSize: int, gradientSize: int, useHarrisDetector: bool = ..., k: float = ...) -> GFTTDetector: ...
3084
3124
 
3085
3125
  def setMaxFeatures(self, maxFeatures: int) -> None: ...
3086
3126
 
@@ -3272,12 +3312,12 @@ class DescriptorMatcher(Algorithm):
3272
3312
  def radiusMatch(self, queryDescriptors: UMat, maxDistance: float, masks: _typing.Sequence[UMat] | None = ..., compactResult: bool = ...) -> _typing.Sequence[_typing.Sequence[DMatch]]: ...
3273
3313
 
3274
3314
  @_typing.overload
3275
- def write(self, fileName: str) -> None: ...
3315
+ def write(self, fileName: str | os.PathLike[str]) -> None: ...
3276
3316
  @_typing.overload
3277
3317
  def write(self, fs: FileStorage, name: str) -> None: ...
3278
3318
 
3279
3319
  @_typing.overload
3280
- def read(self, fileName: str) -> None: ...
3320
+ def read(self, fileName: str | os.PathLike[str]) -> None: ...
3281
3321
  @_typing.overload
3282
3322
  def read(self, arg1: FileNode) -> None: ...
3283
3323
 
@@ -3371,9 +3411,9 @@ class VideoCapture:
3371
3411
  @_typing.overload
3372
3412
  def __init__(self) -> None: ...
3373
3413
  @_typing.overload
3374
- def __init__(self, filename: str, apiPreference: int = ...) -> None: ...
3414
+ def __init__(self, filename: str | os.PathLike[str], apiPreference: int = ...) -> None: ...
3375
3415
  @_typing.overload
3376
- 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: ...
3377
3417
  @_typing.overload
3378
3418
  def __init__(self, index: int, apiPreference: int = ...) -> None: ...
3379
3419
  @_typing.overload
@@ -3382,9 +3422,9 @@ class VideoCapture:
3382
3422
  def __init__(self, source: IStreamReader, apiPreference: int, params: _typing.Sequence[int]) -> None: ...
3383
3423
 
3384
3424
  @_typing.overload
3385
- def open(self, filename: str, apiPreference: int = ...) -> bool: ...
3425
+ def open(self, filename: str | os.PathLike[str], apiPreference: int = ...) -> bool: ...
3386
3426
  @_typing.overload
3387
- 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: ...
3388
3428
  @_typing.overload
3389
3429
  def open(self, index: int, apiPreference: int = ...) -> bool: ...
3390
3430
  @_typing.overload
@@ -3427,22 +3467,22 @@ class VideoWriter:
3427
3467
  @_typing.overload
3428
3468
  def __init__(self) -> None: ...
3429
3469
  @_typing.overload
3430
- 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: ...
3431
3471
  @_typing.overload
3432
- 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: ...
3433
3473
  @_typing.overload
3434
- 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: ...
3435
3475
  @_typing.overload
3436
- 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: ...
3437
3477
 
3438
3478
  @_typing.overload
3439
- 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: ...
3440
3480
  @_typing.overload
3441
- 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: ...
3442
3482
  @_typing.overload
3443
- 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: ...
3444
3484
  @_typing.overload
3445
- 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: ...
3446
3486
 
3447
3487
  def isOpened(self) -> bool: ...
3448
3488
 
@@ -3496,6 +3536,7 @@ class CirclesGridFinderParameters:
3496
3536
  edgePenalty: float
3497
3537
  convexHullFactor: float
3498
3538
  minRNGEdgeSwitchDist: float
3539
+ gridType: CirclesGridFinderParameters_GridType
3499
3540
  squareSize: float
3500
3541
  maxRectifiedDistance: float
3501
3542
 
@@ -3607,11 +3648,11 @@ class CascadeClassifier:
3607
3648
  @_typing.overload
3608
3649
  def __init__(self) -> None: ...
3609
3650
  @_typing.overload
3610
- def __init__(self, filename: str) -> None: ...
3651
+ def __init__(self, filename: str | os.PathLike[str]) -> None: ...
3611
3652
 
3612
3653
  def empty(self) -> bool: ...
3613
3654
 
3614
- def load(self, filename: str) -> bool: ...
3655
+ def load(self, filename: str | os.PathLike[str]) -> bool: ...
3615
3656
 
3616
3657
  def read(self, node: FileNode) -> bool: ...
3617
3658
 
@@ -3674,7 +3715,7 @@ class HOGDescriptor:
3674
3715
  @_typing.overload
3675
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: ...
3676
3717
  @_typing.overload
3677
- def __init__(self, filename: str) -> None: ...
3718
+ def __init__(self, filename: str | os.PathLike[str]) -> None: ...
3678
3719
 
3679
3720
  def getDescriptorSize(self) -> int: ...
3680
3721
 
@@ -3687,9 +3728,9 @@ class HOGDescriptor:
3687
3728
  @_typing.overload
3688
3729
  def setSVMDetector(self, svmdetector: UMat) -> None: ...
3689
3730
 
3690
- def load(self, filename: str, objname: str = ...) -> bool: ...
3731
+ def load(self, filename: str | os.PathLike[str], objname: str = ...) -> bool: ...
3691
3732
 
3692
- def save(self, filename: str, objname: str = ...) -> None: ...
3733
+ def save(self, filename: str | os.PathLike[str], objname: str = ...) -> None: ...
3693
3734
 
3694
3735
  @_typing.overload
3695
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]: ...
@@ -3878,7 +3919,7 @@ class FaceDetectorYN:
3878
3919
 
3879
3920
  @classmethod
3880
3921
  @_typing.overload
3881
- 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: ...
3882
3923
  @classmethod
3883
3924
  @_typing.overload
3884
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: ...
@@ -3903,7 +3944,7 @@ class FaceRecognizerSF:
3903
3944
 
3904
3945
  @classmethod
3905
3946
  @_typing.overload
3906
- 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: ...
3907
3948
  @classmethod
3908
3949
  @_typing.overload
3909
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: ...
@@ -4019,6 +4060,10 @@ class BackgroundSubtractor(Algorithm):
4019
4060
  def apply(self, image: cv2.typing.MatLike, fgmask: cv2.typing.MatLike | None = ..., learningRate: float = ...) -> cv2.typing.MatLike: ...
4020
4061
  @_typing.overload
4021
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: ...
4022
4067
 
4023
4068
  @_typing.overload
4024
4069
  def getBackgroundImage(self, backgroundImage: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
@@ -4080,6 +4125,10 @@ class BackgroundSubtractorMOG2(BackgroundSubtractor):
4080
4125
  def apply(self, image: cv2.typing.MatLike, fgmask: cv2.typing.MatLike | None = ..., learningRate: float = ...) -> cv2.typing.MatLike: ...
4081
4126
  @_typing.overload
4082
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: ...
4083
4132
 
4084
4133
 
4085
4134
  class BackgroundSubtractorKNN(BackgroundSubtractor):
@@ -4237,6 +4286,10 @@ class DISOpticalFlow(DenseOpticalFlow):
4237
4286
 
4238
4287
  def setFinestScale(self, val: int) -> None: ...
4239
4288
 
4289
+ def setCoarsestScale(self, val: int) -> None: ...
4290
+
4291
+ def getCoarsestScale(self) -> int: ...
4292
+
4240
4293
  def getPatchSize(self) -> int: ...
4241
4294
 
4242
4295
  def setPatchSize(self, val: int) -> None: ...
@@ -5258,9 +5311,9 @@ def drawContours(image: cv2.typing.MatLike, contours: _typing.Sequence[cv2.typin
5258
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: ...
5259
5312
 
5260
5313
  @_typing.overload
5261
- 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: ...
5262
5315
  @_typing.overload
5263
- 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: ...
5264
5317
 
5265
5318
  @_typing.overload
5266
5319
  def drawKeypoints(image: cv2.typing.MatLike, keypoints: _typing.Sequence[KeyPoint], outImage: cv2.typing.MatLike, color: cv2.typing.Scalar = ..., flags: DrawMatchesFlags = ...) -> cv2.typing.MatLike: ...
@@ -5356,6 +5409,11 @@ def estimateChessboardSharpness(image: cv2.typing.MatLike, patternSize: cv2.typi
5356
5409
  @_typing.overload
5357
5410
  def estimateChessboardSharpness(image: UMat, patternSize: cv2.typing.Size, corners: UMat, rise_distance: float = ..., vertical: bool = ..., sharpness: UMat | None = ...) -> tuple[cv2.typing.Scalar, UMat]: ...
5358
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
+
5359
5417
  @_typing.overload
5360
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]: ...
5361
5419
  @_typing.overload
@@ -5478,13 +5536,13 @@ def findEssentialMat(points1: cv2.typing.MatLike, points2: cv2.typing.MatLike, f
5478
5536
  @_typing.overload
5479
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]: ...
5480
5538
  @_typing.overload
5481
- 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]: ...
5482
5540
  @_typing.overload
5483
- 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]: ...
5484
5542
  @_typing.overload
5485
- 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]: ...
5486
5544
  @_typing.overload
5487
- 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]: ...
5488
5546
 
5489
5547
  @_typing.overload
5490
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]: ...
@@ -5522,6 +5580,11 @@ def findTransformECC(templateImage: cv2.typing.MatLike, inputImage: cv2.typing.M
5522
5580
  @_typing.overload
5523
5581
  def findTransformECC(templateImage: UMat, inputImage: UMat, warpMatrix: UMat, motionType: int = ..., criteria: cv2.typing.TermCriteria = ..., inputMask: UMat | None = ...) -> tuple[float, UMat]: ...
5524
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
+
5525
5588
  @_typing.overload
5526
5589
  def fitEllipse(points: cv2.typing.MatLike) -> cv2.typing.RotatedRect: ...
5527
5590
  @_typing.overload
@@ -5598,8 +5661,6 @@ def getGaussianKernel(ksize: int, sigma: float, ktype: int = ...) -> cv2.typing.
5598
5661
 
5599
5662
  def getHardwareFeatureName(feature: int) -> str: ...
5600
5663
 
5601
- def getLogLevel() -> int: ...
5602
-
5603
5664
  def getNumThreads() -> int: ...
5604
5665
 
5605
5666
  def getNumberOfCPUs() -> int: ...
@@ -5607,9 +5668,9 @@ def getNumberOfCPUs() -> int: ...
5607
5668
  def getOptimalDFTSize(vecsize: int) -> int: ...
5608
5669
 
5609
5670
  @_typing.overload
5610
- 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]: ...
5611
5672
  @_typing.overload
5612
- 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]: ...
5613
5674
 
5614
5675
  @_typing.overload
5615
5676
  def getPerspectiveTransform(src: cv2.typing.MatLike, dst: cv2.typing.MatLike, solveMethod: int = ...) -> cv2.typing.MatLike: ...
@@ -5675,9 +5736,9 @@ def hasNonZero(src: cv2.typing.MatLike) -> bool: ...
5675
5736
  @_typing.overload
5676
5737
  def hasNonZero(src: UMat) -> bool: ...
5677
5738
 
5678
- def haveImageReader(filename: str) -> bool: ...
5739
+ def haveImageReader(filename: str | os.PathLike[str]) -> bool: ...
5679
5740
 
5680
- def haveImageWriter(filename: str) -> bool: ...
5741
+ def haveImageWriter(filename: str | os.PathLike[str]) -> bool: ...
5681
5742
 
5682
5743
  def haveOpenVX() -> bool: ...
5683
5744
 
@@ -5701,7 +5762,7 @@ def illuminationChange(src: cv2.typing.MatLike, mask: cv2.typing.MatLike, dst: c
5701
5762
  @_typing.overload
5702
5763
  def illuminationChange(src: UMat, mask: UMat, dst: UMat | None = ..., alpha: float = ..., beta: float = ...) -> UMat: ...
5703
5764
 
5704
- def imcount(filename: str, flags: int = ...) -> int: ...
5765
+ def imcount(filename: str | os.PathLike[str], flags: int = ...) -> int: ...
5705
5766
 
5706
5767
  @_typing.overload
5707
5768
  def imdecode(buf: cv2.typing.MatLike, flags: int) -> cv2.typing.MatLike | None: ...
@@ -5741,23 +5802,23 @@ def imencodemulti(ext: str, imgs: _typing.Sequence[cv2.typing.MatLike], params:
5741
5802
  def imencodemulti(ext: str, imgs: _typing.Sequence[UMat], params: _typing.Sequence[int] = ...) -> tuple[bool, numpy.ndarray[_typing.Any, numpy.dtype[numpy.uint8]]]: ...
5742
5803
 
5743
5804
  @_typing.overload
5744
- def imread(filename: str, flags: int = ...) -> cv2.typing.MatLike | None: ...
5805
+ def imread(filename: str | os.PathLike[str], flags: int = ...) -> cv2.typing.MatLike | None: ...
5745
5806
  @_typing.overload
5746
- def imread(filename: str, dst: cv2.typing.MatLike | None = ..., flags: int = ...) -> cv2.typing.MatLike | None: ...
5807
+ def imread(filename: str | os.PathLike[str], dst: cv2.typing.MatLike | None = ..., flags: int = ...) -> cv2.typing.MatLike | None: ...
5747
5808
  @_typing.overload
5748
- def imread(filename: str, dst: UMat | None = ..., flags: int = ...) -> UMat | None: ...
5809
+ def imread(filename: str | os.PathLike[str], dst: UMat | None = ..., flags: int = ...) -> UMat | None: ...
5749
5810
 
5750
5811
  @_typing.overload
5751
- def imreadWithMetadata(filename: str, metadata: _typing.Sequence[cv2.typing.MatLike] | None = ..., flags: int = ...) -> tuple[cv2.typing.MatLike, _typing.Sequence[int], _typing.Sequence[cv2.typing.MatLike]]: ...
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]]: ...
5752
5813
  @_typing.overload
5753
- def imreadWithMetadata(filename: str, metadata: _typing.Sequence[UMat] | None = ..., flags: int = ...) -> tuple[cv2.typing.MatLike, _typing.Sequence[int], _typing.Sequence[UMat]]: ...
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]]: ...
5754
5815
 
5755
- def imreadanimation(filename: str, start: int = ..., count: int = ...) -> tuple[bool, Animation]: ...
5816
+ def imreadanimation(filename: str | os.PathLike[str], start: int = ..., count: int = ...) -> tuple[bool, Animation]: ...
5756
5817
 
5757
5818
  @_typing.overload
5758
- 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]]: ...
5759
5820
  @_typing.overload
5760
- 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]]: ...
5761
5822
 
5762
5823
  @_typing.overload
5763
5824
  def imshow(winname: str, mat: cv2.typing.MatLike) -> None: ...
@@ -5767,21 +5828,21 @@ def imshow(winname: str, mat: cv2.cuda.GpuMat) -> None: ...
5767
5828
  def imshow(winname: str, mat: UMat) -> None: ...
5768
5829
 
5769
5830
  @_typing.overload
5770
- 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: ...
5771
5832
  @_typing.overload
5772
- def imwrite(filename: str, img: UMat, params: _typing.Sequence[int] = ...) -> bool: ...
5833
+ def imwrite(filename: str | os.PathLike[str], img: UMat, params: _typing.Sequence[int] = ...) -> bool: ...
5773
5834
 
5774
5835
  @_typing.overload
5775
- def imwriteWithMetadata(filename: str, img: cv2.typing.MatLike, metadataTypes: _typing.Sequence[int], metadata: _typing.Sequence[cv2.typing.MatLike], params: _typing.Sequence[int] = ...) -> bool: ...
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: ...
5776
5837
  @_typing.overload
5777
- def imwriteWithMetadata(filename: str, img: UMat, metadataTypes: _typing.Sequence[int], metadata: _typing.Sequence[UMat], params: _typing.Sequence[int] = ...) -> bool: ...
5838
+ def imwriteWithMetadata(filename: str | os.PathLike[str], img: UMat, metadataTypes: _typing.Sequence[int], metadata: _typing.Sequence[UMat], params: _typing.Sequence[int] = ...) -> bool: ...
5778
5839
 
5779
- 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: ...
5780
5841
 
5781
5842
  @_typing.overload
5782
- 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: ...
5783
5844
  @_typing.overload
5784
- 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: ...
5785
5846
 
5786
5847
  @_typing.overload
5787
5848
  def inRange(src: cv2.typing.MatLike, lowerb: cv2.typing.MatLike, upperb: cv2.typing.MatLike, dst: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
@@ -5794,14 +5855,14 @@ def initCameraMatrix2D(objectPoints: _typing.Sequence[cv2.typing.MatLike], image
5794
5855
  def initCameraMatrix2D(objectPoints: _typing.Sequence[UMat], imagePoints: _typing.Sequence[UMat], imageSize: cv2.typing.Size, aspectRatio: float = ...) -> cv2.typing.MatLike: ...
5795
5856
 
5796
5857
  @_typing.overload
5797
- 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]: ...
5798
5859
  @_typing.overload
5799
- 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]: ...
5800
5861
 
5801
5862
  @_typing.overload
5802
- 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]: ...
5803
5864
  @_typing.overload
5804
- 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]: ...
5805
5866
 
5806
5867
  @_typing.overload
5807
5868
  def inpaint(src: cv2.typing.MatLike, inpaintMask: cv2.typing.MatLike, inpaintRadius: float, flags: int, dst: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
@@ -5899,9 +5960,9 @@ def max(src1: cv2.typing.MatLike, src2: cv2.typing.MatLike, dst: cv2.typing.MatL
5899
5960
  def max(src1: UMat, src2: UMat, dst: UMat | None = ...) -> UMat: ...
5900
5961
 
5901
5962
  @_typing.overload
5902
- def mean(src: cv2.typing.MatLike, mask: cv2.typing.MatLike | None = ...) -> cv2.typing.Scalar: ...
5963
+ def mean(src: cv2.typing.MatLike, mask: cv2.typing.MatLike | None = ...) -> tuple[float, float, float, float]: ...
5903
5964
  @_typing.overload
5904
- def mean(src: UMat, mask: UMat | None = ...) -> cv2.typing.Scalar: ...
5965
+ def mean(src: UMat, mask: UMat | None = ...) -> tuple[float, float, float, float]: ...
5905
5966
 
5906
5967
  @_typing.overload
5907
5968
  def meanShift(probImage: cv2.typing.MatLike, window: cv2.typing.Rect, criteria: cv2.typing.TermCriteria) -> tuple[int, cv2.typing.Rect]: ...
@@ -5938,6 +5999,11 @@ def minEnclosingCircle(points: cv2.typing.MatLike) -> tuple[cv2.typing.Point2f,
5938
5999
  @_typing.overload
5939
6000
  def minEnclosingCircle(points: UMat) -> tuple[cv2.typing.Point2f, float]: ...
5940
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
+
5941
6007
  @_typing.overload
5942
6008
  def minEnclosingTriangle(points: cv2.typing.MatLike, triangle: cv2.typing.MatLike | None = ...) -> tuple[float, cv2.typing.MatLike]: ...
5943
6009
  @_typing.overload
@@ -6021,6 +6087,11 @@ def phaseCorrelate(src1: cv2.typing.MatLike, src2: cv2.typing.MatLike, window: c
6021
6087
  @_typing.overload
6022
6088
  def phaseCorrelate(src1: UMat, src2: UMat, window: UMat | None = ...) -> tuple[cv2.typing.Point2d, float]: ...
6023
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
+
6024
6095
  @_typing.overload
6025
6096
  def pointPolygonTest(contour: cv2.typing.MatLike, pt: cv2.typing.Point2f, measureDist: bool) -> float: ...
6026
6097
  @_typing.overload
@@ -6049,9 +6120,9 @@ def preCornerDetect(src: cv2.typing.MatLike, ksize: int, dst: cv2.typing.MatLike
6049
6120
  def preCornerDetect(src: UMat, ksize: int, dst: UMat | None = ..., borderType: int = ...) -> UMat: ...
6050
6121
 
6051
6122
  @_typing.overload
6052
- 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]: ...
6053
6124
  @_typing.overload
6054
- 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]: ...
6055
6126
 
6056
6127
  @_typing.overload
6057
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: ...
@@ -6212,8 +6283,6 @@ def setIdentity(mtx: cv2.typing.MatLike, s: cv2.typing.Scalar = ...) -> cv2.typi
6212
6283
  @_typing.overload
6213
6284
  def setIdentity(mtx: UMat, s: cv2.typing.Scalar = ...) -> UMat: ...
6214
6285
 
6215
- def setLogLevel(level: int) -> int: ...
6216
-
6217
6286
  def setNumThreads(nthreads: int) -> None: ...
6218
6287
 
6219
6288
  def setRNGSeed(seed: int) -> None: ...
@@ -6252,38 +6321,38 @@ def solveLP(Func: cv2.typing.MatLike, Constr: cv2.typing.MatLike, z: cv2.typing.
6252
6321
  def solveLP(Func: UMat, Constr: UMat, z: UMat | None = ...) -> tuple[int, UMat]: ...
6253
6322
 
6254
6323
  @_typing.overload
6255
- 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]]: ...
6256
6325
  @_typing.overload
6257
- 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]]: ...
6258
6327
 
6259
6328
  @_typing.overload
6260
- 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]: ...
6261
6330
  @_typing.overload
6262
- 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]: ...
6263
6332
 
6264
6333
  @_typing.overload
6265
- 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]: ...
6266
6335
  @_typing.overload
6267
- 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]: ...
6268
6337
 
6269
6338
  @_typing.overload
6270
- 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]: ...
6271
6340
  @_typing.overload
6272
- 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]: ...
6273
6342
  @_typing.overload
6274
- 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]: ...
6275
6344
  @_typing.overload
6276
- 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]: ...
6277
6346
 
6278
6347
  @_typing.overload
6279
- 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]: ...
6280
6349
  @_typing.overload
6281
- 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]: ...
6282
6351
 
6283
6352
  @_typing.overload
6284
- 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]: ...
6285
6354
  @_typing.overload
6286
- 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]: ...
6287
6356
 
6288
6357
  @_typing.overload
6289
6358
  def solvePoly(coeffs: cv2.typing.MatLike, roots: cv2.typing.MatLike | None = ..., maxIters: int = ...) -> tuple[float, cv2.typing.MatLike]: ...
@@ -6362,9 +6431,9 @@ def subtract(src1: cv2.typing.MatLike, src2: cv2.typing.MatLike, dst: cv2.typing
6362
6431
  def subtract(src1: UMat, src2: UMat, dst: UMat | None = ..., mask: UMat | None = ..., dtype: int = ...) -> UMat: ...
6363
6432
 
6364
6433
  @_typing.overload
6365
- def sumElems(src: cv2.typing.MatLike) -> cv2.typing.Scalar: ...
6434
+ def sumElems(src: cv2.typing.MatLike) -> tuple[float, float, float, float]: ...
6366
6435
  @_typing.overload
6367
- def sumElems(src: UMat) -> cv2.typing.Scalar: ...
6436
+ def sumElems(src: UMat) -> tuple[float, float, float, float]: ...
6368
6437
 
6369
6438
  @_typing.overload
6370
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: ...
@@ -6382,9 +6451,9 @@ def thresholdWithMask(src: cv2.typing.MatLike, dst: cv2.typing.MatLike, mask: cv
6382
6451
  def thresholdWithMask(src: UMat, dst: UMat, mask: UMat, thresh: float, maxval: float, type: int) -> tuple[float, UMat]: ...
6383
6452
 
6384
6453
  @_typing.overload
6385
- def trace(mtx: cv2.typing.MatLike) -> cv2.typing.Scalar: ...
6454
+ def trace(mtx: cv2.typing.MatLike) -> tuple[float, float, float, float]: ...
6386
6455
  @_typing.overload
6387
- def trace(mtx: UMat) -> cv2.typing.Scalar: ...
6456
+ def trace(mtx: UMat) -> tuple[float, float, float, float]: ...
6388
6457
 
6389
6458
  @_typing.overload
6390
6459
  def transform(src: cv2.typing.MatLike, m: cv2.typing.MatLike, dst: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
@@ -6407,9 +6476,9 @@ def triangulatePoints(projMatr1: cv2.typing.MatLike, projMatr2: cv2.typing.MatLi
6407
6476
  def triangulatePoints(projMatr1: UMat, projMatr2: UMat, projPoints1: UMat, projPoints2: UMat, points4D: UMat | None = ...) -> UMat: ...
6408
6477
 
6409
6478
  @_typing.overload
6410
- 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: ...
6411
6480
  @_typing.overload
6412
- 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: ...
6413
6482
 
6414
6483
  @_typing.overload
6415
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: ...
@@ -6417,9 +6486,9 @@ def undistortImagePoints(src: cv2.typing.MatLike, cameraMatrix: cv2.typing.MatLi
6417
6486
  def undistortImagePoints(src: UMat, cameraMatrix: UMat, distCoeffs: UMat, dst: UMat | None = ..., arg1: cv2.typing.TermCriteria = ...) -> UMat: ...
6418
6487
 
6419
6488
  @_typing.overload
6420
- 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: ...
6421
6490
  @_typing.overload
6422
- 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: ...
6423
6492
 
6424
6493
  @_typing.overload
6425
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: ...