Input devices

Docs Documentation

Input devices

Let a network camera, a webcam on another player or your own tracking system sense people, hands and hand signs for a screen or a zone — and, if you allow it, take a photo booth's pictures.

Usually the camera that sees a guest sits on the screen that shows. That is not always the right place: an LED wall has no camera, a fixed network camera already hangs in the ceiling, or a dedicated box does the tracking. An input device senses for a stage or a zone instead of its own camera. It sends what it decided — someone is there, how many, a pointer, a pinch, a swipe, a hand sign — and no pictures. The screen treats it exactly like its own camera. The exceptions: while you calibrate it from the console, its picture comes to your browser tab alone, encrypted end to end; and a photo booth's picture, only from a device you allow.

Two kinds

  • A screen player in sensor mode looks through one of its own cameras or a network camera (rtsp://). Any player you have paired can take this job, and it may keep playing its own stage at the same time. The decisions are made on that player, by the same gesture and presence logic every screen uses.
  • Another system — a depth camera, a people counter, a TouchDesigner or Unity setup — holds a key and streams its own decided input.

Pair a player as a sensor

A sensor is paired exactly like a screen: open the Wunderframe app on the computer that has the camera (or can reach the network camera), and pair it to a stage with the code it shows. The desktop app for Mac and Windows does this from version 0.4.7, and the Raspberry Pi from version 0.4.0; Android TV boxes follow with the next Android TV version (2.3.4), coming soon. Pairing is the trust — there is no second code and no separate sensor login.

A paired device can be any of three things, and it can change later:

  • A player — it shows a stage, as before.
  • A sensor — a box with a camera that shows nothing of its own, for example a small computer above a side zone.
  • Sensor + player — a lobby screen that plays its own stage and, with its webcam, also senses for the LED wall next to it. One device does both.

Set one up

  1. Add the device

    Open Settings → External sensors and scroll to Input devices. Choose A screen player or Another system. The Player list offers every paired device once, and says when one already senses for another input device — a device may sense for several.

  2. Choose which pairing senses

    When the device is paired to several stages, It senses as its pairing with asks which of those pairings does the sensing. Only that pairing receives the keys to send input, so another stage's link to the same device never inherits them. Left blank, it takes the stage the device was seen on last. If that pairing is ever removed, Wunderframe keeps the choice and says so on Devices instead of quietly moving it elsewhere: pair it again, or pick another pairing.

  3. Pick what it looks through

    This device's camera (a built-in or USB webcam), or a network camera.

    For a webcam, pick it from the Camera list: the player reports the cameras it has, by name, and The first camera takes whichever it finds first. A camera you chose that the player does not report right now stays selected, marked (not connected); the device senses again once it is plugged back in and never quietly switches to another camera. The list needs the desktop app for Mac and Windows 0.4.7 or the Raspberry Pi 0.4.0 (Android TV with its next version, 2.3.4, coming soon); with an older app you type the camera's name, or leave it empty for the first one.

    For a network camera, type its address without a login; the user and password go in their own fields, are kept sealed and reach only that player. Change the camera's host or port, or the sensing device, and the stored login is dropped, so it never travels somewhere new unasked.

  4. Add targets

    A target is a stage or a zone the device senses for, with what it senses there: Presence, Hands and pointer, Hand signs. One ceiling camera can watch the side zone of an LED wall and the lectern — a device takes up to eight targets.

  5. Set the active area

    The active area is the part of the camera's picture that maps onto the stage — where people stand and point. Hands outside it are ignored. On the target's row, Calibrate here opens the device's live camera picture in the console with the area drawn over it: drag its four corners (or inside it to move it), use Reset to whole picture to start again, and Save. The device uses the new area at once. The stage's size is shown beside it, so you can see when the area will look stretched.

    The picture reaches only your browser tab, encrypted end to end: your tab and the device agree on a fresh key that the server never has, so neither Wunderframe nor anyone else can see it. It is small (a few frames a second), flows only while the view is open, stops when you leave it, and is never stored. The device shows that its picture is being shared while it is. Only owners and editors can open it.

    Showing the picture needs the desktop app for Mac and Windows from version 0.4.11 or the Raspberry Pi from version 0.4.1 (both update themselves); Android TV comes with its next version (2.3.4), coming soon. Until then — or when the device is offline — you can still set the corners over an empty frame, or use Calibrate on the device, which shows the same picture and corners on the sensing player's own screen for someone standing at it.

  6. Calibrate the hands on the screen

    Once the stage takes its hands from the input device (next step), the stage's own calibration wizard tunes the pointer for the people who will use it. On the device's target row, choose Calibrate hands on the screen (or Calibrate on the stage, as for a screen with its own camera). The wizard opens on the stage's browser screen; stand where visitors stand and follow it: stand still for a moment (the distance), draw a small rectangle in the air with a relaxed hand, open and pinch three times, then hit three circles. Afterwards, move the pointer around and choose Slower or Faster until it feels right — the change is immediate — and Save. The result shows how many circles you hit and how far off you were on average, in % of the screen.

    The calibration is stored with the input device for that stage, and the device uses it at once. While the wizard is open, the device sends its hands through Wunderframe's cloud so the browser screen can follow them, and goes back to the venue network when you close it. While a calibration runs, the device's row says Calibration running on … with Stop: an owner or editor can end it from the console at any time, and the screen closes the wizard with Stopped from the console. Only one calibration of a device runs at a time; a second one says what is running and offers that Stop. The wizard runs on a browser screen; the sensing player needs its next app version (desktop, Raspberry Pi and Android TV), coming soon.

    For a stage set to absolute pointing (the pointer goes where the hand points — tiring for long use, so trackpad-like pointing is the default), Set the area also offers Advanced: calibrate by pointing, which fits the area from four rings you point at.

  7. Choose it on the stage

    On the stage (or zone), set Camera under Visitors can use this screen and Notice people to the input device. The screen then opens no camera of its own for that use. A spanning video wall may take hands this way, because one camera sees the whole wall.

Send a pointer to this stage, on the device's row, moves a pointer, presses and swipes, and sends presence, then draws what the stage's screens receive, with the delay. A presence fact is a reading of the sensor, so rules, charts and history read it like any external sensor, and send_sensor_reading tests a rule without a camera.

Is the camera working?

Each input device's row carries a chip with its camera as the sensing player last reported it:

  • Camera on · 15 fps — it sees, at that rate.
  • Camera not connected — the chosen webcam is unplugged or not found. Hover the chip for the player's own words.
  • Camera error — the camera is there but would not open.
  • Network camera reachable or unreachable — for a network camera.
  • Not sensing yet — the player is online but has not started sensing for this input device, for example because its app is too old.
  • Player offline — the sensing player has not been heard from for a while.

Coming soon with the next desktop, Raspberry Pi and Android TV apps: the chip tells the camera and the hand tracking apart — Camera 30 fps · Hands 27/s, or Camera 30 fps · Waiting for someone near (face check 2/s) while the stage's face check holds the hands back. When the hands are wanted but tracked fewer than about 12 times a second, a warning says the pointer will jump: the device is overloaded or too slow, and a stronger device should sense. The player also heals itself: if the face check misses the person for a few seconds it looks for hands anyway (at a lower rate, until it finds one), and a camera that stops sending pictures is opened again — the chip then says how often.

The sensor sign on Devices

On Venue → Devices a device that senses carries a Sensor chip, or Sensor + player when it also plays a stage. Its row says what it senses for and how the input travels — Input over the LAN or Input over the cloud — high latency. Open it, and the Sensing part of the drawer shows each input device with its targets, the camera (a webcam's name, or a network camera's address — never its login), which pairing it senses as, and for each receiving stage the path and the delay, such as LAN · 31 ms. An input device that may take booth photos has a Takes booth photos chip there. The Sensors filter lists only these devices.

Network cameras

Most IP cameras work: they stream H.264 or H.265 over rtsp:// (or rtsps://). The Wunderframe desktop app for Mac and Windows reads them from version 0.4.7 and the Raspberry Pi from version 0.4.0, with nothing extra to install. Android TV players follow with the next Android TV version (2.3.4), coming soon.

How input travels

Input always tries the venue network first and falls back to the cloud on its own:

  • The venue network (LAN) is the fast path: the device streams straight to the screen, signed with that screen's own key, from private addresses only. For a video wall it streams to the wall's leading screen, which passes every move to the other screens over the link they already use to stay in step, so the pointer is drawn on every panel together.
  • The cloud takes over when there is no way through the network — the sensor and the screen sit on different networks, or a firewall stands between them. The sensor sends every move the moment it sees it, straight into the screen's private channel (desktop app 0.4.10 and Raspberry Pi 0.4.1 or later), so a pointer stays smooth; it arrives a little later than over the LAN. The sensor keeps looking for the LAN all the while and switches back as soon as it finds it; a move never arrives twice.

Devices shows which path each stage gets, and its delay. Seeing Cloud where you expected LAN? Put the sensing device on the same network as the screen.

Booth photos

A sensing player can also take the pictures of a photo booth — useful where the screen's own camera sees badly or there is none: the side zone of an LED wall, a screen behind glass, a booth lit from the side. It is the one case where an input device sends a picture, and it is off until you allow it.

  1. Allow it on the device

    Edit the input device and turn on May take booth photos. It is off by default, and only a screen player has it — another system never takes photos. The row then carries a Takes booth photos chip and names the booths that use it, such as Booth: Main LED › Side.

  2. Choose it as the booth's camera

    On the stage or zone, under Photo booth, set Camera to the input device. The list offers This screen's camera (the default) and every input device that has this stage or zone as a target. One that may not take photos is shown but cannot be chosen, with the reason. A zone's booth needs the zone itself as a target, a stage's booth the stage. Visitors still need a way to choose on the screen — hands or touch.

  3. Take the photo

    When the countdown ends, the screen asks the input device for one photo at full resolution. From there it is an ordinary booth photo: it develops on the screen, the visitor keeps it or takes another, and the QR code, the engagement's gallery, moderation and deletion work as for any booth photo.

Preview, several screens and turning it off

  • Preview only on the venue network. While the booth is open on a screen, the input device sends a small live picture straight to that screen over the venue network, so the visitor sees themselves, framed on the faces. It is encrypted on the way and never goes through the cloud. Where the screen cannot reach the device on the venue network — other networks, a firewall, a browser screen — the booth shows a framing guide with the camera's name during the countdown instead, and the photo is taken all the same.
  • Several screens, one photo at a time. One input device can serve the booths of all its targets, up to eight stages or zones. It takes one photo at a time: when two booths count down together, the second waits a few seconds and, if the camera is still busy, tells the visitor The camera is busy, one moment and goes back to the preview to try again.
  • Turning it off works at once. Turn off May take booth photos and every preview stops and no further photo is taken. A booth that chose the device says The booth camera is off until you pick another camera or turn it back on. Removing the booth's stage or zone from the device's targets, or deleting the device, does the same. A photo already taken stays the visitor's to keep or discard.

Agents allow it with save_input_device (booth_photos) and choose it with set_stage_booth (camera).

Connect your own system

An outside system reads the screens with its key from GET /api/v1/sensors/<key>/endpoints, opens ws://<screen>/wf/v1/input on each one with a handshake signed for that one screen, waits for the screen to prove it holds the same key, and sends small JSON frames with coordinates from 0 to 1 of the target, each sealed with a short signature of that connection. When there is no local path it posts the same frames to /api/v1/sensors/<key>/frames; only Wunderframe passes them on to the screens. Your system reaches browser screens over the cloud today, and the desktop app for Mac and Windows (version 0.4.7 or later) and the Raspberry Pi (version 0.4.0 or later) over the venue network too. Android TV players follow with the next Android TV version (2.3.4), coming soon.

Frames
{"t":"in","seq":4182,"at":1793450000123,"ev":{"kind":"pointer","phase":"move","x":0.412,"y":0.655,"source":"hand","pointer_id":1}}
{"t":"in","seq":4183,"at":1793450000140,"ev":{"kind":"pinch","progress":1,"closed":true,"pointer_id":1}}
{"t":"facts","seq":4190,"at":1793450000500,"presence":{"state":"engaged","count":2}}

A late move is dropped, never queued; a press is never lost or doubled. Small reference clients in Node and Python, with no dependencies, do the handshake, follow a wall's leader and fall back to the cloud — ask us for them, or see the API reference. Wiring up a tracking system? Write to hello@maravillalabs.com; we're glad to help you get the first pointer on screen.