How to save cropped objects using deepstream-5.1 and convert to base64

Please provide complete information as applicable to your setup.

• Hardware Platform:Jetson TX2
• DeepStream Version: 5.1
• JetPack Version:4.5.1

I am trying to refer deepstream_image_meta_test for saving image,

In deepstream_test2… I need to crop the object and save in local disk and need to convert to base64 and send to redis

Im trying to use this function to get the cropped objects data

static GstPadProbeReturn
pgie_src_pad_buffer_probe (GstPad * pad, GstPadProbeInfo * info, gpointer ctx)

Can anyone help me to do this

Thank you

What kind of help do you need? You have refer to the right sample.

I want to get the frame and need to convert as a base64…

You can access the frame buffer by the method mentioned in DeepStream SDK FAQ - #17 by mchi

But you need to crop the object by yourself.

@Fiona.Chen
I need to write a frame as a jpg… for that in CPP we can use opencv … but in C language which one is used to write the jpg images

deepstream-image-meta-test sample save the object as jpg images. Please refer to this sample.

Hi,

I need to convert the cropped objects to bas64

can anyone help me on this

@RajeshMuthuswamy There will be a lot of resources of base64 encoding in Google. It has nothing to do with deepstream or even with any Nvidia platform.