Promethist Control

The presence camera

A depth camera on the ceiling watches two ellipses of floor in front of the avatar, a small one inside a bigger one. When somebody steps into the small one, the conversation starts; a second after they have left the bigger one, it stops. Nobody presses anything.

It is one portable Windows program, vision.exe, built from vision/ in this repository. Nothing is installed on the kiosk — no Python, and no packages that can drift on a machine nobody watches.

Just another client

The camera is not a second way into Unreal. It connects to the same control channel the tablet uses and sends the same session command as the tablet’s Start and Stop buttons. That gives it everything the tablet already has:

  • A kiosk that is out of service refuses it, exactly as it refuses the tablet.

  • Every tablet shows the session starting, because they all draw the same published state.

  • Your level’s Blueprint does the connecting. If the tablet’s Start button works, the camera needs nothing more on the Unreal side — see Wiring a button on the Unreal side for how session is split between C++ and the graph.

It sends changes only — somebody arrived, somebody left — never a repeated "still here". So an operator who presses Stop is not overruled a moment later by a visitor who has not walked away yet. When its connection comes back, after Unreal restarts for instance, it states the current answer once more, so a visitor who arrived during the restart is not left facing a kiosk that never woke up.

Like any client, it counts against MaxClients (sixteen by default).

What you need

  • An Intel RealSense depth camera on the ceiling, looking straight down. We use a D415. There is no model to set: vision.exe asks the camera what it is. It must be a D400-series camera — D415, D435, D455 and the like. Older models Intel has dropped from its camera library, such as the L515 and the SR300 family, are not supported.

  • A Windows 11 x64 machine it plugs into over USB — normally the Unreal machine itself.

  • vision.exe, attached to every release of this repository: open the project’s Releases page on GitLab and download it from the version you want.

  • Optionally, a FLIR camera facing the visitor, so the agent sees them through it rather than through the PC’s webcam. See The front camera.

Running it

On the Unreal machine, run it with no arguments. It finds the control channel on that machine, ws://127.0.0.1:9010/link, and a connection from the Unreal machine needs no token.

Supervise it like the rest of the kiosk: point Promethist Watchdog, or whatever restarts your programs, straight at vision.exe. No launcher script is needed. It keeps retrying until Unreal answers, so the start-up order does not matter. When it cannot run at all — no camera, say — it exits with an error rather than sitting idle, so the supervisor sees a failure.

Started hidden — Watchdog’s hidden visibility — it opens no window at all, not even for a moment. An uncalibrated camera then still runs, detecting nothing and telling Unreal nothing, rather than refusing to start as it does with --no-window. To aim or calibrate, start it visibly.

It starts by naming the camera it found, Camera: Intel RealSense D415 (serial …, firmware …, USB 3.2), and then prints one line per change, PRESENT inner=… outer=… or NOT_PRESENT inner=… outer=…, the moment it happens. Under Watchdog that lands in the app’s app.out.log (see Logs), and it is the local record of what the camera saw and when — even while Unreal is unreachable.

If the camera is on another machine, tell it where the channel is and give it the token, as any client on the network must:

vision.exe --ws ws://<unreal-machine>:9010/link --token <AuthToken>

The token is the AuthToken from the Unreal machine, the same value tablet.bat carries. See Locking the control channel.

Aiming and calibrating

The window shows what the camera sees, the two ellipses of floor it watches, and what it currently decides. You aim the running detector: the kiosk does not stop for it, and what you see is what is deciding.

Input Does

Click

moves the centre of both ellipses

Tab

switches between shaping the inner and the outer ellipse. The one being shaped is drawn thicker

Mouse wheel

grows or shrinks that ellipse

W / X

stretches or squeezes it vertically

D / A

stretches or squeezes it horizontally

C

calibrates now: measures the empty floor for five seconds. The floor must be clear.

+ / -

widens or narrows the margin — how far a reading must move from the empty floor to count as somebody. Wider is less sensitive

Drag on the FLIR’s picture

turns that picture upright — see The front camera

Every change saves itself.

The inner ellipse starts the conversation, the outer one ends it, a second after nobody is left in either. So walking through the ring between them starts nothing, and a visitor who steps back half a pace is not cut off. Make the inner one the spot where a visitor stands to talk, and the outer one the area they may move around in. The inner one always stays inside the outer.

It calibrates by itself two seconds after you last move or reshape an ellipse, just as C does — so keep the floor clear while you aim. Press C to calibrate at any other time, after the lighting has changed, say.

Until it is calibrated it detects nothing and tells Unreal nothing — nor while it calibrates, when the floor is deliberately empty — so it never ends a conversation somebody started from the tablet. Moving or reshaping an ellipse drops the calibration: through other ellipses the empty floor would look like somebody standing there. A margin change keeps it.

The settings belong to this installation. They are saved to visionConfig.json beside vision.exe, because the ceiling height and the camera’s angle are particular to this place. Do not copy that file to another kiosk. To update, replace vision.exe and leave visionConfig.json where it is.

Changing the camera

The calibration remembers the camera it was measured with. A different camera — another model, or another unit of the same one — sees the floor differently, and reading it through the old calibration would look like somebody standing there. So with a different camera plugged in, vision.exe sets the calibration aside: the window says CAMERA CHANGED - press C, the log names both cameras, and it detects nothing and tells Unreal nothing until it is calibrated again — press C, or re-aim it. With --no-window it refuses to start, as an uncalibrated camera does.

Nothing is deleted. Put the original camera back and its calibration applies again.

The front camera

The depth camera sees the floor, not the visitor. When the agent should see who it is talking to, a FLIR Blackfly S on the kiosk’s network can face the visitor, in place of the PC’s webcam. We use the BFS-PGE-50S5C. vision.exe streams it and hands Unreal one picture per visitor turn, which Unreal passes on to the agent. This needs the Unreal SDK 2026.46.0 or later, the first version that asks for the pictures.

Nothing to install and nothing to set. vision.exe talks to the camera directly over GigE Vision, the camera’s own network standard, so no FLIR software goes on the kiosk. Connect the camera to the kiosk’s network and start vision.exe. It looks for a FLIR at every start and names the one it found: FLIR: Blackfly S BFS-PGE-50S5C (serial …, at 10.0.0.12). The picture shows in the window, to the right of the depth view.

Give the camera a fixed address. It takes one over DHCP like any other device, but a camera that starts before the DHCP server — after a power cut, say — can end up on an address the kiosk cannot reach. A DHCP reservation, or an address set in the camera itself, avoids that.

It streams as fast as the network allows. vision.exe lets the camera use up to 600 Mbit/s of the kiosk’s network — most of a gigabit card, leaving the avatar its share and some headroom — which is about 14 full frames a second. The camera paces itself to that, so it never takes more. When frames start arriving incomplete, because the network or the PC does not keep up, it slows the camera down a step at a time and says so in its log. Give the camera the kiosk’s own network card, or its own port on a gigabit switch, rather than a busy shared network.

The agent gets the best picture that fits. Each turn’s picture is the camera’s latest frame, up to 2048 pixels on its long side, at the highest JPEG quality that keeps it under 700 KB: the agent’s server takes nothing larger.

Turn the picture upright in the window. A camera often has to be mounted on its side, or hangs a little crooked. Press on its picture and drag round the picture’s centre, like turning a knob. The picture follows the pointer to any angle, and snaps to a right angle when it comes within a degree of one. A turn that is not a right angle leaves black corners: nothing is cut off, and the agent sees the picture exactly as the window shows it. The turn saves itself, as flir_rotation in visionConfig.json. vision.exe --flir-preview shows the FLIR alone, to turn it with no depth camera plugged in.

Unreal decides once per session. When a session starts, Unreal asks the control channel for a picture. If vision.exe answers within two seconds, the session’s pictures come from the FLIR and the PC’s webcam stays closed. If nothing answers, Unreal opens the webcam, as it always has. A restart or a language switch keeps the choice until the session ends. How the asking works on the wire: Pictures from a device.

Once it has used a FLIR, it expects it. A FLIR is remembered, as flir_serial in visionConfig.json, once it has sent its first picture. From then on vision.exe will not run without it: it exits with an error naming the camera, so the supervisor keeps restarting it and the fault shows. It also exits when the FLIR sends no picture for ten seconds. Either way detection stops with it, just as it does without the depth camera. A kiosk that quietly stops seeing its visitors is exactly what this avoids. Meanwhile Unreal sends the agent no picture, and does not switch to the webcam mid-session. Its log says the kiosk channel’s picture device did not answer.

Until then, nothing about a FLIR stops a kiosk. A FLIR that will not open, or sends no picture in its first five seconds, is left alone, and vision.exe runs as it would without one. With more than one FLIR on the network, it uses none and names them all: put the serial of the one that faces this kiosk’s visitor in "flir_serial".

To retire a FLIR for good, set "flir_serial": "", and the next one found is remembered instead. "flir": "off" stops vision.exe looking for one at all.

If the camera is found but no picture arrives — the window stays dark, and vision.exe exits saying it had no picture for ten seconds — check what can stop the stream. The pictures arrive as network packets the PC never asked for, which a firewall may drop. Allow vision.exe in Windows Defender Firewall, or add this rule with the path to your copy:

netsh advfirewall firewall add rule name="Promethist vision FLIR" dir=in action=allow program="C:\path\to\vision.exe" protocol=UDP remoteip=LocalSubnet

Switching a microphone

vision.exe also tells the room’s audio system whether somebody is there, so a microphone can be live only while somebody is. It speaks to a Q-SYS core in the core’s External Control Protocol. When somebody arrives it sets the control CamActiveMic to 1, and when they have gone, to 0 — the same moments it starts and ends the conversation.

It looks for a core called core-avatar.local, with nothing to set. The core’s design needs a control named CamActiveMic, reachable over External Control on TCP port 1702. For a core with another name or port, use --mic-host and --mic-port.

Without such a core, nothing happens. The log says once Mic: no Q-SYS core called core-avatar.local on this network, and that is all. --mic-host "" turns it off altogether.

It sets 0 whenever nothing is watching. It does so when it starts, before the camera has decided anything, and whenever it stops: its window or console closed, a logoff, a shutdown. A vision.exe killed outright cannot, so its next start does. A core it cannot reach never stops detection: it keeps retrying, and says so in the log once a minute.

Options

All optional. On the Unreal machine it usually takes none.

Option Use it when

--ws ws://HOST:9010/link

the camera is not on the Unreal machine. The default is ws://127.0.0.1:9010/link

--token VALUE

the same case: a connection from another machine must present the token

--no-window

you want no window at all. Detection is unchanged, but nothing can be aimed or calibrated — so a camera that has never been calibrated refuses to start this way

--no-ws

you want it to detect and print only, telling Unreal nothing

--client-name NAME

you want it to name itself differently to the kiosk. The default is vision

--mic-host HOST

the Q-SYS core that switches the microphone is not core-avatar.local — see Switching a microphone. --mic-host "" turns microphone switching off

--mic-port PORT

that core’s External Control port is not 1702

--version

you need to know which release this is

When it does not work

Two more options each take the other half of the system out of the picture. That is the only way to tell a camera fault from a wiring one, so on a new machine run them in this order:

  1. vision.exe --send session=true — Unreal, with no camera. If this starts a conversation, the connection, the token and your level’s Blueprint all work, and whatever is still wrong is the camera. --send session=false stops it again. If it does not start one, there is no point looking at the camera yet. Add --ws and --token when Unreal is on another machine.

  2. vision.exe --preview — the camera, with no Unreal. Raw depth and colour side by side: is it plugged in, looking at the right patch of floor, and sending frames?

The extras have one each:

  • vision.exe --flir-preview — the front camera alone, with no depth camera and no Unreal: is the FLIR on the network, streaming, and upright? A turn you give it here is saved as in the full window. Stop the kiosk’s own vision.exe first: a FLIR answers one program at a time.

  • vision.exe --send-mic 1 — the microphone alone, with no camera. It sets CamActiveMic once and prints what the core answered; --send-mic 0 sets it back. It succeeds only when the core confirms the new value: bad_id means the core’s design has no control by that name, and core_not_active that this is the standby core of a pair. Add --mic-host for a core with another name.

ERROR: no RealSense camera found means none is plugged in, or it is a model this version cannot use. When Windows can see one of the retired models, the error names it instead: ERROR: an Intel RealSense L515 is plugged in, but this version cannot use it.

ERROR: the depth camera is not available means it found a camera but could not stream from it — almost always the USB cable, or another program holding the camera. The Camera: line it prints when it starts says which camera it found and whether it is connected over USB 3 or USB 2.