5. Alternative: Setup and install the AI plugin yourself

Currently, you can only install one Scailable NX Plugin at a time. The one line installs will take care of removing alternative pre-existing plugins. If you want to clean up yourself, you could also run the following command before adding a Scailable Nx plugin: sudo rm -r /opt/networkoptix-metavms/mediaserver/bin/plugins/scailable_*

Run the Plugin Install Script

An install script is provided with the Scailable One-Line Install package. This script can be executed with:
sudo bash -ic "$(wget -q -O - https://get.sclbl.net/nx_plugin)"
This script will attempt to detect the installation directory of your NX Server. If non-default paths were used during Network Optix installation, this script will fail. In this case, follow the manual-installation steps.
The script will download the plugin and install it in the appropriate plugins folder. Once installed, the script will attempt to detect an existing Scailable Edge AI Manager installation at the default path. If found, it will prompt if it should configure the Edge AI Manager to integrate with Network Optix.

Configure the Scailable AI Manager

In order for the unconfigured plugin to operate with the Edge AI Manager, a number of settings need to be adjusted in the Edge AI Manager settings file.
First, since the Scailable Network Optix plugin sends information to the Edge AI Manager over a Unix domain socket, the Edge AI Manager needs to be told to expect inputs on its socket. This can be done by setting the InputDriver to "SOCKET" .
Second, the Edge AI Manager sends its results back to the plugin via a separate Unix domain socket. This is configured by setting the OutputProtocol to "SOCKET" as well.
Finally, the Edge AI Manager needs to know where to send the output. Since a Unix domain socket communicates via a filepath, we can set the OutputLocation setting to "/opt/sclbl/sockets/output_socket.sock" , since this is where the Scailable Network Optix plugin is expecting input.
Once these settings are in place, the Edge AI Manager should be ready to operate alongside Network Optix! Select a model, and run. If the plugin is enabled in Network Optix, the Edge AI Manager should receive inputs and return results which can then be handled in Network Optix.

Configure Network Optix Meta

On completion of the install, a 'Plugin' tab should be visible when opening a camera's settings:
Camera Settings Navigation
The plugin can be enabled/disabled per camera on the Plugins tab:
Scailable Plugin Tab

Visualizing Bounding Boxes

If a model which outputs compatible bounding boxes is selcted and running the Edge AI Manager, bounding boxes can be visualized by visiting the Objects tab on the right pane in the NX Meta Client:
Visible Bounding Boxes in NX Meta Client

Adding Event Rules

The Scailable plugin can generate a number of events. Network Optix gives the user control over what these events should do, from sending an email to showing a notification. In this example, we will show a text overlay on the video.
Rules can be added by navigating to the Camera Rules menu:
On the Event Rules window, click the Add button to add a new rule.
From here, several options are available. First, on the left side, select Analytics Event from the When context menu. This is the type of event the Scailable plugin generates.
Select any, or multiple, camera(s) in the At context menu.
Under the Event Type context menu, you will find a number of event types the Scailable plugin can generate, from alarms to counting objects. In this example, we will select the Objects Counted type.
On the right side, it can be configured what should be done when one of these events is triggered. Here you could set up an email or notification trigger. In this example we will select the Show text overlay option in the Do context menu at the source camera
Example Settings for Objects Counted Rule
If set up correctly, and a model generating counts is selected and running, we should see an overlay on the camera feed showing us the object counts:
Example of Objects Counted text overlay