Show AI inference framerate on video

The Nx AI Manager can display the inference speed (FPS) directly on the video feed using the Nx Meta Rules Engine. This works by generating an Analytics Event for each inference result and displaying it as a Text Overlay.

Create an Event Rule in Nx Meta

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

Nx Meta Desktop Client showing a camera item in the resource tree, with right-click context menu visible
Open Camera Settings from the right-click context menu

Go to the Event Rules section.

Camera Settings dialog with the Event Rules tab selected
Camera Settings — Event Rules tab

Click Add a New Rule.

Event Rules window showing an empty rules list with the Add button highlighted
Event Rules window — click Add to create a new rule

This opens a dialog where you can configure an event rule.

Set the "When" Condition

Source: Select the camera device.

Event rule editor showing the camera selected in the At field under the When condition
Select the camera as the event source

Event: Select Analytics Event and choose the inference framerate event type.

Event rule editor showing Analytics Event selected in the When condition with the FPS event type chosen
Select Analytics Event and the inference framerate event type

Set the "Do" Action

At: Select the same camera as the source.

Action: Select Show text overlay.

Event rule editor showing the Do action set to Show text overlay at the source camera
Set the action to Show text overlay at the source camera

Text: The default text uses $eventText, which contains the inference speed value from the analytics event. No custom text is needed for the FPS display.

Completed event rule configuration showing the When and Do conditions filled in for FPS display
Completed event rule — click Save

When the analytics event fires, the inference throughput in frames per second is shown as an overlay on the camera feed.

Camera video feed showing a text overlay displaying the AI inference framerate in FPS
Inference framerate displayed as a text overlay on the video feed

Last updated