How to save the complete frame with bounding boxes?

Please provide complete information as applicable to your setup.

**• Hardware Platform (Jetson / GPU)**jetson nx
• DeepStream Version6.0
• JetPack Version (valid for Jetson only)
• TensorRT Version
• NVIDIA GPU Driver Version (valid for GPU only)
**• Issue Type( questions, new requirements, bugs)**question
I can run deepstream-image-meta-test example.
But the screenshot is an image of each target.The existing effects are as follows:
4
I want to save image with bounding boxes. How should I modify the program?The desired effect is shown in the figure:



Below function will encode the obj. Seems you can make one obj for the whole frame and send to encoder.

    nvds_obj_enc_process (ctx, &userData, ip_surf, obj_meta, frame_meta);

**We used this function in deepstream-image-meta-test example,and the effect of the screenshot is:
test12
test16

And this function is encapsulated, we can’t refer to it and modify it, can you help me give a function for frame encoding. Thank you so much.**

Here is the doc of the API.

https://docs.nvidia.com/metropolis/deepstream/sdk-api/group__ee__object__encoder.html#ga83f212f9db247092c2b51b6f239f7482

I want to cut the big picture, not just the target. So you mean let us refer to this source code to modify it?

Yes. you get the object as you send obj_meta to the encoder. Please change the obj_meta to the meta data which contain one bigger BBox which cover the whole picture.

nvds_obj_enc_process (ctx, &userData, ip_surf, obj_meta, frame_meta);

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.