updated publishing 3 messages per object detected