Installing cuda support version of Opencv on Jetson Xavier

I need to install latest version of Opencv from source for jetson xavier, I wonder if you have any documentation for that? I know it can sometimes get tricky to set up the opencv with Cuda support. I would appreciate if you share any documentation that actually work.

There is nothing tricky in building OpenCV for the Jetson. As a matter of fact it’s really straightforward, as CUDA is already set up.

So download opencv and opencv-contrib and install the prerequisites.
I prefer to use cmake-qt-gui to configure, as there are several parameters to set.

Then, enable the extra modules, the WITH_… switches you need, configure, generate and build and install.

That’s all.