opencv-python breaking changes
opencv-python 5.1.0.95 (November 17, 2026) is its newest release with breaking changes, 4 of them. The first: Signature changed cv2.dnn.Layer. Every breaking API change we have recorded in opencv-python on PyPI: 43 breaking changes in 6 versions. Below, its 6 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 5.1.0.95, released November 17, 2026. Source repository
Packages on PyPI run on Python. Python end of life dates.
- From 4.13.0.90 to 5.1.0.95: 8 breaking changes in 2 versions.
- From 4.9.0.80 to 5.1.0.95: 40 breaking changes in 5 versions.
opencv-python 5.1.0.95 breaking changes
- Signature changed
cv2.dnn.Layer
Was class Layer(cv2.Algorithm); now class Layer(LayerInfo). pypi.org - Signature changed
cv2.LightGlueMatcher.create
Was @classmethod def create(cls, modelPath: str, scoreThreshold: float = ..., backend: int = ..., target: int = ...) -> LightGlueMatcher; now @classmethod def create(cls, modelPath: str, scoreThreshold: float = ..., backend: int =... pypi.org - Signature changed
cv2.LightGlueMatcher.createFromMemory
Was @classmethod def createFromMemory(cls, modelData: numpy.ndarray[_typing.Any, numpy.dtype[numpy.uint8]], scoreThreshold: float = ..., backend: int = ..., target: int = ...) -> LightGlueMatcher; now @classmethod def createFromMemory(cls... pypi.org - Signature changed
cv2.setMouseCallback
Was def setMouseCallback(windowName: str, onMouse: _typing.Callable[[int, int, int, int, _typing.Any | None], None], param: _typing.Any | None = ...) -> None; now def setMouseCallback(window_name: str, on_mouse: _typing.Callable[[int, int... pypi.org
opencv-python 5.0.0.93 breaking changes
- Signature changed
cv2.createLineSegmentDetector
Was def createLineSegmentDetector(refine: int = ..., scale: float = ..., sigma_scale: float = ..., quant: float = ..., ang_th: float = ..., log_eps: float = ..., density_th: float = ..., n_bins: int = ...) -> LineSegmentDetector; now def... pypi.org - Signature changed
cv2.detail.BestOf2NearestMatcher.__init__
Was def __init__(self, try_use_gpu: bool = ..., match_conf: float = ..., num_matches_thresh1: int = ..., num_matches_thresh2: int = ..., matches_confindece_thresh: float = ...) -> None; now def __init__(self, try_use_gpu: bool =... pypi.org - Signature changed
cv2.detail.BestOf2NearestMatcher.create
Was @classmethod def create(cls, try_use_gpu: bool = ..., match_conf: float = ..., num_matches_thresh1: int = ..., num_matches_thresh2: int = ..., matches_confindece_thresh: float = ...) -> BestOf2NearestMatcher; now @classmethod def... pypi.org - Signature changed
cv2.dnn.Image2BlobParams.datalayout
Was datalayout: DataLayout; now datalayout: cv2.DataLayout. pypi.org
opencv-python 4.13.0.90 breaking changes
- Signature changed
cv2.Algorithm.save
Was def save(self, filename: str) -> None; now def save(self, filename: str | os.PathLike[str]) -> None. pypi.org - Signature changed
cv2.AlignExposures.save
Was def save(self, filename: str) -> None; now def save(self, filename: str | os.PathLike[str]) -> None. pypi.org - Signature changed
cv2.aruco.Dictionary.getBitsFromByteList
Was @staticmethod def getBitsFromByteList(byteList: cv2.typing.MatLike, markerSize: int) -> cv2.typing.MatLike; now @staticmethod def getBitsFromByteList(byteList: cv2.typing.MatLike, markerSize: int, rotationId: int = ...) ->... pypi.org - Signature changed
cv2.CascadeClassifier.load
Was def load(self, filename: str) -> bool; now def load(self, filename: str | os.PathLike[str]) -> bool. pypi.org - Signature changed
cv2.dnn.Net.dumpToFile
Was def dumpToFile(self, path: str) -> None; now def dumpToFile(self, path: str | os.PathLike[str]) -> None. pypi.org - Signature changed
cv2.dnn.Net.dumpToPbtxt
Was def dumpToPbtxt(self, path: str) -> None; now def dumpToPbtxt(self, path: str | os.PathLike[str]) -> None. pypi.org - Signature changed
cv2.dnn.readNetFromTorch
Was def readNetFromTorch(model: str, isBinary: bool = ..., evaluate: bool = ...) -> Net; now def readNetFromTorch(model: str | os.PathLike[str], isBinary: bool = ..., evaluate: bool = ...) -> Net. pypi.org - Signature changed
cv2.dnn.readTensorFromONNX
Was def readTensorFromONNX(path: str) -> cv2.typing.MatLike; now def readTensorFromONNX(path: str | os.PathLike[str]) -> cv2.typing.MatLike. pypi.org - Signature changed
cv2.dnn.readTorchBlob
Was def readTorchBlob(filename: str, isBinary: bool = ...) -> cv2.typing.MatLike; now def readTorchBlob(filename: str | os.PathLike[str], isBinary: bool = ...) -> cv2.typing.MatLike. pypi.org - Signature changed
cv2.dnn.shrinkCaffeModel
Was def shrinkCaffeModel(src: str, dst: str, layersTypes: _typing.Sequence[str] = ...) -> None; now def shrinkCaffeModel(src: str | os.PathLike[str], dst: str | os.PathLike[str], layersTypes: _typing.Sequence[str] = ...) -> None. pypi.org
And 20 more in this version. Sign up to see every change
opencv-python 4.12.0.88 breaking changes
- Signature changed
cv2.Feature2D
Was class Feature2D; now class Feature2D(Algorithm). pypi.org
opencv-python 4.10.0.82 breaking changes
- Signature changed
cv2.mat_wrapper.Mat
Was class Mat(_NumPyArrayGeneric); now class Mat(_NumPyArrayNumeric). pypi.org
opencv-python 4.9.0.80 breaking changes
- Signature changed
cv2.AKAZE.create
Was @classmethod def create(cls, descriptor_type: AKAZE_DescriptorType = ..., descriptor_size: int = ..., descriptor_channels: int = ..., threshold: float = ..., nOctaves: int = ..., nOctaveLayers: int = ..., diffusivity... pypi.org - Signature changed
cv2.BOWImgDescriptorExtractor.__init__
Was def __init__(self, dextractor: cv2.typing.DescriptorExtractor, dmatcher: DescriptorMatcher) -> None; now def __init__(self, dextractor: Feature2D, dmatcher: DescriptorMatcher) -> None. pypi.org - Signature changed
cv2.mat_wrapper.Mat
Was class Mat(np.ndarray); now class Mat(_NumPyArrayGeneric). pypi.org
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.