Use Python 3.11 or newer, install the pinned packages in requirements.txt, and run python -m control_vision. Accurate full-match robot detection requires a locally trained YOLO model with class 0 named robot; Control Vision does not download weights. A seeded optical-flow preview is available without a model, but it is not accurate enough for scoring or unattended identity attribution. Highlight clips use the FFmpeg binary bundled with the pinned imageio-ffmpeg package, and the packaged Windows build includes FFmpeg. To use a different FFmpeg build, set its path in Settings or put ffmpeg.exe on PATH; either overrides the bundled binary.
The app opens on Home, which shows today's counts, your recent projects as cards, and buttons for a new project, importing a video and resuming the last project. Projects lists every project the app knows about, with search, filters (season, event, team, status), a table or grid view, and Open, Duplicate, Archive, Export project .db, Locate file and Delete. Delete asks first and moves the project file to the Recycle Bin; match videos are never deleted. Duplicate copies the videos and calibration but not the results. A project whose file has moved shows as missing until you locate it.
The sidebar lists the screens in order: Home, Projects and Current project; under Match setup, Import videos, Livestream splitter, Calibrate field and Robots; then Set up and process, Review queue, Scoring timeline, Cycles and stats, Highlights and Score and export, then Datasets and Models (not available in this build yet) and the BIOBUZZ rules. Ctrl+1 to Ctrl+9 open the first nine in that order (Ctrl+8 is Set up and process, Ctrl+9 the Review queue). Ctrl+N starts a new project, Ctrl+O opens a project file, Ctrl+, opens Settings, and ? or F1 lists the shortcuts. The top bar shows the open project, its event, its model and "Local only" (syncing with Scout is not available in this build), with a project search and the Settings, Rules and ? buttons. Result screens stay unavailable until the current video has been processed successfully. Set up and process shows the five setup steps (match video, field calibration, zones and ROIs, robot identities, process) with the state of each; zones and ROIs are optional for processing. While a video is processed, a progress bar shows in the status bar.
Anything you still need to check is shown in orange: flagged events and low-confidence values in the Review queue and Scoring timeline, which also carry a ⚑ flag, a pending referee ruling, and an OCR scoreboard proposal. Where a screen has one main action, such as Process match, Confirm or Export Scout JSON, it is shown in yellow. The Review queue entry in the sidebar shows how many events need review. The app starts in the dark theme; choose Light, Dark or Match Windows under Settings › Appearance; this choice is saved for the computer, not with the project.
Import videos takes MP4, MOV and MKV files by drag and drop or Browse. Each file is checked first (length, resolution, frame rate, size, audio); a vertical video or one longer than 20 minutes is flagged, and a file with the same name and length as one already queued is skipped as a duplicate. Choose the camera view, the match number and whether the video is a holdout (kept out of training and used only to measure the model), then Import. Videos stay where they are; only their paths are added to the project. Downloading from a YouTube link is not available in this build. The lower table lists the project's videos with what each still needs (calibration, robot identities, processing), and its holdout and camera view can be changed there.
Livestream splitter cuts a long stream into one video per match. Automatic match detection is not available in this build, so mark each match by hand: play or step through the stream, press Mark In and Mark Out (or type the times), give the match number and confirm it. Splits shorter than 60 seconds are shown in amber. The draft is saved in the project folder as livestream_splits.json. Create match videos copies each match into the project's matches folder without re-encoding, so a clip can start a little before the marked time (at the previous keyframe), and adds it to the project.
Calibrate field: pick a clear frame, click the four field corners clockwise from the top-left (drag a corner to fix it; a magnifier helps), and check the top-down map. With four corners the corner fit is always close to 0 px, so it is not an accuracy measure: check that the map's grid follows the field's edges. A side view is flagged because trails will be less accurate. Drag on the map to draw pickup, scoring or park zones, then Save calibration. Use this calibration for… copies it to other videos and scales the corners to their resolution; check each one before processing.
Robots: select a robot card and click that robot on the frame where it touches the floor, within the first 3 seconds (the slider is limited to that window, which is when seeds are matched to detections). Enter the team number and alliance, and the starting position if known. Mark a robot as not visible yet if it cannot be seen then; it is kept but not tracked. A duplicate team number or a half-filled card blocks saving, and a split other than 2 v 2 is pointed out. Changing alliances, seeds or the set of robots after a video was processed asks first and marks the video for reprocessing; team numbers and positions can be changed without that.
Later corrections: when a processed match shows a robot lost or mixed up, open Robots, choose Later corrections, select that robot's card, move the slider to the moment and click where the robot touches the floor. The correction is saved at once and listed under the cards; double-click one to go to it, or select it and Delete correction. Corrections apply the next time the match is processed: the robot is put on the detected robot box that contains the click (or the nearest one within 1 second), and its earlier positions on that box since it was last seen are kept. Only robots saved with a start click can be corrected.
-
Create a project with New project: name it and its event (the event code is optional), add match videos, which stay where they are, and choose the detector model. Nothing is saved until Create project. Or reopen a project's
control_vision.sqlitefile. -
Import an MP4, MOV, or MKV. Enter the optional event code and match number. Low resolution and low frame rate produce warnings but do not block import.
-
Choose a clear field frame and click the field corners clockwise, starting at the top-left. The points map to a 12 by 12 foot square. Reuse Calibration copies a previous video calibration and scales the corner pixels to the new resolution; visually confirm it before processing.
-
On the top-down map, choose a zone type and Draw Zone. Click polygon vertices and double-click to finish. Use names that match the field manual. No default zone coordinates are supplied because the manual diagram was not included.
-
Seed each visible robot by clicking near its floor contact point, then enter the team number and alliance. Up to four robots are supported. Seeds are matched to detected robots only during the first 3 seconds of the video, so seed robots that are clearly visible then. The detector sometimes draws a second, short-lived box on a robot. If a seed lands on such a box and it disappears within those 3 seconds, the seed moves to the one other box covering at least half of its last box; with no such box, or more than one, the seed stays where it was. If no seed matches a detected robot in that window, processing stops right away and reports, for each click, how far the nearest tracked robot was, or that a robot was detected but the tracker never started a track for it. Reseed on robots that are clearly visible at the start. For a robot detected without a track, lowering the detection confidence in Settings can also help, because the tracker's track-start threshold follows that setting.
-
Set the tracking method, model path, and confidence threshold under Settings, choose the sample rate in the Process step, then press Process match. YOLO is the intended detector when a validated local model is available. Seeded optical flow shows experimental trails only and omits cycles and movement statistics. It never guesses identity: a robot that is lost, occluded, or too close to a same-alliance robot records no positions until one clear match brings it back, so trails can have gaps or be empty. If no seeded robot records a position, the run is marked as not analysed; if some robots record none, the app names them. The preview sample rate is 5 to 10 frames per second, and seed points must lie inside the video frame. Cancel stops after the current frame. Logs go to
run_logs/.With YOLO, the detection confidence setting also sets the tracker: BoT-SORT's
track_high_threshandnew_track_threshfollow it, so a robot detected at 0.22 under a 0.20 setting can start a track (before, both were fixed at 0.25). Lowering the confidence admits more false detections as well.YOLO identity recovery: BoT-SORT sometimes drops a robot's track and later gives it a new ID. A seeded robot whose track has been missing for at least 0.5 seconds is re-linked to a new track only when every rule holds: the new track ID was never assigned before and appeared after the robot vanished; its first floor point lies within 15 ft/s × elapsed time + 1 ft of the robot's last field position; no other unassigned track has been inside that distance at any frame since the robot vanished; it is the only candidate for this robot and no other missing robot could claim it (one-to-one assignment); and its box shows the robot's alliance colour at a level within three times the robot's reference (measured on its first sightings after seeding) and almost none of the other alliance's colour (up to three times what the robot itself showed, for a robot with parts of the other colour; a robot that shows almost none of its own colour is not rejected for its absence). A robot whose own track is visible is never re-linked, robots that were not seeded are never assigned, and after 20 seconds missing a robot stays lost for the rest of the run. Every re-link and every refusal is logged with time, distance and track IDs. Recovery needs each robot's alliance; the app passes the alliances you entered when seeding. These rules choose an empty trail over a guessed one: they cannot tell apart two robots of the same alliance that show similar amounts of alliance colour, and an unseeded robot that is undetected at the time can still be mistaken for the missing one, so check the trails against the video.
-
To read the final on-video scoreboard, seek to a frame showing the final results screen, then draw tight red and blue score ROIs around those final score digits in Analysis. Broadcasts may move the score between the live overlay and the final screen. Open Export and run the OCR proposal. Review its values and readable-frame count before choosing Use OCR reading. This stores proposed official totals; it does not create per-robot scored events.
The trail view follows the playable video timeline. Cycles are pickup-to-scoring zone trips and carry medium confidence because the current pipeline does not detect game pieces. Each scoring-zone trip creates a zero-point flagged candidate. You can also add a candidate at the current video time for events such as a HIVE tip or PARK. In Review Queue, select the event type, adjust the point count, set confidence, confirm/reject it, and reassign the robot if needed. The event-type presets follow BIOBUZZ Competition Manual TU09; visual evidence still needs human interpretation. Only confirmed points contribute to video totals. Enter the official red and blue alliance totals to compare them. The match remains labeled unreviewed while any flagged events remain.
In Export, set the match type and enter only the Head Referee's disqualification ruling from the official record. For a Qualification match, tick the DQ box for each disqualified team: that team gets 0 match points and 0 Ranking Points, and its alliance partner keeps its points and Ranking Points (T601). For a Playoff match, tick the alliance DQ boxes instead: a DQ applies to the whole alliance, and playoffs award no Ranking Points (13.7). If both alliances are disqualified, choose which alliance was disqualified first or that the DQs were simultaneous (T705); until you do, the result shows as pending a referee ruling. Mark a playoff match final after reviewing every event so the reviewed score decides the winner or tie. Changing the match type asks before clearing rulings that do not apply to the new type.
Generate highlight clips after processing. Clips cover up to three seconds before and after each non-rejected candidate; boundary clips are shorter at the start or end of the video. Double-click a review row to preview its clip, or jump to the source video when no clip exists.
Statistics CSV and Scout JSON exports use the reviewed database values. Official scores are alliance totals, so the Scout team's points_official remains null rather than repeating an alliance value for every robot. Both exports add the match type, each team's DQ state and, for playoffs, the result (win, loss, tie or pending); the Scout JSON also carries the full ruling and playoff outcome. Ranking Points are exported for qualification matches only. Robot PNGs use the largest tracked crop, with confidence as the tie-breaker and a 20% margin. Crops smaller than 200 by 200 pixels are skipped and logged.
No trained weights, labeled dataset, or holdout videos ship with the source. The UI and code do not claim measured ID-switch, track-completeness, cycle-count, scoring, or CPU-performance results. Zone crossings and manually reviewed points are practical scaffolding; score-value inference from robot motion alone is not automatic.
On the Salk Q3 clip, ROIs copied from the live overlay proposed 156–93, which differs from the official 180–103 result. The final results screen moves the scores. ROIs drawn around the final screen's digits proposed 180–103 on the last-12-second window. The red score animates in on that screen (its 4 readable frames read 8, 8, 18, 180); OCR treats 8 and 18 as partial reveals of 180, but only one frame shows 180, so red is flagged at 26% confidence. Blue 103 comes from 2 readable frames and is flagged at 54% confidence. A flagged proposal is shown as low confidence; check the final score on the video before using it. This single clip does not establish general OCR accuracy, and every proposal requires review.
With the local exploratory YOLO model (weak robot recall) at confidence 0.20 and 8 fps, seeds for the blue robot at (600, 545) and the red robot at (1140, 540): before this change only the red robot was tracked, from 1.3 s to 39.6 s (233 positions), and the blue robot never started a track. With the confidence reaching the tracker, the blue robot is tracked for its first 2.1 s (9 positions) and the red robot from 1.3 s to 39.5 s (232 positions). Without the colour and whole-absence rival rules, recovery re-linked the red robot 26 times on this clip and inspection showed many of them landed on other robots, including the blue alliance's robots and the other red robot. With the final rules it makes no re-link here: the candidates either show the wrong colour or appear while another unassigned track is nearby, so both robots stay lost after their tracks end. On a Ri30H qualification clip (fixed side camera that briefly zooms out), one seeded robot went from 75 positions (0–8.6 s) to 390 positions (0–45.9 s) through one re-link 0.58 s after loss and 1.6 ft away, which inspection confirmed was the same robot. These are single-clip observations, not accuracy measurements.
On the same clip the seeded preview records very few positions. With one blue and one red seed at 8 fps, the blue robot produced 23 positions in the first 3 seconds and none after that, and the red seed produced none because no red alliance colour was found near the click. The app names robots without positions after processing, and marks a run where no robot produced a position as not analysed.