|
1 | 1 | # PyEyesWeb Examples |
2 | 2 |
|
3 | | -This directory contains example scripts and demonstrations showcasing the capabilities of PyEyesWeb modules. |
| 3 | +This directory contains example scripts demonstrating the capabilities of PyEyesWeb analysis features. |
4 | 4 |
|
5 | | -## Structure |
| 5 | +## Available Examples |
6 | 6 |
|
7 | | -- **`test_scripts/`** - Python scripts demonstrating various analysis modules |
8 | | -- **`touchdesigner/`** - TouchDesigner integration examples and demos |
| 7 | +### Movement Analysis |
9 | 8 |
|
10 | | -## Test Scripts |
11 | | - |
12 | | -### Movement Analysis Examples |
13 | | - |
14 | | -- **`bilateral_symmetry.py`** - Demonstrates bilateral symmetry analysis with realistic human gait simulation |
15 | | -- **`contraction_expansion.py`** - Shows contraction and expansion analysis for movement data |
16 | | -- **`equilibrium.py`** - Demonstrates equilibrium analysis with elliptical balance evaluation |
17 | | -- **`smoothness.py`** - Examples of smoothness analysis for movement trajectories |
18 | | -- **`synchronization.py`** - Synchronization analysis using webcam and MediaPipe pose detection |
| 9 | +- **`smoothness.py`** - Movement smoothness analysis using SPARC and jerk metrics |
| 10 | +- **`bilateral_symmetry.py`** - Left-right symmetry analysis for bilateral movements |
| 11 | +- **`equilibrium.py`** - Balance and postural stability evaluation |
| 12 | +- **`synchronization.py`** - Multi-signal synchronization and phase locking analysis |
| 13 | +- **`contraction_expansion.py`** - Body area expansion and contraction tracking |
19 | 14 |
|
20 | 15 | ### Data Processing |
21 | 16 |
|
22 | 17 | - **`tsv_reader.py`** - Example of reading and processing TSV (Tab-Separated Values) files |
23 | 18 |
|
24 | | -## TouchDesigner Integration |
25 | | - |
26 | | -The `touchdesigner/` folder contains: |
27 | | -- TouchDesigner project files (`.toe`) |
28 | | -- Setup scripts for Windows environment |
29 | | - |
30 | 19 | ## Running the Examples |
31 | 20 |
|
32 | | -Each Python script can be run independently: |
| 21 | +Each script can be run independently from the project root: |
33 | 22 |
|
34 | 23 | ```bash |
35 | | -python examples/test_scripts/bilateral_symmetry.py |
36 | | -python examples/test_scripts/synchronization.py |
| 24 | +python examples/smoothness.py |
| 25 | +python examples/bilateral_symmetry.py |
| 26 | +python examples/synchronization.py |
37 | 27 | # etc... |
38 | 28 | ``` |
39 | 29 |
|
40 | 30 | ## Requirements |
41 | 31 |
|
42 | 32 | - Python 3.x |
43 | 33 | - PyEyesWeb package installed |
44 | | -- Additional dependencies as specified in each script (e.g., OpenCV, MediaPipe for synchronization example) |
| 34 | +- Additional dependencies as specified in each script: |
| 35 | + - OpenCV and MediaPipe for webcam examples (`smoothness.py`, `synchronization.py`) |
| 36 | + - Matplotlib for visualization (`equilibrium.py`) |
45 | 37 |
|
46 | 38 | ## Notes |
47 | 39 |
|
48 | | -These examples are designed to demonstrate the functionality of various PyEyesWeb modules. They include: |
49 | | -- Realistic data simulation |
| 40 | +These examples demonstrate PyEyesWeb functionality using: |
| 41 | +- Real-time webcam processing (where applicable) |
| 42 | +- Simulated movement data |
50 | 43 | - Interactive visualizations |
51 | | -- Real-time processing capabilities |
52 | | -- Integration with external tools |
| 44 | + |
| 45 | +For automated testing with synthetic signals, see `tests/feature_test_cli.py`. |
0 commit comments