Quick Start¶
This guide walks you through analyzing your first padel match video with Padex.
Prerequisites¶
- Python 3.11 or later
- A padel match video file (broadcast footage)
Step 1: Install Padex¶
Step 2: Calibrate the Court¶
Padex needs to know where the court is in your video. The first time you process a video, you'll calibrate by clicking on court keypoints.
This opens two windows:
- Frame selector — Browse the video to find a frame with clear court lines. Use
A/Dto navigate,Enterto confirm. - Keypoint labeler — Click on 12 court keypoints (corners, net, service lines). Use
Nto skip invisible points,Zto undo.
The calibration is saved as match_calibration.json next to your video and reused automatically on future runs.
Tip
You only need to calibrate once per camera angle. If all your videos use the same camera position, you can reuse the same calibration file.
Step 3: Run the Pipeline¶
The pipeline runs three stages:
- Tracking — Detects players (YOLO + ByteTrack), ball (TrackNet), and maps positions to court coordinates
- Bounce detection — Identifies ball bounces and classifies surfaces (ground, wall, fence)
- Shot classification — Detects contact events and classifies shot types (volley, bandeja, chiquita, etc.)
Note
The first run downloads model weights (~130MB) to ~/.padex/weights/. Tracking takes ~5 FPS on Apple Silicon — a 2-minute video processes in about 12 minutes.
Step 4: Export Annotated Video¶
The annotated video includes:
- Player bounding boxes with team colors
- Ball position marker
- Court overlay lines
- Shot type labels displayed on each contact
- Stats overlay (shot counts by type)
Step 5: Iterate¶
Tracking results are cached automatically. On subsequent runs, only bounce detection, shot classification, and video export are re-run — taking seconds instead of minutes.
To force a fresh tracking run:
Next Steps¶
- Court Calibration Guide — Detailed calibration instructions
- Pipeline Guide — Advanced pipeline configuration
- Shot Classification — How shot types are determined
- CLI Reference — All command-line options