How to save cropped objects using deepstream-5.1 and convert to 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.