Use gst_buffer_add_nvds_meta() function in python

You can also refer to our FAQ to customize your own metadata.