Vigiora

Ta strona nie jest jeszcze dostępna w języku: Polski. Wyświetlamy ją po angielsku.

Add-ons and object recognitionOd 1.7.0

What add-ons are, the Add-ons page, how to install one, community add-ons and developer mode, the services Vigiora knows, object recognition for any object you describe, and where the results appear.

W aplikacji: /add-ons

An add-on is a module that adds an AI ability to your cameras: it counts people, reads plates, recognises faces, or finds objects. It can run inside your server, on a GPU in the same machine, on an edge device such as a Jetson, or on another computer on your network. An add-on plugs in once, and your cameras, alerts, Guardian and the API can use what it finds.

What an add-on is#

Vigiora has two kinds of add-ons:

KindWhere it runsExamples
Built-inInside Vigiora Server. Nothing to install.Core AI, Motion detection, AI scene alerts, Voice detection, AI live watch, People counting
InstalledA separate program, usually in Docker on a machine with an NVIDIA GPU. It connects to your server by itself.The four Vigiora add-ons: Objects, Plates, Faces and Vision

Every add-on appears on the Add-ons page (Settings → AI and add-ons → Add-ons, admins and operators) and on each camera's AI Guardian tab, where you switch it on or off for that camera and change its settings. See Add-ons, AI Tools and the Tool Log for the Add-ons page itself.

Every add-on card carries a Free or Paid label, so you see before you install what it costs.

The Add-ons page#

Open Settings → AI and add-ons → Add-ons (admins and operators). The page lists the add-ons installed on your server, with their state, the cameras each one serves and the controls to start, stop, restart or remove its access. See Add-ons, AI Tools and the Tool Log for the controls. A card that says No add-ons installed yet has an Install an add-on button.

Install an add-on#

Click Install an add-on on the Add-ons page, or open /add-ons/install. The page shows the four Vigiora add-ons, each with a short description and its Free or Paid label.

Add-onWhat it does
ObjectsRecognises any object you describe in words: a backpack, a red car, a t-shirt.
PlatesReads the licence plates of passing vehicles.
FacesDetects and recognises faces you have named.
VisionRuns a LiquidAI vision model on your own machine for the floor-plan scan: free and private. The cloud AI answers when it is offline. It picks the model that fits the hardware by itself.

Plates and Faces handle personal data, and the page says so. Turn them on only where the law allows it, and tell the people concerned.

  1. Choose where it runs

    The page tells you whether this server can run an add-on itself. It needs Docker and an NVIDIA GPU. If it can, click Install on this server. If it cannot, use another computer that has Docker and an NVIDIA GPU: copy the one-line command with Create command and run it there (the command works once and expires in about 30 minutes), or let Vigiora install over SSH with the machine's address and login. Machines you used before are remembered, and you can forget one at any time.

  2. Confirm with your password

    Installing downloads a large GPU image and uses the GPU. Vigiora asks for your password again before it starts. Everything else is automatic.

  3. Wait until it runs

    The add-on goes through downloading, starting and connecting, then shows running. If it shows stopped with an error, install it again to retry. Use Stop to stop it.

Only admins can install an add-on. From version 1.7.0 the install page works through remote access and the local secure address, not only on the server's own network address. If Docker is on the server but Vigiora is not allowed to use it, the page says so. Then add the server as a machine with an account that can run Docker, or give the Vigiora service access to Docker.

A feature that needs an add-on tells you so and links to the install page, for example the floor-plan scan, which uses Vision.

Community add-ons#

From version 1.7.1, the Add-ons page has two tabs: Installed and Browse. Browse lists the four Vigiora add-ons first, then the add-ons that people outside Vigiora wrote and shared in the Community. Admins use it to find an add-on, check that it fits the server, read what it may do, and install, update or remove it. Community add-ons are managed by admins only.

Where community add-ons run#

For now a community add-on installs only on a Linux machine with native Docker Engine. It does not install on macOS, on Windows, or with Docker Desktop. It does not install with rootless Docker, or when Vigiora cannot read the machine's Docker. Vigiora tells you which of these is the case before anything is installed. The machine can be this server, or a Linux machine you added over SSH. The Vigiora add-ons (Objects, Plates, Faces and Vision) are not affected.

An add-on that needs a GPU also needs the NVIDIA Container Toolkit, version 1.17.8 or later, on that machine.

Open Add-ons, then Browse. Use Search add-ons, the Category list (Vision, Audio, Sensors, Automation, Analytics, Integration, Other) and the Price list (Free and paid, Free, Paid). Each card shows the add-on's name, version and author, a Free or Paid label, whether it is reviewed, and whether it runs on this server. Click a card to open the add-on's page. It has the author's description, screenshots, a How to use it section, the hardware it needs, the permissions it asks for, its licence and a link to its source code.

Vigiora's list of community add-ons comes from vigiora.com. If the server cannot reach it, the page says so and shows the last list it has, or only the Vigiora add-ons if it has none.

The hardware check#

The Hardware box on an add-on's page lists what it needs: processor type, system, processor cores, memory, free disk, a graphics card (GPU) and devices such as a USB port, Zigbee adapter, Bluetooth, serial port, microphone or speaker. For each line, the This server column says yes, cannot tell, or what is missing.

If the add-on does not fit this server, the page says so. Click Check my machines to see, machine by machine, whether it fits and why not. Vigiora installs on this server when it fits, and otherwise on the first remembered SSH machine that fits.

The permissions list#

The Permissions box lists what the add-on is allowed to do with your Vigiora data. Each line is one permission:

Line shownWhat the add-on can do
See the list of cameras it is givenRead the cameras you assign to it
Watch the video of its camerasGet a current picture of those cameras (from 1.7.4)
Post detections and eventsAdd detections and events
Raise alertsReport detections that can become alerts, under its own label prefix (from 1.7.4)
Read recordingsRead recordings
Read known facesRead the faces you named
Read smart devicesRead smart devices
Control smart devicesControl smart devices

A line can say nothing uses it yet: the server does not act on that permission in this version. The same box shows its Network setting: none (no network), outbound (internet and this server) or host (the machine's own network). With internet access it can also reach other devices on your home network, such as cameras, the router and computers. It also shows whether the add-on is Privileged: yes: full access to the machine, or no. Vigiora gives the add-on a token that is limited to its permissions.

Install#

  1. Open the add-on

    In Browse, open the add-on. Read its description, hardware and permissions.

  2. Click Activate

    Vigiora shows Before it installs: name, version, author, permissions, network, whether it is privileged, price and review. A Paid community add-on is added to your Vigiora plan first, from its page in the Community: you choose the server and see the price before you confirm. A suspended add-on cannot be installed.

  3. Confirm with your password if asked

    An add-on that is privileged, uses host networking or uses the graphics card asks for your admin password again. GPU add-ons always do. Other add-ons do not.

  4. Click Install

    The add-on shows its progress: Waiting, Downloading, Building, Downloading images, Starting, Running. If it shows Failed, the reason is under it. Click Try again to retry.

Installing works only in the web app. The API and AI agents cannot install a community add-on that asks for elevated access, or install from a git address. Before it starts, Vigiora checks that the disk of Docker and the disk of your recordings each have at least 5 GB free, or 5% of the disk if that is more. A build stops after 20 minutes.

An installed add-on appears under Community add-ons on the Installed tab, with its state and the machine it runs on. Then assign it to cameras as for any add-on.

Update#

Vigiora never updates a community add-on by itself. When a newer approved version exists, the Installed tab shows Update to and the version. Vigiora asks you to confirm. If the new version asks for elevated access, it asks for your password too. An add-on installed in developer mode has no Update button: install it again from its git address.

Remove#

Click Remove on the Installed tab or on the add-on's page, then confirm. Vigiora first revokes the add-on's access, then stops and removes its containers, the images it built and its data. The data is deleted too. This cannot be undone.

What reviewed means#

A community add-on is Reviewed by Vigiora when a Vigiora reviewer approved one exact version of it, one commit of its public repository. The server installs that commit only, and refuses it if the manifest in the repository differs from the one reviewed. The reviewer reads the add-on's manifest, compose file and Dockerfiles, and looks closely at privileged containers, host networking, the permissions it asks for and what it really runs. Vigiora can suspend an approved add-on if a problem is reported. A suspended add-on shows the reason, is stopped, and cannot be installed. You can remove it.

Reviewed does not mean harmless. The reviewer reads the files. A running program can still do what its permissions and network allow. Install only add-ons you need, and read the permissions.

An add-on installed in developer mode is NOT reviewed by Vigiora.

How community add-ons are limited#

Whatever the add-on asks for, the server applies these limits when it runs it:

  • The add-on runs with dropped privileges: it cannot gain new privileges, and it has no extra Linux capabilities unless it is a privileged add-on that you confirmed with your password.
  • It has caps on memory, processor use and the number of processes.
  • It cannot see your server's folders. Its files live in volumes Docker keeps for it. Only a privileged add-on can use a folder of the machine, and never the Docker socket, /etc, /home or the data of Vigiora Server itself.
  • It runs Docker Compose from a copy of its compose file that Vigiora wrote, never from the author's own copy.
  • When the disk of your recordings has less than 2 GB free, community add-ons stop and show Stopped (low disk). They start again when 4 GB are free. The Vigiora add-ons are never stopped this way.

Developer mode#

Developer mode installs an add-on straight from its git address, with no review. It is for people who write add-ons. It is off by default.

  1. Turn it on

    An admin opens Settings → System → Updates and turns on Add-on developer mode.

  2. Install from git

    On the Installed tab, fill in the Git address (https://github.com/… or https://gitlab.com/…), optionally a branch, tag or commit, and Your password. Click Install from git.

Developer mode installs only from the web app, and always asks for the admin password. The server runs the same checks on the manifest and the compose file as for a reviewed add-on. Ids reserved for Vigiora are refused. An add-on installed this way is never suspended by Vigiora. To write one, see Write and share an add-on.

The catalog#

Your server knows these add-ons by their service code. An add-on it knows gets its own card on the camera's AI Guardian tab, with its settings and help text.

Service codeName on the cardWhat it does
core-aiAI for this camera (Core AI)Guardian, detections and alerts for the camera. Built in.
motion-detectMotion DetectionNotices movement and starts Guardian's scene descriptions. Built in, free. Shown as Motion detection.
hal-videoAI scene alertsRicher scene analysis (paid). Built in. gemini-video before 1.6.19.
hal-audioVoice detection (STT)Speech to text on the camera's microphone. Built in. Shown as Voice detection. gemini-audio (card: Gemini Audio (STT)) before 1.6.19.
hal-liveAI LiveAI live watch. Built in. Shown as AI live watch. gemini-live (card: Gemini Live) before 1.6.19.
hal-objectsObject recognition (any object)Finds the things you describe. Installed, GPU. Preview. The Objects add-on.
hal-trackerPeople & Vehicle CounterNo longer offered: Analytics replaces it. Installed, GPU. Shown as People counting.
hal-faceFace recognitionFace recognition. Installed, GPU. Early access since 1.6.16, not billed. The Faces add-on.
hal-license-plateLicence-plate recognitionLicence plates. Installed, GPU. Early access since 1.6.16, not billed. The Plates add-on.
hal-smart-motion, hal-weaponhal-smart-motion, hal-weaponLine and zone crossings; weapon detection. Installed.

An add-on with a service code the server doesn't know can still enrol and be assigned to cameras. Its card just has no settings or help text. The service codes keep their names in the API and in licence and plan codes.

From version 1.6.19 the three built-in AI services are named for what they do, like the installed ones. The old names still work wherever you send a service name (the API, licence codes, the plan's add-on codes); answers and the pages carry only the new ones. Screenshots taken before 1.6.19 show the old card names.

Object recognition (any object)#

From version 1.6.10, object recognition (hal-objects) finds the things you list on a camera, in plain words: a person, a parcel, a bicycle, a black t-shirt, a red car. It uses an open-vocabulary model, so you aren't limited to a fixed list of classes.

Each object it sees becomes one detection with a snapshot that has the box drawn, not one per frame: an object is reported again only after it left, or after the Repeat after time. A label can become an alert with a label alert rule.

Settings per camera#

On the camera's AI Guardian tab, the Object recognition (any object) card has:

SettingOpisDomyślnie
Things to findA comma-separated list of what to detect, in plain English, for example person, black t-shirt, parcel, red car. Each item becomes a detection label. Leave it blank for the default list.—
Min confidenceIgnore objects below this score. Open-vocabulary scores run lower than fixed-class ones. Raise it if you see false detections.0.25
Repeat after (s)A new detection of the same thing on this camera is reported at most this often.120

Write good prompts#

The words you choose matter more than with fixed-class detectors.

  • Describe the thing. Clothing is found as a box inside the person, and a bare word scores low. black t-shirt or flowered shirt finds far more than t-shirt.
  • Add a colour or a kind: red car, white van, cardboard box, blue backpack.
  • Keep the list short. A few precise items work better than many vague ones. Up to 20 items of 40 characters.
  • Expect some false detections on still scenes, such as a parked car read as a backpack, or a plant. Each one is reported once, then remembered as a still object and not reported again while it stays put.
  • Check the picture. A score is a likelihood, not a fact. Every detection has its snapshot.

Look for objects on demand#

Besides watching continuously, the add-on answers one-off questions through the API and AI agents over MCP:

  • Find objects in a camera frame, live or at a recorded moment, with your own words (detect_objects).
  • Analyse an uploaded photo: describe it and find objects in it (analyze_image). The photo is never stored.
  • Give Guardian object context when it analyses a camera now (include_objects).

For example, ask your AI assistant: "Find a person in a red shirt at the entrance in the last hour" or "What objects are on the garage camera now?". Without a running object recognition add-on, these answer 503 no_detector.

Connect an add-on yourself#

The install page does this for you. To start an add-on by hand, for example one you built, run it on a machine with the hardware it needs and talks to your server over the network.

You needDetails
A GPUAn NVIDIA GPU with current drivers, for object recognition and Analytics. About 2 GB of GPU memory for a few cameras.
DockerDocker with the NVIDIA Container Toolkit, so the container can use the GPU. Host networking is simplest when it runs on the server's own machine.
The enrolment keySet VIGIORA_ENROLL_KEY in the server's settings file (/etc/vigiora.env on Linux) and restart the server. Give it to the add-on in a file, never in a chat or a command line.
Your server's addressThe add-on connects to the server's LAN address, for example http://192.0.2.10:8080.
  1. Start the add-on

    Start the add-on's container with the enrolment key. It enrols itself once and keeps its own token.

  2. Check that it enrolled

    Open Settings → AI and add-ons → Add-ons. The add-on appears with its machine name and sends metrics every 30 seconds.

  3. Assign cameras

    On the add-on's card, pick the cameras it should serve, or switch it on in each camera's AI Guardian tab.

  4. Set what to find

    For object recognition, fill in Things to find on the camera's card.

From version 1.6.16, the Add-ons page (then called HAL) works over your site address and the Cloudflare tunnel too, not only on the local network, for admins and operators: you can check add-ons, assign cameras and change settings from anywhere. The add-ons themselves still connect to the server on its local address.

The add-on protocol#

Installed add-ons use a small HTTP and JSON protocol, called HAL. Add-on makers need it; you don't, to use an add-on. The paths keep the name hal for compatibility.

  • Enrol. A new add-on sends the enrolment key and its service name once (POST /api/hal/enroll) and gets a token. The server stores only a hash of it. The token is valid until an admin revokes it.
  • Get the work. Every 30 seconds the add-on reads its assigned cameras, its settings per camera and its desired state (running or stopped, restart requested).
  • Read the cameras. It reads each assigned camera through the server's own restream, never from the camera itself, so it never needs the camera's password.
  • Report. It sends events and detections (POST /api/hal/events, with the label, confidence, box and snapshot) and metrics (CPU, GPU, frames per second, latency). A detection is accepted only for a camera assigned to the service.
  • Presence. From version 1.6.11, an add-on can also say, in its metrics, which of its cameras it watched and when a person was in view, moving or not. Object recognition reports this every 10 seconds. Guardian uses it to decide whether a rule about people should alert. Presence is kept as long as the add-on's reports.
  • On-demand jobs. An add-on keeps one long poll open (GET /api/hal/jobs). When the API or an agent asks for objects on a frame or a photo, the server hands the add-on a one-off job with the image, the add-on answers within seconds (POST /api/hal/jobs/{id}/result), and the caller gets the result. A camera's frames go only to an add-on assigned to that camera. Jobs live in the server's memory: a restart drops them.

Where the results appear#

  • Detection events. A camera's detection events list the server's own detections and the reports of every add-on on the camera in one feed, each with its source, for example hal-objects.
  • Alerts and snapshots. Detections from object recognition appear with their snapshot, and a label alert rule turns a label into alerts.
  • Guardian descriptions. When Guardian describes a clip, it also gets what the camera's detectors reported in the same moments, and checks it against the video: it confirms counts and objects, adds detail, and never reports what the video contradicts. The Guardian history shows the detections as small chips. It adds no AI cost. Turn it off per camera with Use object detections in descriptions on the camera's AI Guardian tab. From version 1.6.11, when a person detector watched the whole clip and saw nobody, Guardian is told so too.
  • Person alerts. From version 1.6.11, a rule about people can wait for the detector to see a person: see Alert rules.
  • Analytics. From version 1.6.13, object recognition also sends the tracks of people and vehicles about once a second (POST /api/hal/tracks) to cameras with Analytics turned on: positions only, no images. Analytics turns them into line counts, occupancy, dwell time and heatmaps.
  • Guardian pictures and clips. From version 1.6.13, Guardian uses the detections to pick the picture of a moment and to make its clip cover the person or object. See Guardian.

Retention#

Add-on reports are kept 30 days by default, and at most 200,000 per add-on. Admins change the number of days (1 to 365) with hal_events_retention_days in the API settings.

Edytuj tę stronę na GitHubie