learnopencv
learnopencv copied to clipboard
opencv2/cudawarping.hpp no such file or directory
I'm using Ubuntu 20. I installed OpenCV 4.5 and TensorRT 6.0.1.5 and did
sudo apt-get install libopencv-dev
I am trying to follow the steps in https://github.com/spmallick/learnopencv/tree/master/PyTorch-ONNX-TensorRT-CPP
I was able to do
mkdir build
cd build
cmake -DOpenCV_DIR=[path-to-opencv-build] -DTensorRT_DIR=[path-to-tensorrt] ..
but when I tried `make -j8', I get
trt_sample.cpp:10 fatal error: opencv2/cudawarping.hpp no such file or directory
any help?
I got the same problem. Did you solve it?
compile opencv with cuda
Solved the problem after building opencv with opencv-contrib using cmake.