I’m working on a project using the Jetson Orin platform with JetPack 5.0.2 and VPI version 2.1.6 installed. I’m encountering an issue when trying to create a vpiImage
from a cv::Mat
object that is downloaded from a cv::cuda::GpuMat
. The error message I receive is:
Failed to create yuyv_VPI: VPI_ERROR_INTERNAL:(Unsupported NvMedia core API version 1.16, expected version 1.15)
Here is the relevant code snippet:
cv::cuda::GpuMat gpu_image(egl_frame.height, egl_frame.width, CV_8UC2, egl_frame.frame.pPitch[0], egl_frame.pitch);
cv::Mat cv_yuyv;
gpu_image.download(cv_yuyv);
VPIStatus status = vpiImageCreateWrapperOpenCVMat(cv_yuyv, VPI_IMAGE_FORMAT_YUYV, backend_flags, &yuyv_VPI);
if (status != VPI_SUCCESS) {
char buffer[VPI_MAX_STATUS_MESSAGE_LENGTH];
vpiGetLastStatusMessage(buffer, sizeof(buffer));
AERROR << "Failed to create yuyv_VPI: " << vpiStatusGetName(status) << ":(" << buffer << ")";
return GST_FLOW_ERROR;
}