Futsal Markerless Analysis
A Python package and command-line tool for lower-limb pose processing, calibrated three-dimensional reconstruction and kinematic analysis of the futsal instep kick.
QUICK START
Install and run the example
Start with a synthetic trial to see the complete command-line workflow and exported files.
git clone https://github.com/FabianNanaAlfaro/futsal-markerless-analysis.git
cd futsal-markerless-analysis
python -m pip install .
futsal-markerless demo --output demo-output --frames 64
See installation options and pose-system commands ↗
- Language
- Python 3.10–3.12
- Pose routes
- Sports2D · MediaPipe · DeepLabCut
- Reconstruction
- Calibrated two-camera DLT
- Exports
- CSV · JSON
ANALYSIS SEQUENCE
From image coordinates to kinematics
Manual DVIDEOW trackingFrame-by-frame 2D coordinates; used for subsequent evaluation.
Pixel-space tracksSports2D · MediaPipe Pose · DeepLabCutEach estimator produces an independent 2D track.
Pixel-space tracksThe manual reference bypasses automated 2D curation. Camera synchronization, frame correspondence and calibration are supplied for each study.
INSTALLATION AND USE
Install the package
Install the numerical core in a virtual environment. Pose-estimation systems are optional extras and are best installed in separate environments to manage their computer-vision and GPU dependencies.
git clone https://github.com/FabianNanaAlfaro/futsal-markerless-analysis.git
cd futsal-markerless-analysis
python -m venv .venv
python -m pip install --upgrade pip
python -m pip install .
futsal-markerless demo --output demo-output --frames 64
The synthetic demo writes processed 2D tracks, reconstructed 3D kinematics, a 101-point phase curve, reprojection diagnostics and run metadata. It contains no thesis observations.
MediaPipe Pose
python -m pip install ".[mediapipe]"
futsal-markerless pose-mediapipe \
--video camera-1.mp4 --camera CAM_1 --side right \
--roi-config roi.json --output camera-1-tracks.csv
DeepLabCut with local weights
futsal-markerless pose-dlc \
--model ResNet-101 --model-bundle ./study-models/ResNet-101 \
--video camera-1.mp4 --camera CAM_1 --output predictions
DeepLabCut pose and detector weights are not distributed in the repository or its Releases. The command requires a compatible local model bundle. See the benchmark guide for environment details.
TWO-DIMENSIONAL ESTIMATION
Pose systems
| Route | Study procedure | Output and configuration |
|---|---|---|
| Sports2D | YOLOX with the Halpe-26 body-with-feet pose model; candidate ordering by greatest displacement; DeepSORT tracking. An unusable initial track received a separate manual target-selection rerun. | Native Sports2D products and canonical 2D tracks. The runnable TOML example records which settings are not specified in the thesis. |
| MediaPipe Pose | Version 0.10.21; inference over 33 landmarks with a fixed region of interest per camera and kicking side. Retain the kicking-side hip, knee, ankle and Foot Index. | ROI coordinates are mapped back to original-image pixels before shared homologation and reconstruction. |
| DeepLabCut | Five trained configurations estimate eight bilateral lower-limb points: hip, knee, ankle and foot on each side. | Portable configuration records and benchmark metadata are included. Checkpoint weights and the annotated dataset are not distributed. |
DEEPLABCUT MODEL COMPARISON
Five trained configurations
Each architecture was trained in one exploratory run. The values below are from the participant-level selection-validation partition; they do not establish a general ranking of architectures.
| Architecture | Selected epoch | RMSE (px) | RMSE, p-cutoff 0.6 (px) | mAP | mAR |
|---|---|---|---|---|---|
| ResNet-101 | 25 | 12.55 | 12.25 | 84.88 | 90.75 |
| HRNet-W48 | 35 | 12.49 | 12.26 | 86.75 | 90.91 |
| RTMPose-S | 15 | 13.82 | 13.64 | 77.40 | 85.93 |
| RTMPose-M | 28 | 15.54 | 14.58 | 66.23 | 76.00 |
| RTMPose-X | 4 | 15.62 | 15.83 | 61.29 | 75.06 |
The training set contains 3,181 labelled frames (2,324 training; 857 validation). Labels were sampled one frame in four across full 240 Hz sequences. This describes annotation sampling, not inference stride or the strict ten-frame evaluation subset before impact.
Architecture settings, checkpoint identifiers, hashes and inference parameters are recorded in the portable configuration records and the benchmark documentation.
THREE-DIMENSIONAL PROCESSING
Biomechanical methods
| Operation | Convention and parameters |
|---|---|
| Landmark schema | Estimator labels map to hip, knee, ankle and foot. Side-bearing labels are filtered by the selected kicking side; pixel coordinates retain camera and frame identifiers. |
| 2D curation | Markerless tracks use a five-frame Hampel half-window with a three-MAD threshold, short-gap interpolation up to five frames (PCHIP with linear fallback), then a five-sample, second-order Savitzky–Golay filter. Manual DVIDEOW tracks bypass this stage. |
| DLT reconstruction | At least two synchronized views are triangulated using researcher-supplied 3×4 projection matrices or 11 classical DLT coefficients. Output units follow the calibration. |
| Common 3D filter | First-order, zero-phase 18 Hz Butterworth low-pass at 240 Hz, followed by robust LOWESS with span 0.10. Finite segments are processed separately. |
| Axes and angles | X anterior–posterior, Y mediolateral, Z vertical. In the sagittal X–Z plane, +X is anterior and +Z is superior. Knee extension is 0°, flexion positive and hyperextension negative. Ankle neutral is 0°, dorsiflexion positive and plantarflexion negative. |
| Derived variables | Three-dimensional positions, vector-speed magnitudes and angular velocities in degrees per second. Angular velocity is derived from the unwrapped angle signal before phase normalization. |
| Phase and bilateral metrics | The declared pre-impact-to-impact interval is mapped to 101 points. Speed symmetry is signed: IS = 200 × (D − ND) / (D + ND), where D and ND are dominant and non-dominant speed magnitudes. |
Positive IS indicates greater speed in the dominant leg; negative IS indicates greater speed in the non-dominant leg; zero indicates equal magnitudes. Joint-angle and angular-velocity differences use signed dominant minus non-dominant values.
STUDY INPUTS AND EXPORTS
Bring videos and calibration
| Input | Description | Export |
|---|---|---|
| Video and 2D tracks | Synchronized camera views, or CSV observations with frame, camera, landmark, pixel coordinates and confidence. | Canonical 2D observations and per-frame processing metadata. |
| Camera calibration | One projection matrix or 11 DLT coefficients per camera; researcher specifies camera pairing and frame correspondence. | 3D coordinates and reprojection diagnostics. |
| Trial metadata | Kicking side, source type, analysis start frame, impact frame and sampling rate. | Positions, speeds, knee and ankle angles, angular velocities, normalized curves and bilateral metrics. |
TECHNICAL DOCUMENTATION
Methods and reference
- Installation and CLI examplesREADME
- Processing workflowPipeline
- Scientific methods and conventionsMethods
- Sports2D configuration and outputsPose system
- MediaPipe ROI exampleConfiguration
- Reproducibility notesStudy record
- Scientific sourcesReferences
CITATION
Cite the software and related work separately
Software · APA 7
Nana, F. A., Santiago, P. R. P., Bedo, B. L. S., Aquino, R., Palucci Vieira, L. H., & Beltrán Castañón, C. A. (2026). Futsal Markerless Analysis (Version 0.2.1) [Computer software]. GitHub.
Machine-readable citation ↗