Real-time camera pose estimation for sports fields

Leonardo Citraro, Pablo Márquez-Neila, Stefano Savare, Vivek Jayaram, Charles Dubout, Félix Renaut, Andres Hasfura, Horesh Ben Shitrit, Pascal Fua

Abstract

This paper presents a deep-learning framework for real-time camera pose estimation on sports fields using a single moving, uncalibrated camera. By combining a U-Net for precise keypoint detection with a particle filter for temporal smoothing, the system achieves state-of-the-art accuracy and operates at 20-30 FPS, even in challenging conditions where field lines are sparse or occluded.

Introduction

Accurate camera registration—determining the camera's focal length and its position/orientation relative to the world—is essential for augmented reality (AR) and 3D sports analysis. However, sports arenas are notoriously difficult environments for computer vision. Traditional methods rely on "texture" (unique visual patterns), but sports fields consist of repetitive lines and flat colors. Furthermore, players frequently block the very landmarks needed for registration, and lighting can vary wildly between indoor and outdoor venues. Existing solutions often require prior knowledge of the camera's position or are too slow for live broadcast applications. This paper seeks a "calibration-free" approach that works automatically and in real-time.

Methodology

The authors propose a multi-stage pipeline that leverages both static field geometry and dynamic player positions to estimate camera pose.

The proposed multi-stage pipeline for real-time camera pose estimation.

The pipeline consists of the following stages:

  1. Keypoint Detection (U-Net): A fully-convolutional U-Net architecture performs pixel-wise classification to identify semantic keypoints (fixed intersections and corners) and player keypoints (2D projection of players' feet).
  2. Spatial Context: To handle occlusions, SpatialDropout is used during training, forcing the network to infer keypoint locations from global context when points are hidden.
  3. Homography Estimation: Detected 2D keypoints are matched to known 3D field coordinates. If available, ground-plane player positions from external tracking systems are used as additional dynamic landmarks.
  4. Pose Decomposition: The homography matrix is decomposed into the camera's internal focal length and external pose (rotation and translation).
  5. Temporal Consistency: A Condensation algorithm (particle filter) maintains a probability distribution over possible camera poses to ensure smooth transitions and prevent jitter in video sequences.

Datasets and Evaluation

The system was evaluated across four distinct sports environments:

  • Basketball: Amateur matches filmed with smartphones, featuring challenging lighting and clutter.
  • Volleyball: Broadcast sequences with corresponding player positions.
  • Soccer MLS: Smartphone footage combined with data from 10 fixed tracking cameras for ground-truth player locations.
  • Soccer World Cup: A standard public benchmark (395 images) for state-of-the-art comparison.

Key Insights

  • Players as Landmarks: Using players as dynamic landmarks provides essential correspondences in scenarios where field lines are sparse, such as zoomed-in soccer views.
  • Efficient Inference: By performing non-maximum suppression (NMS) on a single background channel and then identifying point classes, the authors simplify and speed up the inference process.
  • Symmetry Disambiguation: The network is trained to handle field symmetry by swapping point identities based on the camera's relative position, preventing 180-degree orientation errors.

Results

The proposed system achieves high accuracy with a reprojection error typically under 5 pixels for basketball/volleyball and under 7 pixels for soccer on full-HD images.

Qualitative results showing reprojected field lines on (a) basketball, (b) volleyball, and (c, d) soccer fields.

The pipeline operates at 20-30 FPS on an Nvidia TITAN X GPU, making it suitable for live broadcasts. Ablation studies confirmed that both the particle filter and SpatialDropout are critical for maintaining accuracy under occlusion and temporal jitter.

Conclusion

The system provides a robust, real-time solution for camera pose estimation in sports. While it may struggle in extremely narrow views or with unseen clutter, it significantly outperforms traditional SIFT-based methods. Future work includes integrating 3D player joint detection to reconstruct full player poses alongside camera registration.

Summary updated

BibTeX
@inproceedings{citraro2020real,
  author = {Leonardo Citraro and Pablo Márquez-Neila and Stefano Savare and Vivek Jayaram and Charles Dubout and Félix Renaut and Andres Hasfura and Horesh Ben Shitrit and Pascal Fua},
  title = {{Real-time camera pose estimation for sports fields}},
  booktitle = {Mach. Vis. Appl},
  year = {2020},
  url = {https://openreview.net/forum?id=2vUoerJQ4p2},
}
Figure