skills/cv/cross-view-count-consistency-filter/SKILL.md
Drop false-positive detections by requiring matched per-frame box counts across paired synchronized camera views (Endzone vs Sideline) — if both views see the same scene at the same instant, true events should appear in both
npx skillsauth add wenmin-wu/ds-skills cv-cross-view-count-consistency-filterInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Multi-camera event detection (NFL impacts, surveillance, sports tracking) provides a free post-processing filter: when two cameras observe the same play from different angles at the same moment, every real event should produce detections in both views. False positives are usually idiosyncratic to a single camera (compression artifact, motion blur in one view only), so frames where the two views disagree on the box count are almost certainly contaminated. This is a one-pass groupby-and-drop that costs nothing but throws away a meaningful chunk of FPs without touching the detector.
import pandas as pd
drop_idx = []
for (gk, pid), _ in test_df.groupby(['gameKey', 'playID']):
play = test_df.query('gameKey == @gk and playID == @pid')
for idx, row in play.iterrows():
f = row['frame']
n_side = play.query('view == "Sideline" and frame == @f').shape[0]
n_end = play.query('view == "Endzone" and frame == @f').shape[0]
if n_side != n_end:
drop_idx.append(idx)
test_df = test_df.drop(index=drop_idx).reset_index(drop=True)
(gameKey, playID) — the unit of synchronized capturedata-ai
Scaled Pinball Loss (SPL) metric for evaluating quantile forecasts, normalized by mean absolute successive differences of training data
data-ai
Walk backward through a time series and multiplicatively rescale segments when jumps exceed a fraction of the running mean to correct data collection anomalies
testing
Transform forecasting target to next/current ratio minus one so that optimizing MAE or squared error implicitly minimizes SMAPE
tools
Convert point forecasts to prediction intervals by scaling with logit-transformed quantile ratios passed through a Normal CDF