I am trying to integrate a fairly complex image pre-processing algorithm into DS (prior to detection) and would like to make sure I’m doing everything the right way. The algorithm is implemented in C++ with OpenCV support and is aimed to run on a standard video (each image is processed independently).
To improve run-time performance of the algorithm, I’ve used both caching allocators for CPU and GPU memory and registered memory for the interface between the CPU and GPU. These actions happen once at the beginning of the algorithm and take quite a bit of time (since the application is video the first frame is negligible).
Ideally I would like to create a custom plugin for DS but I’m not sure how to integrate these parts into the plugin.
Any help will be appreciated.