This example is a modification of the Qualisys Open PAF Theia Markerless example. Modifications:
- Removed Visual3D scripts
- Added Matlab scripts and resources to convert Theia pose data to QTM-like .mat and .tsv output formats.
The Theia pose data (C3D) are parsed using ezc3d.
The original PAF example can be found on Github.
The Matlab scripts require the following toolboxes:
- QTMTools from GitHub.
- MarkerlessTools from GitHub.
- Matlab Statistics and Machine Learning Toolbox from Mathworks (only required for extraction of Theia processing statistics).
Copies of QTMTools and MarkerlessTools (only the necessary functions) are included with the package.
Other requirements:
- ffmpeg (only required for extraction of video meta data)
There are two ways how to set up the project for QTM.
- Simple method is to unzip the zip file and open the project from QTM (File > Open Project) or by double clicking on Settings.paf in File Explorer.
- If you plan to create multiple projects based on this example, unzip the zip file to
C:\Program Files (x86)\Qualisys\Qualisys Track Manager\Packages
, name the folderPAF Theia Matlab Example
and delete Settings.qtmproj. Then go to QTM > File > New Project and create new project based onTheia Matlab Example
.
-
Install Theia and accompanying engine.
-
In QTM, set Project Options > Miscellaneous > Folder Options for "Theia" to
C:\Program Files\Theia\Theia3D\Theia3D.exe
(adapt if Theia is installed at different location). -
Install Matlab.
-
Set Project Options > Miscellaneous > Folder Options for "Matlab" to
C:\Program Files\MATLAB\R2021a\bin\matlab.exe
(adapt if Matlab is installed at different location). -
Download data from Qualisys File Library (https://qfl.qualisys.com/#!/project/theiaexample).
Example data includes examples for the PAF Theia Markerless Examples. Only the standard Markerless session is supported in the PAF Theia Matlab Example:
- John Doe can be used with this example for Theia processing and Matlab data conversion.
- First, you will first need to perform the Theia processing step.
- Click on Matlab Pose conversion. This will convert Theia pose data to QTM-like output formats .mat and .tsv for skeleton data (see description in the QTM manual). These files will be added to the session folder. In case there are subjects in the measurement, all skeletons (poses) detected by Theia will be included in the .mat file, and there will be one .tsv file for each skeleton. In addition, a file "skeleton_export_info.xlsx" is added to the session folder containing information about the trial conversion and the extracted skeletons.
- Optionally, you can run the Matlab Extract Theia Processing Stats analysis to collect meta information about the Miqus videos and Theia processing times per trial. This information will be added to the "skeleton_export_info.xlsx" file. This step requires that you have ffmpeg installed on the computer and that the ffmpeg binary folder (e.g. \ffmpeg-4.4.1-full_build\bin) is included in the system path of the computer's Environment Variables.
Example tested with:
- Matlab 2021a
- ezc3d 1.5.4 (compiled for Windows x64)
- ffmpeg-4.4.1
- QTMTools (2023-06-16)
- MarkerlessTools (2023-06-29)