Encode Image in buffer to Base64

Hi,

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

I am altering the deepstream-test2 application with secondary classifiers for my project using face detection model and related secondary models like age,gender etc.

For the image cropping part I’ve referred deepstream-image-meta-test to crop faces and stored in a directory. The cropping of images is successful.
image

I want to convert the faces(images) in buffer to base64 before writing them to the disk.

How to encode image to base64 in deepstream?

Please help.

Deepstream is only a SDK to help you to inference videos/images/audios. The binary to text encoding has nothing to do with deepstream and Nvidia platform. Base64 - Wikipedia

You can use any way to do the base64 encoding, it will not conflict to deepstream. There will be a lot resources when you search in Google.