Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AggieSportsAnalytics/CourtCheck
/ functions
Functions
770 in github.com/AggieSportsAnalytics/CourtCheck
⨍
Functions
770
◇
Types & classes
89
↓ 41 callers
Function
cn
(...inputs: ClassValue[])
frontend/web/lib/utils.ts:4
↓ 18 callers
Function
rec
( i: number, playerIdx: number, daysBack: number, fh: number, bh: number, sv: number, inB: numbe
frontend/web/lib/demo/demoData.ts:121
↓ 12 callers
Function
_make_swing
(peak_frame: int, track_id: int, label: str = "Forehand")
backend/tests/test_rallies.py:18
↓ 11 callers
Function
pct
(n, total)
backend/pipeline/run.py:1315
↓ 10 callers
Method
_go
(i, reason = 'api')
docs/brand-drop/mocks/case-comp/deck-stage.js:1296
↓ 10 callers
Function
_winner_from_end_reason
(end_reason: str)
backend/pipeline/rallies.py:172
↓ 10 callers
Function
daysAgo
(n: number)
frontend/web/lib/demo/demoData.ts:62
↓ 9 callers
Function
_direction_from_coords
Bucket a bounce into long / wide / net. Order matters: net zone wins over long/wide because a bounce right at the net is ambiguous in pure-co
backend/pipeline/rallies.py:141
↓ 9 callers
Function
_make_fake_court_ref
Court reference with the same pixel bounds as CourtReference uses. left_x = 286, right_x = 1379 (span 1093) top_y = 561, bottom_y = 2935 (sp
backend/tests/test_rallies.py:22
↓ 9 callers
Method
is_available
(self)
backend/models/stroke_classifier_tcn.py:139
↓ 9 callers
Function
read_manifest
(path: Path)
backend/tools/_swing_io.py:34
↓ 9 callers
Function
useAuth
()
frontend/web/contexts/AuthContext.tsx:96
↓ 8 callers
Method
_advance
Step forward/back skipping any slide marked data-deck-skip. Falls * back to _go's clamp-at-ends behaviour (flash overlay) when there's * n
docs/brand-drop/mocks/case-comp/deck-stage.js:1310
↓ 8 callers
Function
get_supabase_client
Return a Supabase client. Reads credentials directly from the .env file to avoid stale shell env vars overriding load_dotenv() — same pattern
backend/tools/_swing_io.py:56
↓ 7 callers
Method
_fit
()
docs/brand-drop/mocks/case-comp/deck-stage.js:1157
↓ 7 callers
Function
build_rallies
Build structured rallies from raw pipeline streams. Output shape documented in docs/RALLY_TRACKING_SPEC.md.
backend/pipeline/rallies.py:331
↓ 7 callers
Function
checkRateLimit
(opts: RateLimitOpts)
frontend/web/lib/ratelimit.ts:17
↓ 7 callers
Function
clientIp
(req: Request)
frontend/web/lib/ratelimit.ts:61
↓ 7 callers
Function
rateLimitResponse
(retryAfterSec: number)
frontend/web/lib/ratelimit.ts:70
↓ 6 callers
Function
_ball_at
Build a ball_track list of length n_frames with positions at given frames.
backend/tests/test_rallies.py:36
↓ 6 callers
Method
infer_single
Processes a single frame, using internal buffer for context.
backend/models/ball_tracker.py:141
↓ 6 callers
Method
predict
(self, x_ball, y_ball, smooth=True)
backend/models/bounce_detector.py:79
↓ 6 callers
Function
t
(frame: int)
backend/eval/run_eval.py:133
↓ 6 callers
Function
update_progress
(value: float, stage: "str | None" = None)
backend/pipeline/run.py:1650
↓ 5 callers
Function
_build_event_stream
Merge bounces and swings into one frame-sorted event list. Each event has: - kind: "bounce" | "swing" - frame: int - bounce ext
backend/pipeline/rallies.py:44
↓ 5 callers
Method
_closeConfirm
()
docs/brand-drop/mocks/case-comp/deck-stage.js:1651
↓ 5 callers
Method
_flashOverlay
()
docs/brand-drop/mocks/case-comp/deck-stage.js:1135
↓ 5 callers
Function
_is_plausible
(svg_x: float, svg_y: float)
backend/pipeline/rallies.py:100
↓ 5 callers
Function
_project_bounce_to_svg
Project a bounce's ball pixel position through homography into svg units. Returns None if any input is missing or projection fails.
backend/pipeline/rallies.py:107
↓ 5 callers
Method
_scaleThumbs
()
docs/brand-drop/mocks/case-comp/deck-stage.js:1574
↓ 5 callers
Method
detect_frame
Detect players in a single frame and extract pose keypoints. Args: frame: Single video frame (numpy array, BGR).
backend/models/player_tracker.py:97
↓ 5 callers
Method
index
Current slide index (0-based).
docs/brand-drop/mocks/case-comp/deck-stage.js:1719
↓ 5 callers
Function
load_calibration
Load homography matrices and keypoints for a camera from the calibration JSON. Returns: (H_ref, H_frame, keypoints) H_ref:
backend/vision/calibration.py:76
↓ 5 callers
Function
normalize_pred_label
(label: str)
backend/eval/run_eval.py:33
↓ 4 callers
Method
_applyIndex
({ showOverlay = true, broadcast = true, reason = 'init' } = {})
docs/brand-drop/mocks/case-comp/deck-stage.js:1087
↓ 4 callers
Method
_closeMenu
()
docs/brand-drop/mocks/case-comp/deck-stage.js:1637
↓ 4 callers
Function
_far_player_score
Return a positive score if this detection is a valid far player, else 0. Projects the bbox foot position to court-space using H_ref and chec
backend/models/player_tracker.py:22
↓ 4 callers
Function
_interpolate_player_detections
Fill empty player-detection frames by linearly interpolating between the nearest non-empty frames on either side. Empty frames arise whe
backend/pipeline/run.py:87
↓ 4 callers
Function
_nearest
Return (event_index, distance) of the nearest event within ±window, or None.
backend/eval/annotate.py:71
↓ 4 callers
Function
_segment_events_into_rallies
Split a sorted event list into rally groups by RALLY_GAP_SECONDS. A gap > gap_frames between consecutive events starts a new rally.
backend/pipeline/rallies.py:83
↓ 4 callers
Method
_syncRailHidden
()
docs/brand-drop/mocks/case-comp/deck-stage.js:1225
↓ 4 callers
Function
build_rally_summary
Aggregate rally stats for the match-detail tile rail and Coach card. Truncated rallies (clipped by the recording's start/end) keep their leng
backend/pipeline/rallies.py:381
↓ 4 callers
Function
f1
(precision: float, recall: float)
backend/eval/run_eval.py:89
↓ 4 callers
Function
formatMB
(bytes: number)
frontend/web/app/upload/page.tsx:19
↓ 4 callers
Function
formatValue
(v: number)
frontend/web/components/dashboard/CountUp.tsx:41
↓ 4 callers
Function
project
(frame_idx, x, y)
backend/pipeline/run.py:385
↓ 4 callers
Function
run_pipeline
Main pipeline entry point (Modal-compatible).
backend/pipeline/run.py:1550
↓ 4 callers
Function
safePct
(n: number, d: number)
frontend/web/app/page.tsx:194
↓ 4 callers
Function
useEntranceReveal
(dep?: unknown)
frontend/web/components/viz/useEntranceReveal.ts:14
↓ 4 callers
Function
useRecordingsData
()
frontend/web/lib/hooks/useApiData.ts:100
↓ 4 callers
Function
write_manifest
(path: Path, df: pd.DataFrame)
backend/tools/_swing_io.py:40
↓ 3 callers
Function
_apply_affine
Apply 2x2 affine matrix M to (x, y) channels. Confidence untouched.
backend/training/train_tcn.py:77
↓ 3 callers
Method
_collectSlides
()
docs/brand-drop/mocks/case-comp/deck-stage.js:1010
↓ 3 callers
Function
_detect_court_once
Run court detection on the provided frames and return the homography matrix + keypoints from the frame with the most valid detected keypoints
backend/pipeline/run.py:187
↓ 3 callers
Method
_emitDeckChange
(detail)
docs/brand-drop/mocks/case-comp/deck-stage.js:1656
↓ 3 callers
Function
_make_H_ref
Return the real uc_davis_court1 H_ref from calibration.
backend/tests/test_far_court_detection.py:14
↓ 3 callers
Function
_make_court_bounds
()
backend/tests/test_far_court_detection.py:25
↓ 3 callers
Method
_moveSlide
(i, j)
docs/brand-drop/mocks/case-comp/deck-stage.js:1699
↓ 3 callers
Function
_project_foot
Project a player's foot position (bottom-center of bbox) to court reference space.
backend/models/player_tracker.py:6
↓ 3 callers
Function
_supabase
()
backend/tools/label_swings.py:49
↓ 3 callers
Function
applySpeed
(rate: number)
frontend/web/components/features/recordings/VideoPlayer.tsx:166
↓ 3 callers
Method
build_court_reference
Create court reference image using the lines positions
backend/vision/court_reference.py:110
↓ 3 callers
Function
cleanTitle
* Tidy a raw recording title for display — strips the file extension and * collapses underscores. Used when the upload didn't supply an explicit titl
frontend/web/app/recordings/page.tsx:59
↓ 3 callers
Function
compute
(key: StrokeKey)
frontend/web/components/recordings/VizPanel.tsx:251
↓ 3 callers
Function
compute_bounce_positions
For each bounce frame, return its court coords + side, or None if invalid. Returns dict mapping bounce_frame -> { "svg_x": float, # 0-30
backend/pipeline/run.py:241
↓ 3 callers
Function
confusion_matrix
(y_true, y_pred, n_classes)
backend/training/eval_tcn.py:88
↓ 3 callers
Function
demoOn
()
frontend/web/lib/hooks/useApiData.ts:27
↓ 3 callers
Function
err_rate
(key: str)
backend/pipeline/run.py:1455
↓ 3 callers
Method
estimate
Returns: H_ref: frame -> reference court H_frame: reference court -> frame
backend/vision/homography.py:43
↓ 3 callers
Function
fmtTs
(sec: number)
frontend/web/components/recordings/RallyTable.tsx:61
↓ 3 callers
Function
get_supabase
()
backend/pipeline/storage.py:68
↓ 3 callers
Function
handleFile
(file: File)
frontend/web/components/courtcheck/VideoUpload.tsx:17
↓ 3 callers
Function
inPct
(inB: number | null, outB: number | null)
frontend/web/app/players/[id]/page.tsx:67
↓ 3 callers
Method
infer_with_far_roi
Main pass + ROI backfill in one call. Strategy: - Always run the main full-frame pass (preserves trajectory continuity
backend/models/ball_tracker.py:349
↓ 3 callers
Function
pct
(n: number)
frontend/web/components/features/dashboard/PlayerStats.tsx:34
↓ 3 callers
Function
playerPhotoProxyUrl
(photoUrl: string | null | undefined)
frontend/web/lib/utils.ts:23
↓ 3 callers
Method
postprocess
:params feature_map: feature map with shape (1,360,640) prev_pred: [x,y] coordinates of ball prediction from previous
backend/models/ball_tracker.py:179
↓ 3 callers
Function
redraw
()
backend/tools/calibrate_court.py:76
↓ 3 callers
Function
temporal_derivatives
Append temporal derivatives to a (T, D) pose feature sequence. Velocity (1st derivative) carries direction-of-motion signal that raw position
backend/training/features.py:191
↓ 3 callers
Function
toggleSelect
(id: string)
frontend/web/app/recordings/page.tsx:176
↓ 3 callers
Function
tryFetch
(cols: string, ownerFilter: boolean)
frontend/web/app/api/players/route.ts:60
↓ 3 callers
Function
usePlayersData
()
frontend/web/lib/hooks/useApiData.ts:83
↓ 3 callers
Function
useVizReveal
( selector: string, options: { staggerMs?: number; durationMs?: number; depKey?: unknown } = {}, )
frontend/web/components/viz/useVizReveal.ts:24
↓ 2 callers
Method
__init__
(self)
backend/models/stroke_detector.py:10
↓ 2 callers
Method
__init__
(self)
backend/models/inpaint_net.py:41
↓ 2 callers
Method
_clearDrop
()
docs/brand-drop/mocks/case-comp/deck-stage.js:1598
↓ 2 callers
Method
_enableRail
()
docs/brand-drop/mocks/case-comp/deck-stage.js:603
↓ 2 callers
Function
_format_bytes
(n: int)
backend/tools/cleanup_swing_clips.py:35
↓ 2 callers
Method
_load_kp
(self, idx: int)
backend/training/train_tcn.py:226
↓ 2 callers
Function
_lookup_stroke_label
Look up the stroke label for a given frame from frame_stroke_labels. Searches frame_idx and a ±window frame window around it. Returns the
backend/vision/heatmaps.py:34
↓ 2 callers
Method
_markLastVisible
Tag the last non-skipped slide so print CSS can drop its * break-after (see the @media print comment above — :last-child * alone matches a
docs/brand-drop/mocks/case-comp/deck-stage.js:1055
↓ 2 callers
Method
_materialize
Lazily build the clone for a thumb that has scrolled into view.
docs/brand-drop/mocks/case-comp/deck-stage.js:1475
↓ 2 callers
Function
_player_color
(track_id: int)
backend/vision/drawing.py:187
↓ 2 callers
Function
_project_point
Project a frame-space point to court-space via homography. Returns (cx, cy) or None.
backend/vision/heatmaps.py:24
↓ 2 callers
Method
_renderRail
()
docs/brand-drop/mocks/case-comp/deck-stage.js:1329
↓ 2 callers
Function
_run
(codec)
backend/pipeline/run.py:41
↓ 2 callers
Function
_run_ffmpeg
(codec: str)
backend/pipeline/storage.py:24
↓ 2 callers
Function
_save_heatmap_png
Save a heatmap image to disk as landscape (rotated 90 CW so near baseline is on the right).
backend/vision/heatmaps.py:192
↓ 2 callers
Method
_setRailWidth
(px)
docs/brand-drop/mocks/case-comp/deck-stage.js:965
↓ 2 callers
Function
_side_matches
(bounce_side, expected_side)
backend/pipeline/run.py:505
next →
1–100 of 770, ranked by callers