How to add custom data in test5

I thought you rewrote analytic plugin, that’s why i suggest above.
lines and text from analytic plugin will fill to frame meta data NvDsDisplayMeta, so you can add probe on osd sink pad to iterate through each frame meta data, to modify the lines and text as you want.