Vigiora

Denne siden finnes ikke på Norsk bokmål ennå. Den vises på engelsk.

PTZ cameras

Let Vigiora detect pan/tilt/zoom cameras, override the detection, set an ONVIF address, use presets and digital zoom, and let a camera patrol its presets on its own — set up by hand or automatically by Vigiora AI.

I appen: /monitors/:id/edit

Vigiora can steer pan/tilt/zoom (PTZ) cameras from the live page. For cameras on the server's own network, it detects PTZ by itself, using ONVIF or, on Hikvision cameras, ISAPI. You can override the detection when needed.

The PTZ block in the camera editor.

How detection works#

For a camera on the server's network, Vigiora asks the camera whether it supports PTZ when you add it and whenever its address changes. It tries ONVIF first, then Hikvision ISAPI.

From version 1.6.8 Vigiora finds the ONVIF port by itself. Many cameras don't serve ONVIF on port 80: Reolink uses 8000 and TP-Link Tapo 2020, for example. Vigiora tries ports 80, 8000, 8899, 2020 and 8080, starting with the port the camera's maker usually uses, and asks each one a question that needs no login. Only the port that answers gets the camera's login. It saves the address it found in the ONVIF address field and uses it from then on. Cameras added with the setup wizard get the ONVIF address the wizard found.

When the camera's IP address changes, an address Vigiora found keeps its port and gets the new IP. An address you typed yourself is never changed this way.

The PTZ line in the camera editor shows the result:

StatusMeaning
Detected (ONVIF) / Detected (ISAPI)PTZ found. The joystick appears on the live page.
Not detectedThe camera says it has no PTZ, or it didn't answer.
Not checked yetDetection hasn't run yet.
On (set manually) / Off (set manually)You overrode the detection.

Cameras behind a Vigiora Client are not detected by the server. Their PTZ is simply On or Off and moves go through the Client.

Check or change PTZ#

  1. Open the camera settings

    Open the camera and click Edit. The PTZ block is on the General tab.

  2. Run detection again

    Click Detect again. Vigiora reports PTZ found with the method, or "The camera reports no pan/tilt/zoom."

  3. Override if needed

    Next to Joystick, click On to show the joystick anyway, or Off to hide it. Click Auto to go back to detection.

Changes in the PTZ block save immediately. You don't need to click Save.

Options#

AlternativBeskrivelseStandard
JoystickAuto uses the detection result. On and Off override it. Auto is only offered for cameras on the server’s network.Auto
ZoomCamera (optical) sends zoom to the camera. Digital (in the browser) enlarges the picture instead, for cameras that pan and tilt but have no zoom lens. Shown when PTZ is on.Camera (optical)
ONVIF addressThe camera’s ONVIF device address, for example http://192.0.2.30:8000/onvif/device_service. Filled in by Vigiora when it finds the port (from 1.6.8). To set it yourself, type it and click Save next to the field.Found automatically
Detect againAsks the camera again whether it supports PTZ.—

When to set the ONVIF address#

Vigiora finds the usual ONVIF ports by itself. Set the address only when the camera uses an unusual port, or ONVIF on another device. If detection says Not detected but the camera can move:

  1. Find the ONVIF port in the camera's web settings.
  2. Enter the address in the ONVIF field, for example http://192.0.2.30:8000/onvif/device_service, and click Save.
  3. Click Detect again.

Use the same host as the RTSP address, with any port. If the ONVIF address uses a different host, include its user name and password in the address.

Use the joystick#

On the camera's Live tab:

  • Press and hold an arrow to move the camera, and let go to stop. From version 1.6.20 the camera keeps moving while you hold, instead of nudging for half a second per click; a dead-man in the server stops the camera if your browser goes quiet.
  • Press and hold + or − to zoom in or out.
  • Click Presets to go to, save and manage saved positions. See Presets.

Presets are available for cameras on the server's network. See Live view.

Presets#

A preset is a saved pan/tilt/zoom position you can send the camera back to. Open Presets on the joystick.

Do thisHow
Go to a presetClick it in the list.
Save the current positionClick Save preset. It adds a new preset. To save over an existing one, pick it first.
Rename a preset (from 1.6.20)Open its menu and choose Rename.
Delete a preset (from 1.6.20)Open its menu and choose Delete.
Move a preset here (from 1.6.20)Steer the camera where you want it, then choose Move to current position on the preset. Its name stays.
Dwell time (from 1.6.20)Set the seconds to stay at this preset — how long a patrol rests here as it walks the camera through its presets.

Patrol mode#

From version 1.6.20 a PTZ camera can patrol on its own: walk through its presets in turn, resting at each for its dwell time, so one camera covers a wide scene without anyone touching the joystick. A patrol runs in the server, not the browser, so it keeps going whether or not anyone is watching, and across a restart. One patrol runs per camera at a time.

Each camera keeps its own named patrols. A patrol is an ordered list of steps — a preset, how long to dwell and how fast to move to it — plus a few choices for the whole patrol:

ChoiceWhat it does
Loop or onceRepeat from the top, or stop after the last step.
Random orderVisit the steps in a shuffled order each round, instead of top to bottom.
Home presetA preset to return to when the patrol stops.
ScheduleThe hours the patrol may run (always, when left empty).
On activity (from 1.6.20)What the patrol does when the camera sees motion: Keep moving (ignore it), Pause (hold where it is while something is happening), or Follow the action — turn toward the motion and stay on it until it is over, then carry on. See Follow the action.
Activity from (from 1.6.25)Where "activity" comes from when the patrol pauses or follows: Camera and Vigiora (automatic — whichever notices first), the camera's own detection (its built-in motion, people, vehicle or line-crossing alerts, sent over ONVIF) or Vigiora motion detection alone. Only shown when the patrol does something on activity.
Pause after a manual moveWhen someone steers the camera by hand, pause the patrol for a while (120 seconds by default) before it carries on, so a hand move is never fought. Saving a new preset counts as a manual move, so you can frame and name it in peace.

While a patrol moves the camera, motion detection is muted for the move itself (as for any PTZ move), so walking the presets doesn't raise a motion alert. If the camera can't be reached, the patrol backs off and tries again rather than hammering it. Starting and stopping a patrol is written to the audit log. Cameras behind a Vigiora Client can't patrol from the server — the control says so with the Client's name.

Run a patrol from the joystick#

Open Patrol on the joystick (next to Presets):

  • Pick a saved patrol to start it. The quickest patrol — all presets, each for its dwell time, looping — is one click, with nothing to set up first.
  • While a patrol runs, the joystick shows where it is: Patrol · step 2/4 · next in 8 s. Pause holds it where it is; Resume carries on; Stop ends it and returns to the home preset. A camera that is patrolling shows Patrolling on its tile in the grid.
  • Moving the camera by hand pauses the patrol (see Pause after a manual move above).

Set a patrol up automatically#

Vigiora can build a patrol for you by looking at the camera. In the camera's PTZ settings, choose Set up patrol automatically:

  1. Vigiora reads the camera

    It checks what the camera can do and finds how far it pans by moving to its end stops (cameras don't report an absolute position, so it learns the range by feel).

  2. It takes pictures across the scene

    It takes a picture at up to twelve positions across the pan range, and at the presets you already have. Each position is saved as a preset.

  3. Vigiora AI decides the plan

    It asks Vigiora AI what each view shows, how important it is and how long the camera should rest there (at most twenty views). This step uses AI credits.

  4. You accept, edit or regenerate

    Vigiora proposes a patrol with the steps and dwell times it chose. Accept it, edit the steps first, or regenerate it. Cancel removes the presets the scan added.

The scan drives the camera while it runs, so motion from its own moves is ignored. Steering the camera by hand stops the scan. If AI isn't available on the camera — or the server has no AI credits — the automatic setup can't run; build the patrol by hand from the camera's presets instead.

Follow the action#

From version 1.6.20 a patrol can do more than pause when something happens: set On activity to Follow the action and the camera breaks off its round, turns toward the movement, and keeps it in frame until it settles — then returns to the patrol exactly where it left off. While it follows, the patrol control reads Patrol · following the action.

It works on any pan/tilt camera, with no extra hardware and no AI credits: Vigiora reads where the motion is from the camera's own picture and nudges the camera to keep it centred. When the scene has been quiet for the patrol's activity quiet time (10 seconds by default), the action is treated as over and the patrol resumes at the next preset.

A few things keep it well-behaved:

  • A person always wins. Steering the camera by hand, or pausing the patrol, stops following at once — the camera never fights you.
  • It always comes back. A single follow is capped (two minutes) so the patrol resumes even if the scene keeps moving.
  • It gives up when there is nothing to aim at. From version 1.7.3, a follow ends after 10 seconds without a movement it can steer toward. This matters for a camera whose own detector reports activity without pause, such as water or a fan: the patrol no longer stays on one step for ever. After a follow that gave up, the patrol takes its next step before it may follow again.
  • Its own nudges are not a manual move. From version 1.7.3, the small turns the camera makes while following no longer count as someone steering by hand, so they do not pause the patrol for Pause after a manual move each time.
  • No false alarms from its own moves. As with every patrol move, motion detection ignores the camera following the action, so tracking a subject doesn't raise a motion alert.

Let the camera do the noticing

From version 1.6.25 a patrol can also take its cue from the camera itself. Most ONVIF cameras run their own detectors — motion cells, and on Reolink and Hikvision models people, vehicle, pet, visitor or line-crossing alerts — and Vigiora subscribes to those events over ONVIF. With Activity from set to Camera and Vigiora (the default for a new patrol, which also starts on Follow the action) the patrol reacts to whichever notices first; set it to Camera's own detection to trust only the camera, or to Vigiora motion detection to ignore the camera's alerts. The subscription is made for you and kept alive as long as a patrol on that camera listens to it.

The camera's alerts tell Vigiora that something is happening, not where in the picture it is, so the steering while following still comes from Vigiora's own motion detection. A patrol that listens only to the camera holds where it is while the camera reports activity, and carries on once it stops.

Edit a patrol by hand#

In the camera's PTZ settings you can also create and edit patrols directly: add or reorder steps, pick the preset and dwell for each, set the speed, and choose loop/once, random order, the home preset, the schedule, what happens on activity, and the manual-move pause. A patrol built or edited this way runs exactly like an automatic one.

Use ONVIF#

From version 1.6.33, each camera has a Use ONVIF switch in the pan/tilt section of the camera editor. It is on by default. Turn it off for a camera that should not be spoken to over ONVIF at all.

With Use ONVIF off, Vigiora sends nothing to that camera over ONVIF:

  • Pan/tilt controls, presets, patrols and the camera events that need ONVIF stop. The control pad is hidden on the live view.
  • A camera driven by Hikvision's own protocol (ISAPI) keeps its pad, because it does not use ONVIF.
  • A patrol that is running on the camera is ended.
  • The PTZ settings you saved are kept. Switch Use ONVIF back on and everything comes back.

In the API the camera field is onvif_enabled, and PTZ calls for a camera with it off answer 409 onvif_disabled. See API v1.

Digital zoom#

With Zoom set to Digital (in the browser), the + and − buttons enlarge the live picture in your browser from 1× to 4×, in steps of 0.5×. Nothing changes on the camera, and other viewers are not affected.

Troubleshooting PTZ#

ProblemWhat to do
Not detected, but the camera can moveSet the ONVIF address with the right port, then Detect again. Or set Joystick to On.
The camera's message appears under the joystickRead it: often the camera refused the login. Check the user has PTZ rights in the camera's own settings.
Moves work but zoom does nothingThe camera has no zoom lens. Set Zoom to Digital (in the browser).
PTZ stopped after the camera got a new addressVigiora updates the ONVIF address and checks PTZ again when it follows a camera to a new address. An address you typed yourself isn't changed: update it, or clear it so Vigiora searches again. See Fixed IPs and rediscovery.
Rediger denne siden på GitHub