AxisCommunications / acap-native-sdk-examples

Example code for APIs and features in AXIS Camera Application Platform (ACAP) Native SDK
Apache License 2.0
44 stars 25 forks source link

metadata broker feedback #215

Open paromarc opened 8 months ago

paromarc commented 8 months ago

Hi,

I have been playing around with the metadata broker API and wanted to report some feedback.

Starting with the API docs --> https://axiscommunications.github.io/acap-documentation/docs/api/src/api/metadata-broker/html/standard_topics.html

The payload doesn't start with the "data" property --> { "data": { "frame": { "timestamp": "2023-03-08T09:00:19.320111Z", "observations": [

but instead from the "frame" property "frame": { "timestamp": "2023-03-08T09:00:19.320111Z", "observations": [

I see my P3265 fw 11.9.60 is detecting Human, Cars but also Face.

In my app I am parsing the json payload --> Message: 12:59:31.623: type Face**: bottom 0.127300, left 0.208600, right 0.224700, top 0.098600

I have also been playing around with the 'BestShot' feature and uploading the base64 image to an S3 bucket for testing. My P3265 is facing a display looping the same image, but the best shot seems to be inconsistent. Sometimes I get the back of my body, sometimes the front, sometimes just my face (even though my app is specifying only 'human' type and not 'face').

I am attaching a quick video showing the behavior after watching the same video twice and getting different results.

Thanks! Marco

https://github.com/AxisCommunications/acap-native-sdk-examples/assets/11927582/4ef67c5b-a6c3-4f52-b509-e38c04957127

pataxis commented 8 months ago

Hi @paromarc , thanks for your feedback! Will send this to the team working with this API.

kevin-barudde-work commented 3 months ago

Hi i will summarise the meting notes here for other that have the same questions,

  1. The documentation was wrong and is now fixed. (The data field was removed)
  2. You can get other classes than what the documentation example show
  3. The best snapshot feature is not deterministic for tracks