---
title: "opencv-python 5.1.0.95 Breaking Changes on PyPI | Since.dev"
description: "What each opencv-python release removed, renamed or changed: 43 breaking changes in 6 versions on PyPI, each with its source."
canonical_url: https://since.dev/packages/pypi/opencv-python
last_updated: 2026-12-04
---

# 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

Latest version `5.1.0.95`, released November 17, 2026. [Source repository](https://github.com/opencv/opencv-python)

Packages on PyPI run on Python. [Python end of life dates](https://since.dev/calendar/python.md).

- From [4.13.0.90](#v-4-13-0-90) to [5.1.0.95](#v-5-1-0-95): 8 breaking changes in 2 versions.
- From [4.9.0.80](#v-4-9-0-80) to [5.1.0.95](#v-5-1-0-95): 40 breaking changes in 5 versions.

## opencv-python 5.1.0.95 breaking changes

opencv-python 5.1.0.95, released November 17, 2026: 4 breaking changes.

- **Signature changed** `cv2.dnn.Layer`  

Was class Layer(cv2.Algorithm); now class Layer(LayerInfo). [pypi.org](https://pypi.org/project/opencv-python/5.1.0.95/)
- **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](https://pypi.org/project/opencv-python/5.1.0.95/)
- **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](https://pypi.org/project/opencv-python/5.1.0.95/)
- **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](https://pypi.org/project/opencv-python/5.1.0.95/)

## opencv-python 5.0.0.93 breaking changes

opencv-python 5.0.0.93, released July 2, 2026: 4 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](https://pypi.org/project/opencv-python/5.0.0.93/)
- **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](https://pypi.org/project/opencv-python/5.0.0.93/)
- **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](https://pypi.org/project/opencv-python/5.0.0.93/)
- **Signature changed** `cv2.dnn.Image2BlobParams.datalayout`  

Was datalayout: DataLayout; now datalayout: cv2.DataLayout. [pypi.org](https://pypi.org/project/opencv-python/5.0.0.93/)

## opencv-python 4.13.0.90 breaking changes

opencv-python 4.13.0.90, released January 18, 2026: 30 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](https://pypi.org/project/opencv-python/4.13.0.90/)
- **Signature changed** `cv2.AlignExposures.save`  

Was def save(self, filename: str) -> None; now def save(self, filename: str | os.PathLike\[str\]) -> None. [pypi.org](https://pypi.org/project/opencv-python/4.13.0.90/)
- **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](https://pypi.org/project/opencv-python/4.13.0.90/)
- **Signature changed** `cv2.CascadeClassifier.load`  

Was def load(self, filename: str) -> bool; now def load(self, filename: str | os.PathLike\[str\]) -> bool. [pypi.org](https://pypi.org/project/opencv-python/4.13.0.90/)
- **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](https://pypi.org/project/opencv-python/4.13.0.90/)
- **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](https://pypi.org/project/opencv-python/4.13.0.90/)
- **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](https://pypi.org/project/opencv-python/4.13.0.90/)
- **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](https://pypi.org/project/opencv-python/4.13.0.90/)
- **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](https://pypi.org/project/opencv-python/4.13.0.90/)
- **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](https://pypi.org/project/opencv-python/4.13.0.90/)

And 20 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## opencv-python 4.12.0.88 breaking changes

opencv-python 4.12.0.88, released July 7, 2025: 1 breaking change.

- **Signature changed** `cv2.Feature2D`  

Was class Feature2D; now class Feature2D(Algorithm). [pypi.org](https://pypi.org/project/opencv-python/4.12.0.88/)

## opencv-python 4.10.0.82 breaking changes

opencv-python 4.10.0.82, released June 3, 2024: 1 breaking change.

- **Signature changed** `cv2.mat_wrapper.Mat`  

Was class Mat(\_NumPyArrayGeneric); now class Mat(\_NumPyArrayNumeric). [pypi.org](https://pypi.org/project/opencv-python/4.10.0.82/)

## opencv-python 4.9.0.80 breaking changes

opencv-python 4.9.0.80, released December 31, 2023: 3 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](https://pypi.org/project/opencv-python/4.9.0.80/)
- **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](https://pypi.org/project/opencv-python/4.9.0.80/)
- **Signature changed** `cv2.mat_wrapper.Mat`  

Was class Mat(np.ndarray); now class Mat(\_NumPyArrayGeneric). [pypi.org](https://pypi.org/project/opencv-python/4.9.0.80/)

## Related packages

- [opencv-python-headless](https://since.dev/packages/pypi/opencv-python-headless.md)
- [opencv-contrib-python](https://since.dev/packages/pypi/opencv-contrib-python.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
