vvas_xoptflow¶
Optical flow is one of the key functions used in many image processing and computer vision applications like object tracking, motion based segmentation, depth estimation, stitching and video frame rate conversion etc. Optical flow is estimated using previous and current frame pixel information.
For optical flow estimation this plug-in uses hardware accelerator of xfopencv
non-pyramid optical flow. This non-pyramid optical flow function takes current and previous frame as input and generates two floating point buffers of x and y direction displacements. Optical flow plug-in attaches these displacement buffers as gstvvasofmeta.
For implementation details, refer to vvas_xoptflow source code
Prerequisite¶
This plug-in uses dense_non_pyr_of_accel kernel. Make sure your xclbin has this kernel.
Input and Output¶
Accepts buffer of NV12 format and generates two metadata buffers of type float and each size equal to the size of frame. For details about the meta data structure, refer to VVAS Opticalflow Metadata
Plug-in Properties¶
Table 6: vvas_xoptflow Plug-in Properties
Property Name |
Type |
Range |
Default |
Description |
---|---|---|---|---|
xclbin-location |
String |
NA |
./binary_container_1 .xclbin |
location of xclbin |
dev-idx |
Integer |
0 to 31 |
0 |
device index |