Updating attributes of object
AnsweredHi,
I am currently exploring integration of analytics plugin to and I have trouble updating attributes of detected objects in client overlay.
I am sending one ObjectMetadataPacket with one object, this object has bounding box and name attribute with it. Everything works as expected and it is rendered in client preview:

Problem starts when I want to send delayed update of attribute for this tracked object. E.g. I want to simulate that after 100ms I send another ObjectMetadataPacket with same trackId with additonal "age" attribute.
This "age" attribute can be seen in objects tab:

but it is not updated in live video feed.
Questions:
- How can I send delayed update of additional attributes for existing tracking object that will be reflected in overlay of client ?
- Can you also please explain what is ObjectMetadataPacket::setDurationUs(int64_t durationUs) for ?
Thank you for answer.
Ivan.
-
Hmm it seems like it is rendering properly after all. Issue was maybe by setting wrong duration value and also bounding boxes were on same position.
I figured out that when setting duration to:
2000000
makes tracking bbox beeing shown only for 2 seconds.
0 -
Hello Ivan,
Yes, there is a delay of 2 seconds. If the timestamp of an object is more than 2 seconds in the past it won't be shown in the right-hand panel.
0
Please sign in to leave a comment.
Comments
2 comments