i re-compile opencv + opencv_contrib 4.5.1, with CUDA on, then i install *.so into /usr/local/, everything is ok.
BUT! my c++ program use videocapture to open a rtsp url stream, like this:
the c++ code:
then i get the ERROR, the process never go , it is hang!
what is the problem? please help!