# Show AI inference framerate on video

The ability to display inference speed directly in the video feed of the Nx Meta client using the Nx AI Manager plugin is possible with the standard features that Nx Meta delivers but it is a little bit more complex than enabling a "FPS" switch.

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.

#### 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.

<figure><img src="/files/ktwt00VN9Rf1Yp3OTeID" alt="" width="158"><figcaption></figcaption></figure>

Go to the Event Rules section.

<figure><img src="/files/Jd1PdTPnFe03UgE2meUu" alt="" width="375"><figcaption></figcaption></figure>

Add a New Rule

<figure><img src="/files/1RT4nlf3B628KZo6dblS" alt="" width="375"><figcaption></figcaption></figure>

This will open a dialog where you can configure an event rule.

#### Set the "When" Condition with the following options

**Source**: Select the camera device.

<figure><img src="/files/JKSXaoTf9OUOGznmUvtv" alt="" width="375"><figcaption></figcaption></figure>

**Event**: Select Analytics Event.

<figure><img src="/files/hLg9GYZlZiUEEFHjAcY9" alt="" width="375"><figcaption></figcaption></figure>

#### 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.

<figure><img src="/files/b4PVaKaiDlo8LgENJ6vh" alt="" width="375"><figcaption></figcaption></figure>

**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.

The exact placeholder will depend on how your custom postprocessor is structured.&#x20;

For simple events, you might be able to pull the `$eventText` or similar variable that contains the speed you packaged.

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

<figure><img src="/files/xWHI26VCKIBTxwqZNWn5" alt=""><figcaption></figcaption></figure>

When the analytics event containing the inference speed is triggered, the overlay with the throughput in frames per second will be displayed on the video feed in the Nx Meta client.

<figure><img src="/files/MMalJIWxaQGGgobafaBX" alt=""><figcaption></figcaption></figure>

***


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://nx.docs.scailable.net/nx-ai-manager/howtos/show-ai-inference-framerate-on-video.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
