circle-exclamation
This documentation is subject to changes, The version 4.6 has not been officially released.

Show highest scoring category on video

If you have a model that returns a score you can display the highest scoring category on the video feed.

You can achieve this by leveraging the plugin's ability to generate Analytics Events and display them as a Text Overlay on the video feed with the built in Rules Engine.

Select a suitable model

The have a highest scoring category, you need to use a model that outputs a score. You can check this by looking at the model output for a model.

You can quicly see this if the model has the tag 'Scores' in the overview.

Of if the detailed output shows that the model has scores in the output name.

Create an Event Rule in Nx Meta

In the Nx Meta Desktop client, go to the 'Camera Rules' for the camera running the AI plugin that you want to use for the FPS display.

Then click the button 'Add a New Rule'.

This will open a dialog where you can configure an event rule. See the inference framerate howto for more detailed info.

Set the "When" Condition with the following options

Source: Select the camera device, it will usually be preselected.

Event: Select "Analytics Event' with the type "Category detected"

Set the "Do" Action with the following options

At: Select the camera device (Use the same camera as the source camera)

Action: Select Show text overlay.

Text: Here, you would use a macro or placeholder provided by the Nx AI Manager to insert the value of the inference speed from the analytics event.

In this case the default is sufficient, so not custom text is needed.

When the analytics event containing the category detection is triggered, the overlay with the highest scoring category will be displayed on the video feed in the Nx Meta client.


Last updated