Show highest scoring category on video
Display the highest scoring category from a model as a text overlay on video.
If you have a model that returns scores, you can display the highest scoring category as a text overlay on the video feed using the Nx Meta Rules Engine.
Select a Suitable Model
You need a model that outputs a score. You can quickly identify these by looking for the Scores tag in the model overview.

Or check the model detail page: if the model outputs named scores, they appear in the output description.

Create an Event Rule in Nx Meta
In the Nx Meta Desktop client, open Camera Rules for the camera running the AI plugin.

Click Add a New Rule. See the inference framerate how-to for a step-by-step walkthrough of the rule editor interface.
Set the "When" Condition
Source: Select the camera device (usually pre-selected).
Event: Select Analytics Event with type Category detected.
Set the "Do" Action
At: Select the same camera as the source.
Action: Select Show text overlay.
Text: The default $eventText value contains the highest scoring category name. No custom text is needed.

When the event fires, the highest scoring category is displayed on the video feed.

Last updated