OLIDARTS Olicam - Steel-tip dart detection

Standalone dart detection for bristle boards, works with Olidarts

On a classic bristle board, three cameras watch the board and a dedicated Raspberry Pi works out where each dart landed. The cabinet then scores just as it does with an electronic dartboard.

1/4

Installation and setup

Once
PHOTOshots/fr/sisal-montage.jpg
1.1

The cameras

  • Three cameras, spaced 120° apart around the board: one at the top, two at the bottom left and right. Uneven spacing costs accuracy.
  • About thirty centimetres from the centre of the board, slightly in front of it, angled towards the centre. Each camera must see the whole board.
  • Rigid mounts. The maths assumes the cameras never move: a camera that gets knocked must be recalibrated.
  • Plugged straight into the vision Pi, with no hub, and always into the same port. All three cameras carry the same serial number, so the Pi tells them apart by their USB port. Moving a camera to another port is the same as plugging in a new one, which has to be calibrated again.
1.2

Lighting

This is not optional: the cameras are not very sensitive. With only the room lighting, they cannot see the board well enough to follow a game (fewer than 3 frames per second). With a dedicated light, detection is much better.

You need a white, steady, diffuse light, with no shadows or glare on the board.

Lighting made from COB LED strip is recommended.

1.3

The network

The vision Pi talks to the cabinet over the network. Two set-ups are supported:

Direct cable
An Ethernet cable between the cabinet and the vision Pi. The safest option: it does not depend on Wi-Fi. Also connect the Pi to your home Wi-Fi while you calibrate: without it, no PC can reach the calibration page.
Wi-Fi only
The vision Pi and the cabinet on the same network. Simpler to wire. On a Pi 3B+, it is actually the better choice: its Ethernet port shares the cameras' USB bus.

During installation, the Raspberry Pi must be connected to your local network. A direct connection to the cabinet alone will not let you calibrate.

1.4

The vision Pi

Installing the vision Pi

The vision Pi software comes as a ready-to-use image, to flash onto a microSD card. The Download page has the image and the steps up to the first boot.

Coming soon: public download of the vision Pi image.

Pairing the vision Pi with the cabinet

  1. On the cabinet: Settings → Cabinet setup → Open configuration (or F9 on the keyboard from the main screen), then the installer code.
  2. Go to the Board step. On the board type menu, press C and S together: the Camera target screen opens.
  3. The cabinet looks for vision Pis on its networks. Pick yours: Left or Right flashes its green LED, so you know it is the right one.
  4. Enter to pair it. “Configuration sent”: the Pi restarts and connects to the cabinet.
  5. “Vision Pi paired”: done. The Pi's details screen appears.
SCREENSHOTshots/fr/sisal-cherche.png
SCREENSHOTshots/fr/sisal-fiche.png

The details screen shows which cabinet the Pi is paired with, how many cameras are working and calibrated, and whether detection is running. It also gives the address and QR code of the calibration page: that is the next part.

What your choices change

Impact sensor
Do not declare an impact sensor on a cabinet with a bristle board. The vision Pi reports a dart a fraction of a second after impact, and the cabinet would count a MISS on top of every dart.
Several cabinets
A vision Pi is tied to one cabinet only. Another cabinet cannot take it over while its own is switched on.
If you get stuck
“No vision Pi answered”
The Pi is off, or not on the same network as the cabinet. Check the cable or the Wi-Fi, then “Search again”. You can also type its address by hand.
“This vision Pi belongs to cabinet…”
It is already paired with another cabinet that is switched on. Turn that cabinet off, or unplug the Pi from its network, then try again.
“…the vision Pi did not reach the broker”
The configuration arrived, but the Pi could not connect to the cabinet: its password was refused, or it cannot reach the cabinet. On a direct cable, check that it is firmly plugged in at both ends, then “Retry”.
“The paired vision Pi no longer answers”
It is off, or its address has changed. “Look for another vision Pi” finds it again.
2/4

Calibration

2.1

Lens calibration

Once

Why this step

To place a dart to the millimetre, the Pi needs to know two things about each camera: how its lens distorts the image (it is very wide-angle), and exactly where it sits in front of the board. This part measures the first, the next part the second. You measure them once; after that, detection starts on its own every time the Pi is switched on.

Download the calibration chart (A4 PDF, from the page's Lens screen) and print it at 100%, actual size. Check one square with a ruler: 20 mm. Stick the chart onto a flat, rigid piece of card.

Opening the calibration page

  1. On the cabinet, open the Camera target screen (part 1.4) and leave it on screen. The page only opens while it is displayed: camera settings cannot be changed during a game.
  2. On a PC or a phone on your home network, scan the QR code on the details screen, or type the address shown (http://…:8199).
  3. The page shows one card per camera: its live image, its brightness, the status of its Lens and Position, and its Exposure.
SCREENSHOTshots/fr/sisal-page.png

Calibrate the cameras one at a time: first each one's lens, then its position (part 2.2).

The lens

This step is easier with your phone in hand, or with two people.

Once per camera, and only if you replace it. You can do this before mounting, with the camera in your hand.

  1. On the web page, click Lens for the camera to calibrate. Detection pauses.
  2. Move the chart around in front of the camera, all over the image: edges, corners, close, far, tilted. Hold it still for a moment: the photo takes itself, with a beep. Areas already covered show in green.
  3. At around 25 photos, Compute (possible from 10). The page gives the error, a verdict and a corrected photo: its straight edges should be straight again.
  4. Save. If the lens has changed, the camera's position must be redone.
SCREENSHOTshots/fr/sisal-objectif-1.jpg
SCREENSHOTshots/fr/sisal-objectif-2.jpg
SCREENSHOTshots/fr/sisal-objectif-3.jpg
Good
Error under 0.5 px. Nothing to redo.
Fair
Under 1 px. Usable; a few more photos in the corners often improve the result.
Poor
Take new photos, sharper and better spread out, with the chart lying properly flat.
If you get stuck
“Page closed”
The cabinet has left the Camera target screen, or has been switched off. Open the screen again: the page comes back on its own.
The page does not open at all
The vision Pi is connected to the cabinet only by the direct cable. Connect it to your home Wi-Fi as well (part 1.3).
“No camera plugged into the vision Pi.”
Check the USB cables, then restart the vision Pi.
The chart is never detected
Show the whole chart to the camera, well lit, and hold it still for a moment.
2.2

Position calibration

Whenever a camera moves

Why this step

The Pi needs to know where each camera is looking at the board from: its angle, its distance, its height. On the camera's image, you click points of the board whose position is known. Redo it every time a camera moves, and only after its lens.

The cameras are mounted in their final place, with the lighting on. The calibration page opens as it did for the lens: the Camera target screen on the cabinet, then the QR code or the address from the details screen.

Exposure

The slider sets the camera's exposure time live. The page shows the frame rate it allows: the longer the exposure, the brighter the image, but the fewer frames per second the camera takes. With dedicated lighting, a value of around 1000 (10 frames per second) works well. Look for an image that is bright without being blown out, where the board's wires show clearly.

The position

  1. On the camera's card, Position. An image of the empty board appears, with a magnifier that follows the mouse.
  2. Click the 5 requested points, one by one: the centre of the bull, then where the wires 20|1, 6|10, 3|19 and 11|14 meet the outer edge of the double. For a point this camera cannot see: Hidden point. Right-click: undo the last one.
  3. The board's rings are redrawn in green, as the Pi has understood them. If needed, add clicks on other intersections: each one snaps to the nearest.
  4. When the green outline sits on the wires, Save. Detection restarts.
SCREENSHOTshots/fr/sisal-position-1.png
SCREENSHOTshots/fr/sisal-position-2.png
Good
Error under 2 px.
Fair
Under 5 px: check that the green outline really sits on the wires.
Redo
Above that: inaccurate clicks or mislabelled points. “Start again”, or “New image”.

Checking

Detection starts as soon as two cameras have their lens and position done. Three is better: a dart hidden from one camera is still seen by the other two. Leave the cabinet screen, start a game and throw a few darts: each dart should land in its segment.

Coming soon: a test mode in the page, to throw a few rounds, mark each dart right or wrong, and see which camera disagrees with the others.

If you get stuck
“Page closed”, or page unreachable
See part 2.1: the page only opens while the Camera target screen is displayed, and from your home network.
Black or very dark image
Raise the exposure. If the frame rate drops below a few frames per second, the board needs more light.
“Camera behind the board”
The points are mislabelled: they go clockwise, with the 20 at the top.
3/4

Playing on a bristle board

3.1

Olidarts

Every game, local or online, plays as usual. A few differences:

A short delay
A dart is counted once it has stopped moving, a fraction of a second after impact. A hand or an arm in front of the board does not count: detection waits for the image to settle.
Pulling your darts
The Pi sees the board empty and gets ready for the next throw: nothing to do. Changing player is still done with the Next player button.
A dart off the board
A dart that misses the board, or bounces out, is not seen. As on an electronic dartboard, the first press on Next player fills up the throw with MISSes.
The exact spot
Each dart comes with its position to the millimetre. The Practice game shows it on the board, and so does the statistics screen (part 3.3).
B key
The bug report also carries the cameras' images of the throw. Reporting a misread dart this way helps improve detection.
3.2

Correcting a throw

x01 only for now

No detection is perfect: a dart right against a wire can be read in the neighbouring segment.

When?

  • At the end of the throw, while you pull your darts: after the 3rd, or after the first press on Next player in an incomplete throw.
  • When a dart changes the course of the game: it wins the leg, or it zaps an opponent. The cabinet then offers the correction for 10 seconds before applying what follows. Throwing the next dart, or pressing Next player, confirms straight away: the game never waits for a player who carries on.
SCREENSHOTshots/fr/sisal-correction-bouton.png

How does it work?

  1. Open Correct my darts: tap the button, or use Up/Down to select it then Confirm. If you leave it alone, Next player moves on to the next player, as always.
  2. The throw appears: Dart 1, 2, 3, then Confirm and Cancel. Pick the dart to correct.
  3. The board appears, with the segment read highlighted and the point seen by the cameras marked. Left/Right: the neighbouring sector on the board. Up/Down: the neighbouring ring. Confirm keeps the segment, Cancel leaves the dart as it was.
  4. Correct other darts if needed: the throw shows “old ▶ new”.
  5. Confirm applies everything in one go: the scores are recalculated, then the game moves on to the next player. Cancel closes without changing anything.
SCREENSHOTshots/fr/sisal-correction-volee.png
SCREENSHOTshots/fr/sisal-correction-zone.png

The segments offered

A misread always lands next to the real segment, never across the board. So the editor only offers what surrounds the segment read: its sector and the two either side, its ring and the two touching it. The right segment is almost always one press away.

Inner / outer single
The two singles of a sector are called “S20 inner” and “S20 outer”.
A double
Can also become a MISS: the dart may have landed just off the board.
A MISS
A dart that was not seen: the whole board is offered.
No dart
For a counted dart that does not exist. It is removed from the throw, and you can throw it again.

Two-button cabinet

On a cabinet fitted with only Next player and Cancel:

Opening
At the end of the throw, Cancel opens the correction (“Cancel: correct my darts”). At that point it no longer cancels the last dart: “No dart” does that job.
Picking the dart
Cancel moves to the next one: dart 1, 2, 3, Cancel, Confirm. Next player picks it.
Picking the segment
Cancel scrolls through the possible corrections, Next player keeps the one shown.

What a correction changes

The game
The throw is replayed silently with the right segments: bust, zap or end of leg are decided by the rules of the game, as if the dart had been read correctly.
No visible trace
A corrected dart carries no mark, on the cabinet or on the website.
Online
Only your cabinet corrects your darts. Your opponent sees “Waiting for the throw to be confirmed…” while you can still correct, then “Throw corrected by…”.
Detection
Every correction is recorded: that is how the accuracy of the cameras is measured and improved.
3.3

Statistics

SCREENSHOTshots/fr/sisal-stats.png

At the end of a game, the statistics screen shows the heat map of the segments each player hit. On a bristle board, each dart also appears on it as a dot, at the exact spot where it landed, including outside the doubles.

Corrected dart
Its dot is moved into the corrected segment, as close as possible to the measured spot.
Electronic dartboard
No position: just the heat map, as before.
History
Each dart's position is saved with the game.
4/4

Maintenance and troubleshooting

When to recalibrate

A camera has been knocked or moved
Its position.
The board has been rotated or replaced
The position of all three cameras: for them, it is as if they had moved.
A camera has been replaced, or plugged into another port
Its lens, then its position.
The lighting has changed
The cameras' exposure.

Shutting down

The vision Pi has no button. It shuts down automatically when the cabinet shuts down. If it can no longer reach the cabinet, it also shuts down 15 minutes later, or after an hour if it has never been paired. To switch it back on, unplug its power supply and plug it back in.

Known limitations

In these cases, the reading can be one segment out. Correction (part 3.2) is there for them:

  • a dart landing right against a wire
  • a tip hidden by another dart, from one or two cameras
  • a dart that knocks another one already in the board
  • a dart that bounces out: it is not seen.
If you get stuck
No darts are counted any more
The vision Pi is off, or has lost the cabinet. Open the Camera target screen: its details say whether it answers, and whether detection is running.
Darts often land in the neighbouring segment
A camera has probably moved: redo its position. If you don't know which one, redo all three.
Darts are seen late, or twice
The light is changing: a window, an effects lamp on the board. Go back to steady lighting.
A question
On the cabinet, the B key sends a report, with a screenshot and the images of the throw.