How to get each images's dected information when use GST-NVMSGCONV?

I have two cameras when use test4.and I get dected person’s count and found the two camera’s number mixed ,the log like this:

Frame number=71112 Person Count =2

In fact,each camera has only one person,so,how can I split them ?

It is the logic in osd_sink_pad_buffer_probe(). It accumulates vehicle_count and person_count. You may customize it into your usecase.