Please provide complete information as applicable to your setup.
• Hardware Platform (Jetson / GPU) - GPU
• DeepStream Version - 6.0.1
• Issue Type( questions, new requirements, bugs) - new requirements
• Requirement details
I want to save a detected object and also the whole scene of that detection. I’m using the same objMeta from the frameMeta->obj_meta_list. I noticed my object image also saved in higher resolution with extra padding. Its like I can’t use the same object meta to save two images. Is there a work around for this.
I use the following source code.
NvDsObjEncUsrArgs userData = {false};
/* To be set by user */
userData.saveImg = false;
userData.attachUsrMeta = true;
/* Preset */
userData.objNum = objMeta->object_id;
/* Quality */
userData.quality = 95;
/*Main Function Call */
nvds_obj_enc_process(objEncContext, &userData, ipSurf, objMeta, frameMeta);
NvDsObjEncUsrArgs userData1 = {false};
userData1.saveImg = false;
userData1.attachUsrMeta = true;
userData1.scaleImg = true;
userData1.scaledWidth = 960;
userData1.scaledHeight = 540;
userData1.objNum = objMeta->object_id;
objMeta->rect_params.width = frameMeta->source_frame_width;
objMeta->rect_params.height = frameMeta->source_frame_height;
objMeta->rect_params.top = 0.0f ;
objMeta->rect_params.left = 0.0f ;
userData1.quality = 95;
nvds_obj_enc_process(objEncContext, &userData1, ipSurf, objMeta, frameMeta);