Skip to content

Upgrade OpenCV to 4.14.0 - #2234

Merged
shimat merged 2 commits into
shimat:4.xfrom
lwqwag:upgrade/opencv-4.14.0
Nov 27, 2026
Merged

shimat merged 2 commits into
shimat:4.xfrom
lwqwag:upgrade/opencv-4.14.0

Conversation

@lwqwag

@lwqwag lwqwag commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Summary

Upgrades the 4.x line from OpenCV 4.13.0 to OpenCV 4.14.0, following docs/release-process.md.

  • Bump opencv and opencv_contrib submodules to the 4.14.0 tag
  • Update OPENCV_VERSION to 4.14.0 in all build workflows (windows, manylinux, linux-arm64, macos, wasm, docker-test/deploy)
  • Rename FFmpeg plugin DLL references opencv_videoio_ffmpeg4130_64.dll → opencv_videoio_ffmpeg4140_64.dll (nuget/OpenCvSharp4.runtime.win.props, nuget/OpenCvSharp4.runtime.win.csproj, test csproj)
  • Rename Docker image directories to ubuntu24-dotnet10-opencv4.14.0 (full + slim) and update workflow references
  • Update target OpenCV version in root README.md and nuget/README.managed.md

Notes

  • AssemblyVersion/FileVersion stay at 4.0.0.0 — no bump needed for a minor OpenCV upgrade per the release process
  • Verified the 4.13.0 → 4.14.0 header diff: no wrapped public API removals (the only removals are in cudafeatures2d, which is not wrapped/built here), so no wrapper code changes are required
  • FFmpeg plugin suffix confirmed from OpenCV 4.14.0 cmake (major+minor+patch → 4140)
  • OpenCV build cache keys embed OPENCV_VERSION, so CI rebuilds native artifacts automatically

Test plan

  • windows.yml — OpenCvSharpExtern build + tests + NuGet pack (x64/arm64)
  • manylinux.yml, linux-arm64.yml, macos.yml, wasm.yml native builds
  • docker-test-ubuntu.yml full + slim image builds (includes dotnet test)
  • Verify packed NuGet version is 4.14.0.YYYYMMDD-beta

Local verification was limited to header/API diff review and reference consistency checks; the full native build and test suite run in CI.

- Bump opencv and opencv_contrib submodules to the 4.14.0 tag
- Update OPENCV_VERSION in all build workflows
- Rename FFmpeg plugin DLL references (opencv_videoio_ffmpeg4130_64 -> 4140)
- Rename Docker images to ubuntu24-dotnet10-opencv4.14.0 (full and slim)
- Update target OpenCV version in root and NuGet READMEs

AssemblyVersion/FileVersion stay at 4.0.0.0 per docs/release-process.md.
- CalibrateCamera: 4.14 defaults to the new Schur-complement calibration
  engine, improving RMS from ~6.16 to ~0.35 on the test chessboard
- FindFundamentalMat: Jacobi SVD now uses FMA, so the degenerate 8-point
  configuration returns a valid matrix on x64 (still empty on ARM64);
  accept both outcomes
- ImgHash: widen Compare tolerances for ARM64 NEON numerical drift
  (x64 values unchanged)

Verified locally on Windows x64 against a full OpenCV 4.14.0 build:
Calib3D + ImgHash suites pass (46/46).
@lwqwag

lwqwag commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

Local verification on Windows x64 (VS2026, full static OpenCV 4.14.0 build):

  • OpenCV 4.14.0 + OpenCvSharpExtern built with zero C++/C# source changes; opencv_videoio_ffmpeg4140_64.dll name confirmed.
  • Full test suite: 761 passed / 20 skipped / 7 failed.
    • 4 failures are local-environment only (Unicode filename marshaling depends on the system ANSI code page; unrelated to OpenCV version, passes in CI).
    • 3 failures are genuine 4.14 numerical behavior changes, fixed in 70f159c:
      • CalibrateCamera RMS 6.16 → 0.35: new default Schur-complement calibration engine (hence the new CALIB_DISABLE_SCHUR_COMPLEMENT flag).
      • FindFundamentalMat: Jacobi SVD now uses FMA; the degenerate 8-point config returns a valid matrix on x64 but stays empty on ARM64 → assertion now accepts both.
      • ImgHash Compare tolerances widened for ARM64 NEON drift (x64 values unchanged; matches the Linux ARM64 CI failures).
  • Calib3D + ImgHash re-run after fixes: 46/46 pass.

@shimat
shimat merged commit d8daff7 into shimat:4.x Nov 27, 2026
15 checks passed

shimat commented Nov 27, 2026

Copy link
Copy Markdown
Owner

Thank you, @lwqwag, for bringing OpenCV 4.14.0 to the 4.x branch and for tracking down the calibration and image hashing test failures. I’ve merged this into 4.x and will publish the updated NuGet packages once the release builds are ready.

@lwqwag
lwqwag deleted the upgrade/opencv-4.14.0 branch November 27, 2026 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants