Hi Dane, Thank you for the information. I follow the steps to install cuda filter then modify get_converted_mat() code and Makefile accordingly and compile the code. I got the following error message:
paul@agx:~/vidar/gst-dsexample$ make
-fPIC -DDS_VERSION=“5.0.0” -I /usr/local/cuda-10.2/include -I /opt/nvidia/deepstream/deepstream-5.0/sources/includes -I /usr/include/opencv4 -pthread -I/usr/include/gstreamer-1.0 -I/usr/include/orc-0.4 -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include
g++ -c -o gstdsexample.o -fPIC -DDS_VERSION="5.0.0" -I /usr/local/cuda-10.2/include -I /opt/nvidia/deepstream/deepstream-5.0/sources/includes -I /usr/include/opencv4 -pthread -I/usr/include/gstreamer-1.0 -I/usr/include/orc-0.4 -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include gstdsexample.cpp
In file included from gstdsexample.cpp:15:0:
gstdsexample.h:39:10: fatal error: opencv2/cudafilters.hpp: No such file or directory
include <opencv2/cudafilters.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Makefile:79: recipe for target ‘gstdsexample.o’ failed
make: *** [gstdsexample.o] Error 1
I found the cudafilters.hpp in my install folder (~/Documents/cuda_python/install/opencv_contrib-4.3.0/modules/cudafilters/include/opencv2/cudafilters.hpp). This is because I copy install_opencv4.3.0_Jetson.sh into my ~/Documents/cuda_python directory and mkdir install, then say:
./install_opencv4.3.0_Jetson.sh install
after 90 minutes, everything compiled without error in my AGX Xavier.
Did I specify the install folder incorrectly? What installation folder I should specify?
I also notice in the install_opencv4.3.0_Jetson.sh, there are 3 lines been commented out:
sudo make install
echo ‘export PYTHONPATH=$PYTHONPATH:’$PWD’/python_loader/’ >> ~/.bashrc
#source ~/.bashrc
are these correct? or we need to uncomment out these 3 lines to install all the files to proper directory?
or I missing something else?
Please advise. Thanks a lot for your help.