Please provide complete information as applicable to your setup.
• Hardware Platform (Jetson / GPU)
• DeepStream Version 6.2
• JetPack Version (valid for Jetson only)
• TensorRT Version
• NVIDIA GPU Driver Version (valid for GPU only)
• Issue Type( questions, new requirements, bugs)
• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)
Hello, I applied the roi in the preprocess as follows
roi-params-src-0=0;0;1920;1080;0;200;640;640;640;200;640;640;1280;200;640;640
NvDsMetaList *l_user_meta = NULL;
NvDsUserMeta *user_meta = NULL;
NvDsDisplayMeta *display_meta = NULL;
for (l_user_meta = pBatchMeta->batch_user_meta_list; l_user_meta != NULL;
l_user_meta = l_user_meta->next)
{
user_meta = (NvDsUserMeta *)(l_user_meta->data);
if (user_meta->base_meta.meta_type == NVDS_PREPROCESS_BATCH_META)
{
GstNvDsPreProcessBatchMeta *preprocess_batchmeta =
(GstNvDsPreProcessBatchMeta *)(user_meta->user_meta_data);
guint roi_cnt = 0;
for (auto &roi_meta : preprocess_batchmeta->roi_vector)
{
NvDsMetaList *l_user = NULL;
NvDsMetaList* pObjectMetaList = roi_meta.frame_meta->obj_meta_list;
// For each detected object in the frame.
while (pObjectMetaList)
{
// Check for valid object data
// NvDsObjectMeta* pObjectMeta = (NvDsObjectMeta*)(pObjectMetaList->data);
// std::cout << "image_id: " << roi_meta.frame_meta->frame_num << std::endl;
// std::cout << "bbox: {" << pObjectMeta->rect_params.left << ", "
// << pObjectMeta->rect_params.top << ", "
// << pObjectMeta->rect_params.width << ", "
// << pObjectMeta->rect_params.height << "}" << std::endl;
// std::cout << "score: " << pObjectMeta->confidence << std::endl;
// std::cout << "category_id: " << pObjectMeta->class_id << std::endl;
pObjectMetaList = pObjectMetaList->next;
}
It seems to refer to the same pointer in any Roi meta.I want to know the results obtained from Roi 0 ,1,2,3 separately, how can I do that?