How to take tracked object info to put it in database? Nvidia Deepstream 4 (python)

I’m trying to fetch data from the Nvidia Deepstream object on Python, my project looks like But I don’t understand how to get this data (vehicle color, type). Because then I want to put them into database.

Thanks in advance for any help.

Refer to metadata structure. The hierarchy is NvDsObjectMeta->classifier meta->label meta