mirror of
https://github.com/opencv/opencv.git
synced 2026-07-21 19:33:03 +04:00
13eba3d8429f641b086376a6998a3df3e5245637
The first-class-language OpenCV CMake config (OpenCVConfig-CUDALanguage.cmake.in) pinned the consumer's CUDA Toolkit to the exact patch version OpenCV was built with (e.g. 12.3.107), via find_package(CUDAToolkit ... EXACT) and a full VERSION_EQUAL check. Patch versions change frequently while the CUDA runtime API is stable within a minor release, so this forced needless rebuilds and could FATAL_ERROR even for a matching toolkit. Per the core team's direction on #26966, the change lives in the installed config template rather than the build scripts, and is controlled by a consumer-set variable: - Default: match major.minor only (fixes the reported patch-pinning bug). - OPENCV_STRONG_CUDA_VERSION_CHECK: restore the exact full-version match. The build-time detection (OpenCVDetectCUDALanguage.cmake) is left untouched, so OpenCV_CUDA_VERSION still records the full version for diagnostics. Fixes #26965
OpenCV: Open Source Computer Vision Library
Resources
- Homepage: https://opencv.org
- Courses: https://opencv.org/courses
- Docs: https://docs.opencv.org/4.x/
- Q&A forum: https://forum.opencv.org
- previous forum (read only): http://answers.opencv.org
- Issue tracking: https://github.com/opencv/opencv/issues
- Additional OpenCV functionality: https://github.com/opencv/opencv_contrib
- Donate to OpenCV: https://opencv.org/support/
Contributing
Please read the contribution guidelines before starting work on a pull request.
Summary of the guidelines:
- One pull request per issue;
- Choose the right base branch;
- Include tests and documentation;
- Clean up "oops" commits before submitting;
- Follow the coding style guide.
Additional Resources
- Submit your OpenCV-based project for inclusion in Community Friday on opencv.org
- Subscribe to the OpenCV YouTube Channel featuring OpenCV Live, an hour-long streaming show
- Follow OpenCV on LinkedIn for daily posts showing the state-of-the-art in computer vision & AI
- Apply to be an OpenCV Volunteer to help organize events and online campaigns as well as amplify them
- Follow OpenCV on Mastodon in the Fediverse
- Follow OpenCV on Twitter
- OpenCV.ai: Computer Vision and AI development services from the OpenCV team.
Description
Languages
C++
87.6%
C
3.2%
Python
2.9%
CMake
2%
Java
1.5%
Other
2.6%