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

# opencv-python-headless breaking changes

opencv-python-headless 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-headless on PyPI: 8 breaking changes in 2 versions. Below, its 2 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 [5.0.0.93](#v-5-0-0-93) to [5.1.0.95](#v-5-1-0-95): 4 breaking changes in 1 version.

## opencv-python-headless 5.1.0.95 breaking changes

opencv-python-headless 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-headless/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-headless/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-headless/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-headless/5.1.0.95/)

## opencv-python-headless 5.0.0.93 breaking changes

opencv-python-headless 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-headless/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-headless/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-headless/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-headless/5.0.0.93/)

## Related packages

- [opencv-python](https://since.dev/packages/pypi/opencv-python.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.
