Skip to content

Commit cc69ce3

Browse files
authored
Merge pull request #3 from LiborSoumar/main
Splitting repo into 3 separate examples
2 parents e5a21eb + 0b1a527 commit cc69ce3

17 files changed

+178
-2979
lines changed

CHANGELOG.md

+10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Changelog
22

3+
## [1.1.0]
4+
Split repository into three seperate ones to simplify the code
5+
Settings.paf encoding changed to ANSI to better handle special characters
6+
Second thorax model file was removed
7+
Fix not to include inactive trials in the analysis
8+
Fix to missing segment depth for Pelvis Floor segment
9+
Update to Readme.md
10+
Fix to measurement tagging
11+
Option to select Theia c3d file in case the subject is not pose_filt_0.c3d
12+
313
## [1.0.1]
414
New Theia settings available in settings.php
515
Analog data are filtered by default (cutoff: 20Hz)

README.md

+18-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Qualisys PAF – Theia Markerless example
1+
# Qualisys PAF – Theia Markerless Basic Example
22

33
## Getting started
44

@@ -10,17 +10,27 @@ To download the latest version (not tested) of the example project to your compu
1010

1111
To download a release version (tested), please [Click here](https://github.com/qualisys/paf-theia-markerless-example/releases)
1212

13+
## Preparing QTM project
14+
There are two ways how to set up the project for QTM.
15+
1. 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.
16+
2. 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 folder `Theia Markeless Example` and delete Settings.qtmproj. Then go to QTM > File > New Project and create new project based on Theia Markerless Example.
17+
1318
## Preparing Qualisys data for Theia3D processing
1419

1520
1. Install [Theia](https://www.theiamarkerless.ca/) and accompanying engine.
1621
2. 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).
1722
3. Install Visual3D.
1823
4. Set Project Options > Miscellaneous > Folder Options for "Visual 3d" to ```C:\Program Files\Visual3D\Visual3D.exe``` (adapt if Visual3D is installed at different location).
19-
5. Download data from Qualisys File Library (https://qfl.qualisys.com/#!/project/theiaexample)
20-
> Note: Example data include two persons. While **John Doe** can be used with Theia to generate .c3d files (use `Markerless Session`), **Jim Doe** does not include videos and can be used to compare marker-based and markerless data (use `Marker-based vs Markerless Comparison Session`). This sesson type expects data to be captured by combined system of video cameras and marker-based cameras where markers are places on the body for the same trial that is used to capture videos. Script is set to work with sports marker set. If other marker set is required, it is necessary to adapt the script and model files accordingly.
21-
6. Extract downloaded .zip file into the projects data folder "Theia Markerless Example\Data"
22-
7. To process the data, you have to first click on **Theia and V3D Processing**
23-
> Note: The following Theia specific settings along with their descriptions are available in Templates\settings.php: save_workspace, theia_filter_type, theia_filter_cutoff, enable_knee_rotation, max_people, track_rotated_people and export_type. When saving the workspace, it will create a TheiaFormatData_workspace folder in your session where each subfolder is containing the Theia workspace of a measurement. To open the workspace of a measurement, click on File > Load Workspace and select the subfolder of your choice. If Theia is closed, double-click on the results.p3d included in the subfolder of your choice.
24+
5. Download data from Qualisys File Library (https://qfl.qualisys.com/#!/project/theiaexample).
25+
26+
Example data includes three types of data:
27+
1. **John Doe** can be used with this example to generate .c3d files,
28+
2. **Jim Doe** is intended for markerless vs markerbased comparison example: https://github.com/qualisys/paf-theia-markerless-comparison-example. It does not include videos and can be used to compare marker-based and markerless data and is intended to be used this this repository. This sesson type expects data to be captured by combined system of video cameras and marker-based cameras where markers are places on the body for the same trial that is used to capture videos. Script is set to work with sports marker set. If other marker set is required, it is necessary to adapt the script and model files accordingly.
29+
3. **Joe Doe** is intended for true hybrid example: https://github.com/qualisys/paf-theia-markerless-true-hybrid-example. It does not include videos and can be used as an example for this repository how to add objects to markeless analysis. Objects must have markers on. It is important that both marker cameras and video camera capture at the same rate.
30+
6. Extract downloaded .zip file into the `Data` folder of the project.
31+
7. To process the data, you have to click on **Start Processing** button.
32+
- The following Theia specific settings along with their descriptions are available in Templates\settings.php: `save_workspace`, `theia_filter_type`, `theia_filter_cutoff`, `enable_knee_rotation`, `max_people`, `track_rotated_people` and `export_type`. When saving the workspace, it will create a TheiaFormatData_workspace folder in your session where each subfolder is containing the Theia workspace of a measurement. To open the workspace of a measurement, click on File > Load Workspace and select the subfolder of your choice. If Theia is closed, double-click on the results.p3d included in the subfolder of your choice.
33+
- Theia can identify and process data for more then one subject if more persons are in the volume. The subject that yields best data is typically selected but sometimes other person is wrongly chosen. If that happens, there is an option to choose which c3d file is actual subject. To select other c3d, activate the measurement, navigate to `Theia c3d file` field and chose number of Theia file. To find out what c3d files Theia has created, go to working directory of active session, open `TheiaFormatData` folder, open folder of active measurement and review `pose_filt_*.c3d` files in Visual3D.
2434

2535
## Resources for using the Qualisys Project Automation Framework (PAF)
2636

@@ -40,6 +50,8 @@ Our official examples for various processing engines:
4050
- [OpenSim](https://github.com/qualisys/paf-opensim-example)
4151
- [Python](https://github.com/qualisys/paf-python-example)
4252
- [Theia Markerless](https://github.com/qualisys/paf-theia-markerless-example)
53+
- [Theia Markerless Comparison](https://github.com/qualisys/paf-theia-markerless-comparison-example)
54+
- [Theia Markerless True Hybrid](https://github.com/qualisys/paf-theia-markerless-true-hybrid-example)
4355
- [Visual3D](https://github.com/qualisys/paf-visual3d-example)
4456

4557
_As of QTM version 2.17, the official Qualisys PAF examples can be used without any additional license. Note that some more advanced analysis types require a license for the "PAF Framework Developer kit" (Article number 150300)._

Settings.paf

+9-26
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Package Information:
33
Name: Theia Markerless Example
44
Version: 1.0.1
55
Required QTM version: 2020.2.5770
6-
Encoding bytes: €€€€€
6+
Encoding bytes: �����
77

88
Root type: Subject
99
Default fields: [Creation date, Creation time]
@@ -26,12 +26,6 @@ Types:
2626
Analyses: [Theia and V3D Processing]
2727
Display order: [Session ID, Test condition, Operator, Comments]
2828
Directory pattern: $Creation date$_Markerless
29-
Marker-based vs Markerless Comparison Session:
30-
Fields: [Session ID, Test condition, Operator]
31-
Measurements: [Static, Dynamic]
32-
Analyses: [Theia and V3D Comparison Processing]
33-
Display order: [Session ID, Test condition, Operator, Comments]
34-
Directory pattern: $Creation date$_Markerless_Comparison
3529

3630
Measurements:
3731
Fields:
@@ -54,19 +48,6 @@ Analyses:
5448
Theia and V3D Processing:
5549
Type: Compound
5650
Components: [Internal Run Theia, Theia Tools Process, Visual3D Analysis]
57-
Theia and V3D Comparison Processing:
58-
Type: Compound
59-
Components: [Internal Run Theia, Theia Tools Process, Visual3D Comparison]
60-
Internal Run Theia:
61-
Type: External program
62-
Program display name: Theia
63-
Do not wait for Application: Yes
64-
Arguments: [-path, $TemplateDirectory$Scripts\src\Theia\theia_batch_commands.txt, -force-single-instance]
65-
Theia Tools Process:
66-
Type: Instantiate template
67-
Export session: Yes
68-
Template: Templates\Scripts\src\Theia\run_theia_tools.php
69-
Export measurements: [c3d,xml settings]
7051
Visual3D Analysis:
7152
Type: External program
7253
Program display name: Visual 3d
@@ -75,14 +56,16 @@ Analyses:
7556
Arguments: [/s, $WorkingDirectory$create_workspace.v3s]
7657
Template files: ['*.v3s']
7758
Do not wait for Application: Yes
78-
Visual3D Comparison:
59+
Internal Run Theia:
7960
Type: External program
80-
Program display name: Visual 3d
81-
Export session: Yes
82-
Export measurements: c3d
83-
Arguments: [/s, $WorkingDirectory$compare.v3s]
84-
Template files: ['*.v3s']
61+
Program display name: Theia
8562
Do not wait for Application: Yes
63+
Arguments: [-path, $TemplateDirectory$Scripts\src\Theia\theia_batch_commands.txt, -force-single-instance]
64+
Theia Tools Process:
65+
Type: Instantiate template
66+
Export session: Yes
67+
Template: Templates\Scripts\src\Theia\run_theia_tools.php
68+
Export measurements: [c3d,xml settings]
8669

8770
Fields:
8871
ID:

Settings.qtmproj

1.97 MB
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)