I have build opencv from source with cuda for fast processing.
Version
OPENCV : 4.5.3
CUDA : 11.4
I converted yolov5.pt file to onnx from this link
I have read onnx file with module readNetFromONNX
C++ code compiled successfully but when inferencing, it throw error.
Error:
terminate called after throwing an instance of ‘cv::Exception’
(-215:Assertion failed) 0 in function ‘operator()’