Skip to content

Installing video analytics

Video analytics detects objects in streams and creates episodes for viewing and search in Watcher. It requires analytics services and models. Watcher/watcher-streamer receives and records video; analytics connects to this infrastructure separately.

The module consists of two services:

  • Inference — analyzes video streams and detects objects.
  • Identification — identifies objects and works with person data.

Prepare the server

Allocate a separate analytics server with access to Watcher, Central and camera streams. Load depends on stream count, resolution, analysis rate and selected detectors. Installation on a recording server requires a separate resource reserve check.

You can use CPU to verify connectivity. For production load, choose an accelerator and memory size based on tests with your streams; see Analytics resource calculation. Accelerator drivers must match hardware and runtime versions. Before installation, check compatibility of the OS and hardware with the supplied analytics set.

Vision 26.11 provides cpu, cuda, jetson and vulkan. The x86-64 CPU distribution specifies AVX2 support. The chosen option needs matching models and runtime; verify specific hardware against their actual versions.

The Inference 26.11 container is based on Ubuntu 22.04. This is the container environment; host OS and drivers require separate checks. CUDA runtime is built with CUDA 11.5 for x86-64 and CUDA 10.2 for ARM64; Jetson uses L4T R32.7.5 SDK. These versions do not establish universal compatibility with every GPU, Jetson or JetPack release. Choose minimum compute capability and memory according to specific models and measurements.

Install packages

Run as root. Configure the stable Flussonic package repository if necessary; see Watcher installation.

apt update
apt-get -s install flussonic-vision
apt install flussonic-vision

Check the installation plan before confirmation: the 26.11 set includes vision-inference and vision-identification 26.11 and vision-models. This release supplies models for different computation platforms in one package.

The installer creates configuration and example files in /etc/vision/. Fill in working files as described below: installing packages does not automatically connect cameras to analytics.

Add analytics to Watcher

Register each service as a separate node through Watcher Admin API. Watcher administrator permissions are required. Give each record a unique hostname, role and service API URL. Use different ports if both services share a server.

Set role during registration. Streamers → Add streamer has no Inference or Identification selector; it creates an ordinary streamer. Use the following requests with administrator authentication for analytics services.

Example addresses and keys are placeholders for your installation. Do not publish completed requests: api_url and cluster_key contain a service access key.

Add Inference

Send PUT /watcher/admin-api/v3/streamers/inference1 with:

{
  "hostname": "inference1",
  "role": "inference",
  "api_url": "http://INFERENCE_API_KEY@vision.example.com:9030",
  "cluster_key": "INFERENCE_API_KEY"
}

Replace INFERENCE_API_KEY with the Inference service key matching its API_KEY. inference1 is required in CONFIG_EXTERNAL.

Add Identification

Send PUT /watcher/admin-api/v3/streamers/identification1 with:

{
  "hostname": "identification1",
  "role": "identification",
  "api_url": "http://IDENTIFICATION_API_KEY@vision.example.com:9050",
  "cluster_key": "IDENTIFICATION_API_KEY"
}

IDENTIFICATION_API_KEY must match Identification's API_KEY. The services use a separate Central key to connect to Central.

After configuring and starting services, verify records through GET /watcher/admin-api/v3/streamers/inference1 and GET /watcher/admin-api/v3/streamers/identification1: names, roles and addresses must match. Node availability also appears in Streamers.

Configure services

These examples assume Central is reachable through Watcher's address watcher.example.com. Replace node names, addresses and keys. URLs must be reachable from the analytics server itself.

Inference

Fill in /etc/vision/vision-inference.conf:

HTTP_PORT=9030
API_KEY=INFERENCE_API_KEY
HW=cpu
CONFIG_EXTERNAL=http://CENTRAL_API_KEY@watcher.example.com/central/api/v3/streamers/inference1/streams

Parameters:

  • HTTP_PORT — service port, matching its API URL port in Watcher.
  • API_KEY — Inference access key.
  • HW — computation platform. The 26.11 package example contains HW=cpu. Options:

    • cpu — CPU processing.
    • cuda — processing on a configured NVIDIA CUDA device.
    • jetson — compatible NVIDIA Jetson.
    • vulkan — processing through a compatible Vulkan runtime.
  • CONFIG_EXTERNAL — camera configuration URL in Central. inference1 must match the registered Inference node name.

Take CENTRAL_API_KEY from your Central configuration. If Central is package-installed on this server, its settings are in /etc/central/central.conf.

One Inference process uses one device. For several GPUs, run separate service instances with different configuration files, ports and DEVICEID; the package installation provides vision-inference@.service.

Identification

Fill in /etc/vision/vision-identification.conf:

HTTP_PORT=9050
API_KEY=IDENTIFICATION_API_KEY
CENTRAL_URL=http://CENTRAL_API_KEY@watcher.example.com/central/api/v3

Parameters:

  • HTTP_PORT — Identification port, matching its API URL in Watcher.
  • API_KEY — this service's access key.
  • CENTRAL_URL — Central API address with a key permitting access to identification data.

Start and verify

Apply configuration:

systemctl restart vision-inference vision-identification
systemctl status vision-inference vision-identification
journalctl -u vision-inference -u vision-identification -n 100 --no-pager

In Streamers, check both nodes are reachable. If not, check addresses, ports, keys and network connectivity between services.

Enable a detector on a test camera: face recognition or license plate recognition. Check new episodes in Events and assess server load. A green service indicator confirms connectivity but does not replace checking video results.

See Updating video analytics for upgrades.