RESEARCH SOFTWARE VERSION 0.2.1 MIT LICENSE

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
01

ANALYSIS SEQUENCE

From image coordinates to kinematics

Separate 2D observation routes enter a shared reconstruction and analysis sequence.
Reference

Manual DVIDEOW trackingFrame-by-frame 2D coordinates; used for subsequent evaluation.

Pixel-space tracks
Pose estimates

Sports2D · MediaPipe Pose · DeepLabCutEach estimator produces an independent 2D track.

Pixel-space tracks
  1. 01HomologateHip · knee · ankle · foot
  2. 02Curate 2DAutomated tracks
  3. 03ReconstructCalibrated DLT
  4. 04Process 3DTemporal filter
  5. 05DerivePositions · speeds · angles
  6. 06EvaluateCompare with reference

The manual reference bypasses automated 2D curation. Camera synchronization, frame correspondence and calibration are supplied for each study.

02

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.

03

TWO-DIMENSIONAL ESTIMATION

Pose systems

RouteStudy procedureOutput 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.
04

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.

ArchitectureSelected epochRMSE (px)RMSE, p-cutoff 0.6 (px)mAPmAR
ResNet-1012512.5512.2584.8890.75
HRNet-W483512.4912.2686.7590.91
RTMPose-S1513.8213.6477.4085.93
RTMPose-M2815.5414.5866.2376.00
RTMPose-X415.6215.8361.2975.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.

05

THREE-DIMENSIONAL PROCESSING

Biomechanical methods

OperationConvention and parameters
Landmark schemaEstimator 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 curationMarkerless 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 reconstructionAt 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 filterFirst-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 anglesX 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 variablesThree-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 metricsThe 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.

06

STUDY INPUTS AND EXPORTS

Bring videos and calibration

InputDescriptionExport
Video and 2D tracksSynchronized camera views, or CSV observations with frame, camera, landmark, pixel coordinates and confidence.Canonical 2D observations and per-frame processing metadata.
Camera calibrationOne projection matrix or 11 DLT coefficients per camera; researcher specifies camera pairing and frame correspondence.3D coordinates and reprojection diagnostics.
Trial metadataKicking side, source type, analysis start frame, impact frame and sampling rate.Positions, speeds, knee and ankle angles, angular velocities, normalized curves and bilateral metrics.
07

TECHNICAL DOCUMENTATION

Methods and reference

08

SCIENTIFIC AUTHORSHIP

Authors and affiliations

Developed by TeHealP@PUCP. Fabian Alcides Ñaña Alfaro and Luiz Henrique Palucci Vieira are laboratory members linked to the project.

AuthorAffiliation(s)Identifier
Fabian Alcides Ñaña AlfaroTeHealP@PUCP; Departamento Académico de Ingeniería, Pontificia Universidad Católica del Perú, Lima, Perú.ORCID ↗
Paulo Roberto Pereira SantiagoSchool of Physical Education and Sport of Ribeirão Preto, University of São Paulo, Ribeirão Preto, Brazil.ORCID ↗
Bruno Luiz de Souza BedoSchool of Physical Education and Sport, University of São Paulo, São Paulo, Brazil.ORCID ↗
Rodrigo Leal de Queiroz Thomaz de AquinoFederal University of Espírito Santo, Vitória, Brazil; Brazilian National Football Confederation, Rio de Janeiro, Brazil.ORCID ↗
Luiz Henrique Palucci VieiraTeHealP@PUCP; Departamento Académico de Ingeniería, Pontificia Universidad Católica del Perú, Lima, Perú.ORCID ↗
César Armando Beltrán CastañónGrupo de Inteligencia Artificial PUCP (IA-PUCP); Departamento Académico de Ingeniería, Pontificia Universidad Católica del Perú, Lima, Perú.ORCID ↗
09

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 ↗