I’ve sent many events now all with different data on them, however, what I haven’t been able to see yet are the bounding boxes sent within the object list in the xml. For context, I’m sending an alarm as the example would do. I fill the xml and check with the validator that the contents are correctly inserted. However, and even having received the alarm in the alarm manager, boxes are not printed anywhere.
I’m wondering if there is something that I need to do besides setting the boxes info in the xml or am I not looking where they should be printed?
If you explore the combination of two samples you will see how you submit Analytics Events with Bounding Box, and how you visualize it with a Smart Client plugin.
For sending the event use one of these:
https://doc.developer.milestonesys.com/html/index.html?base=samples/componentsamples/analyticseventtriggervialibrary/readme.html&tree=tree_2.html
https://doc.developer.milestonesys.com/html/index.html?base=samples/protocolsamples/triggeranalyticseventxml/readme.html&tree=tree_3.html
For the plugin that can visualize the box.
https://doc.developer.milestonesys.com/html/index.html?base=samples/pluginsamples/scoverlaygraphonevent/readme.html&tree=tree_1.html
I have a doubt if this is the answer. if you use the Print functionality of the Smart Client camera view it does not support including the overlay it only prints the camera image. If this is the question I must disappoint you.
What I’m looking for goes on the line of the scoverlay sample. My aim is to set an overlay in the alarm manager camera to show the box to the operator. This way he can identify what the alarm is from and focus his efforts on the right matter.
Looking at the example I see this would be possible with cameraAddOns, however, is the alarm manager imageviewer/ camera, available for this purpose, or would I need another object?
“My aim is to set an overlay in the alarm manager camera to show the box to the operator.”- Then you only need to send the events, no need to develop a plugin. Notice the yellow rectangle in the picture..
https://doc.developer.milestonesys.com/html/index.html?base=samples/componentsamples/analyticseventtriggervialibrary/readme.html&tree=tree_2.html
I might be in the wrong here, but I’ve sent the boxes with the events and haven’t seen one yet. maybe the coordinates do not work as intended? Do they need to be within a certain number? perhaps 0-1?
Yes. Actually the coordinates can be specified in two ways; either as fraction of the image in which case you submit coordinates in the span 0-1, or as pixels in which case you submit coordinates as whole number in the span 0 to image height/width. We recommend to use the fraction approach just like the sample does. I am curious, if you tested the sample, and if you did, did it work for you?
We’re working with 2022 R3 and we have been sending pixel coordinates (0-1920, 0-1080 mainly) but we haven’t seen any boxes drawn in the overlay. I’ve now tried with the sample in fraction and it seems to work. I’ll convert the coordinates to match the 0-1 scale.
I’ve found out my mistake. We weren’t using the validator correctly for that case, however, I’ve come across another issue. When sending pixel coordinates boxes are drawn incorrectly, but, when drawing them in fraction (same points), they are in fact correct. I’m definetely keeping fraction mode, but I wanted to share this with you.