I experimented with the Bounding Box sample, and I changed the color of the text of the staticObject (Appearance.Description) and that worked, and I have two texts.
Next experiment tried to remove first the Shape from the Appearance, and then remove the BoundingBox from the Shape, in both cases the Description text does not display.
The workaround is to submit a second (dummy/invisible) BoundingBox when you need a second text in order to conform to the Bounding Box understood and displayed by the Smart Client.
we have created the same static object but it does not work for multiple bounding box because we need something that the text is dynamically changing for all cameras.Can we create multiple onvif object inside the metadata.we have tried that also but it is taking that object as static.we cannot change the text dynamically for each camera.
here i have the code,
var metadata = new MetadataStream
{
VideoAnalyticsItems =
{
new VideoAnalytics
{
Frames =
{
new Frame(DateTime.UtcNow)
{
Objects =
{
new OnvifObject(objectId)
{
Appearance = new Appearance
{
Shape = new Shape
{
BoundingBox = boundingBox,
CenterOfGravity = dummyCenterOfGravity
},
Description=description
}
},
You are using the same describtion object twice, I would guess you need multiple. When updating the text you would then resend the whole set of Objects even if only one of the Description was changed.
I hope it makes sense, if the answer does not fit I might have misunderstood, in that case please elaborate..