The OpenCV 4.12 release doesn't contain the fix for CUDA 12.9 https://github.com/opencv/opencv/commit/e2d87defd10d415c29120c3b1c07ac7364ba12f2 add a version with the fix backportet