Hi, I’m looking for using the VPI Optical Flow LK Tracker. I looked at the example on the site and I have some questions.
Beforehand I’ll specify that what I need is that the tracker will work asynchronously and without needing to download/upload data on the GPU. I’m working on a Linux 22 environment.
First of all, is there an easier alternative to install the vpi2-dev package? The method I used thus far is to install via repository for Jetson, however I’m working on a standard PC and the installation requires me to change system files afterwards as it is designed for CUDA version 11.4.
Will the 4.5x speedup compared to openCV outlined for this algorithm will still apply on a PC?
Will there be support for BGR image for the algorithm? It seems to only support greyscale right now, while openCV supports full color.
Does the algorithm work asynchronously (ie, the function vpiSubmitOpticalFlowPyrLK)?
Is VPIImage the same format as opencv gpuMat (rows, cols, channels in order with a pitch between rows)?
It is unclear to me how to access data in VPIArray, Do you need to use VPIArrayDataRec to create a data pointer to it? Is the array just usual device memory when using cuda backend?
Now, the documentation for vpiArrayCreateWrapper itself is confusing as it lists VPI_ARRAY_BUFFER_CUDA_AOS as a legitimate type but the documentation itself specifies wrapping host memory, and running the code with regular cv::Mat works. The question is whether is that I’m missing something and if I’m not whether is it possible to make a VPIArray wrapper to device memory.