The problem
Electronic dartboards score automatically, but steel-tip boards don't, and the camera systems that do it usually cost a lot and need special hardware. I wanted a scorer that works with a regular board and the devices we already had: an iPad, a cheap webcam and the TV.
How a dart gets scored
- Auto-alignFinds the board in the camera picture and calibrates the view to about 1 mm.
- DetectCompares each frame with the empty board to spot a new dart.
- Find the lineWorks out the dart's line and where its tip is.
- FuseCombines every camera's line into one position and votes out the odd one.
- ScoreMaps the position onto the board geometry and updates the game.
More cameras, more accuracy
Each camera sees a dart as a line. Mapped onto the board, that line runs through the tip, so lines from cameras at different angles cross at the tip. When cameras disagree, for example because one picked the wrong end of the dart or saw a shadow, a vote throws out the odd one.
Safari on an iPad can only run one camera at a time, so extra angles come from phones. You scan a QR code, stand the phone up and tap Auto-align. The phone runs detection itself and sends only the dart's position over a direct peer-to-peer connection, not video.
| Setup (simulator, 30 darts) | Scored correctly | Median error | Worst error |
| 1 camera | 26–27 | – | occasional big misses |
| 3 cameras | 29 | 1.2 mm | 2.4 mm |
Games
| Classic | Practice | Arcade |
| X01 (301/501/701, double in/out) | Bob's 27 | Zombie Shooter |
| Cricket (standard, random, hidden) | 121 | Asteroid (co-op) |
| Around the Clock | Checkout Streak | Lumberjack |
| Shanghai | Power Scoring | |
| Killer | | |
A caller voice announces scores, checkout suggestions highlight the target on the board, and stats track averages and marks per round. If a dart is read wrong, you tap it and then tap where it really landed. Undo works across turns.
Decisions I made
- No build step and no dependencies. Plain scripts loaded in order keep it easy to host on GitHub Pages and to open on any device.
- A built-in simulator. It renders a board and throws virtual darts from three angles, so I can test detection, alignment and fusion without a board or cameras.
- Phones send positions, not video. That keeps the connection light enough for home Wi-Fi.
- New games are one entry. Adding a mode to a single list makes it show up in the game picker automatically.