Open kmsravindra opened 3 years ago
Hi @AlexeyAB
Opencv has this cuda api to capture frame (using cv::cudacodec::VideoReader) directly on GPU and even resize the image on GPU.
In yolo_console_dll.cpp, I believe the following happens to the image life cycle (wrt the place it resides if it is CPU / GPU)-
I am thinking if we can leverage this cv::cudacodec::VideoReader capability that
( everything on GPU essentially) so that we avoid the hand-off from CPU to GPU and vice-versa.
I am planning to experiment this change.
Currently the below piece of code takes *det_image as input for detection which is struct type image_t in yolo_console_dll.cpp.
*detector.detect_resized(det_image, frame_size.width, frame_size.height, evAppConfig.lowerthresh, true);**
Any guidance on
Good point! Calling @AlexeyAB.
Hi @AlexeyAB
Opencv has this cuda api to capture frame (using cv::cudacodec::VideoReader) directly on GPU and even resize the image on GPU.
In yolo_console_dll.cpp, I believe the following happens to the image life cycle (wrt the place it resides if it is CPU / GPU)-
I am thinking if we can leverage this cv::cudacodec::VideoReader capability that
( everything on GPU essentially) so that we avoid the hand-off from CPU to GPU and vice-versa.
I am planning to experiment this change.
Currently the below piece of code takes *det_image as input for detection which is struct type image_t in yolo_console_dll.cpp.
*detector.detect_resized(det_image, frame_size.width, frame_size.height, evAppConfig.lowerthresh, true);**
Any guidance on