Setup guide Close
The reader turns a camera picture of the arena scoreboard into the clock, shot clock, score, period and lamps of the graphics. Three parts: the camera, the way its picture reaches this page, and the reader itself.
A The camera
Frame the whole scoreboard, as straight-on as you can. The digits should be at least 25 px tall in the picture. On a PTZ camera, save the framing as a preset.
A fixed picture: manual exposure (iris and gain), fixed white balance, auto focus and auto tracking off.
LED boards flicker: shutter Synchro Scan , turned until the board stops flickering, or 1/100 on 50 Hz mains.
Panasonic AW-UE30: Streaming → RTSP on, H.264 stream 1, 1920×1080, 25 fps. Address rtsp://CAMERA-IP:554/mediainput/h264/stream_1. For SRT, give the camera the relay's address from B.
B Getting the picture to the reader
Choose the one that fits where the camera is:
Same computer, by cable (USB camera, HDMI or SDI capture card): source Camera or capture card . No relay needed.
Camera on the network : the camera relay. Double-click tools/camera-relay/start.command on a Mac that can reach the camera and type one of: the camera's IP (RTSP, best quality), its web port such as 109.74.188.42:5991 (MJPEG, works through a firewall), or push to receive a stream the camera or an encoder sends (SRT, RTMP or RTSP). The window prints two links: On this computer (lowest delay) and From anywhere (https, from any computer). Paste one into source Camera relay . Keep the relay window open.
A player already shows the picture (NDI Studio Monitor, vMix, OBS, VLC): source Screen capture , pick that window. Any picture you can show on this screen can be read.
An MJPEG or HLS address that allows this page to read it (CORS): source Network stream .
C The reader
Open sportsgrafikk.no/klokke on the reading computer (or this page directly: sportsgrafikk.no/klokke/basketball?kanal=…), with the same channel as the control panel. Choose the source and press Start . The picture appears above.
Camera at an angle? Straighten board and click the four corners of the board. A corner outside the picture: click in the dark border where it would be.
For each field: pick it in the list, press Draw and drag a box around its digits. The box snaps to the digits by itself. Drew everything roughly? Snap boxes to digits lines them all up.
A video board (digits in an ordinary font, not segments)? Set Digits as to learned for each field, press Teach digits , type what the board shows and press Learn these . The running clock teaches itself the digits it has not seen; the score and period read the clock's digits until they have been taught. The learned digits are saved with the setup.
Check the small numbers above the boxes against the board. A ? means the digit is unclear: adjust Min contrast and Segment on , and switch on Show segments to see what is measured.
Save . The setup stays in this browser; Copy setup and Paste setup move it to another computer.
Sign in , check the channel, press Publish . In the control panel, set the clock source to Auto , and the sync delay so the graphics match the delayed programme picture.
Keep this tab open and the computer on power. The page warns when the board moves or the picture stops, and the graphics show READER OFFLINE after three seconds without data.
+ The shot clock on its own
When the shot clock is not on the same board as the game clock, or the camera cannot see both well enough, the shot clock gets a second reader window: the button Open the shot clock reader at the top (or sportsgrafikk.no/klokke/basketball?kanal=…&rolle=shot). Two ways to feed it:
A camera of its own. Start the camera relay (start.command) and type the second camera at the question about the shot clock camera. It prints a second link for the shot clock. Paste that into the shot clock window. Without the relay: a USB camera or capture card (source Camera or capture card , pick the second device).
The same camera, a second view. The shot clock window starts with the same source and link as the main window. Give it its own corners and box: Straighten board on the shot clock board, then draw the box around its two digits. Both boards must be in the picture at the same time, at least 25 px per digit; a camera cannot show two framings in turn.
The two windows keep separate setups. Each publishes on its own (the main window to clk, the shot clock window to clk2); keep both open and press Publish in both. The panel takes the shot clock from the shot clock window while it is alive, says SHOT CLOCK READER OFFLINE when it is not, and shows no shot clock then (never a frozen one). A video board with an ordinary font: the shot clock window only knows the digits you have taught it with Teach digits (it has no running game clock to learn from).
What the reader accepts
RTSP, camera on the network Relay, type the camera's IP. H.264, best quality, about 0.3 s delay.
SRT push Relay, type push. Send to srt://RELAY-IP:8890?streamid=publish:cam&pkt_size=1316. Closed network only.
RTMP push Relay, type push. Send to rtmp://RELAY-IP:1935/cam.
RTSP push Relay, type push. Send to rtsp://RELAY-IP:8554/cam.
MJPEG over http Relay, type the camera's web address and port. Works through a firewall, 10 fps.
MJPEG or HLS address Source Network stream . The server must allow this page (CORS).
USB camera, HDMI/SDI capture card Source Camera or capture card . Anything the browser sees as a camera.
NDI, vMix, OBS, VLC, any window Source Screen capture .
Simulator Source Simulator : a scoreboard on this page, for testing without a camera.
Not taken directly: NDI and SDI without a capture card (use a player window or a card). Measured delay from the board to the graphics: clock about 0.1 s, shot clock 0.3 s, score 0.7 s, plus the camera's encoding.