We have an AI Analytics engine that creates the bounding box for object detection . We would like to show the same bounding box as part of the Analytic event in milestone version 20.23.R2 .
One of the issues we are facing is that we need to know the camera stream resolution from milestone to position the bounding box correctly. The existing camera API does not return the camera stream resolution. Is there any way to get this information from API ?
If you are sure it is a static setup you can read the configuration and sometimes this information will include a resolution. The resolution can change from one instant to the next, it can be a rule that change the setting or something else, so there is really no safe way to know the resolution without requesting the picture and analyze it.
You can give the position in two ways, pixels or fraction of the image, if you give values between 0 and 1 it will automatically scale to the picture when shown. Depending on your methods this might be a better way.