Metadata-Version: 2.4
Name: pyeyesweb
Version: 1.0.0b1
Summary: PyEyesWeb is a research toolkit for extracting quantitative features from human movement data.
Author-email: InfoMus Lab - Casa Paganini <cp.infomus@gmail.com>
Maintainer-email: Nicola Corbellini <nicola.corbellini@edu.unige.it>, Gabriele Romano <gabriele.romano@edu.unige.it>, Sanket Rajeev Sabharwal <sabharwal@edu.unige.it>, Simone Ghisio <simoneghisio@gmail.com>, Paolo Coletta <paolocoletta@gmail.com>
License-Expression: MIT
Project-URL: Documentation, https://infomuscp.github.io/PyEyesWeb/
Project-URL: Casa Paganini, http://www.casapaganini.org/index_eng.php
Project-URL: Resilence EU Project, https://resilence.eu/
Keywords: movement analysis,human movement,motor control,biomechanics,kinematics,time series,synchronization,computational movement,quantitative movement
Classifier: Intended Audience :: Science/Research
Classifier: Intended Audience :: Education
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Scientific/Engineering :: Information Analysis
Classifier: Topic :: Scientific/Engineering :: Human Machine Interfaces
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: .github/LICENSE
Requires-Dist: numpy>=1.24.0
Requires-Dist: scipy>=1.10.0
Requires-Dist: scikit-learn>=1.3.0
Requires-Dist: tqdm>=4.6
Provides-Extra: dev
Requires-Dist: build>=1.0.0; extra == "dev"
Requires-Dist: mediapipe>=0.10.0; extra == "dev"
Requires-Dist: opencv-python>=4.8.0; extra == "dev"
Requires-Dist: matplotlib>=3.7.0; extra == "dev"
Requires-Dist: pandas>=2.0.0; extra == "dev"
Requires-Dist: pytest>=8.0.0; extra == "dev"
Requires-Dist: pytest-cov>=4.0.0; extra == "dev"
Requires-Dist: setuptools>=61.0; extra == "dev"
Requires-Dist: wheel>=0.40.0; extra == "dev"
Requires-Dist: mkdocs>=1.5.0; extra == "dev"
Requires-Dist: mkdocstrings>=0.30.0; extra == "dev"
Requires-Dist: mkdocstrings-python>=1.10.0; extra == "dev"
Requires-Dist: mkdocs-gen-files>=0.5.0; extra == "dev"
Requires-Dist: mkdocs-literate-nav>=0.6.0; extra == "dev"
Requires-Dist: mkdocs-section-index>=0.3.0; extra == "dev"
Requires-Dist: mkdocs-macros-plugin>=1.5.0; extra == "dev"
Dynamic: license-file

# PyEyesWeb  
## Expressive movement analysis toolkit
*A modern, modular, and accessible Python library for expressive movement analysis — bridging research, health, and the arts*  

[![PyPI version](https://img.shields.io/pypi/v/pyeyesweb.svg)](https://pypi.org/project/pyeyesweb/)
[![Docs](https://img.shields.io/badge/docs-latest-blue.svg)](https://infomuscp.github.io/PyEyesWeb/)
[![License](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)

> [!WARNING]
> This library is currently being refactored. Expect breaking API changes and frequent updates in the short term. Please use with caution and report any issues.

`PyEyesWeb` is a research toolkit for extracting quantitative features from human movement data.  
It builds on the **Expressive Gesture Analysis** library of [EyesWeb](https://casapaganini.unige.it/eyesweb_bp), bringing expressive movement analysis into Python as a core aim of the project.
The library provides computational methods to analyze different qualities of movement, supporting applications in **research, health, and the arts**.  
It is designed to facilitate adoption in **artificial intelligence and machine learning pipelines**, while also enabling seamless integration with creative and interactive platforms such as **TouchDesigner, Unity, and Max/MSP**.  

## Installation

```bash
pip install pyeyesweb
```

## Usage
A minimal example of extracting movement features with `PyEyesWeb`
:
```python
from pyeyesweb.data_models import SlidingWindow
from pyeyesweb.low_level import Smoothness

# Movement smoothness analysis
# 1. Initialize the feature extractor (e.g., 50Hz sampling rate)
smoothness = Smoothness(rate_hz=50.0)

# 2. Initialize a sliding window for speed data (1 signal, 1 dimension)
window = SlidingWindow(max_length=60, n_signals=1, n_dims=1)

# 3. Process data frame by frame (simulating a real-time loop)
# here `speed_value` is a float representing the instantaneous speed
window.append(speed_value) 

# 4. Compute the feature (only after the window is full)
if len(window) >= window.max_length:
    result = smoothness(window)
    print(f"SPARC: {result.sparc}, Jerk: {result.jerk_rms}")
```
> [!TIP]
> For more advanced and complete use cases see the [Documentation](https://infomuscp.github.io/PyEyesWeb/)
> and the [examples](examples) folder.

## Documentation

Documentation for `PyEyesWeb` is available online and includes tutorials, API references, and the theoretical and scientific background of the implemented metrics:

- [Getting Started](https://infomuscp.github.io/PyEyesWeb/getting_started): step-by-step guide to installation and basic usage.
- [API Reference](https://infomuscp.github.io/PyEyesWeb/api_reference): technical descriptions of modules, classes, and functions.  
- [Theoretical Foundation](https://infomuscp.github.io/PyEyesWeb/user_guide): background on the scientific principles and research behind the metrics. 

## Support

If you encounter issues or have questions about `PyEyesWeb`, you can get help through the following channels:

- **GitHub Issues:** report bugs, request features, or ask technical questions on the [PyEyesWeb GitHub Issues page](https://github.com/infomuscp/PyEyesWeb/issues).  
- **Discussions / Q&A:** participate in conversations or seek advice in [GitHub Discussions](https://github.com/infomuscp/PyEyesWeb/discussions).  
- **Email:** Reach out to the maintainers at `cp.infomus@gmail.com` for direct support or collaboration inquiries.  

Please provide clear descriptions, minimal reproducible examples, and version information when submitting issues—it helps us respond faster.

## Roadmap

`PyEyesWeb` is under active development, and several features are planned for upcoming releases:  

- **Expanded feature extraction:** addition of more movement expressivity metrics (you can find an example of which features to expect in related [conceptual layer guide]().  
- **Improved examples and tutorials:** more interactive Jupyter notebooks and example datasets to facilitate learning and adoption.  
- **Cross-platform compatibility:** streamlined integration with creative and interactive platforms (e.g., [TouchDesigner plugin](https://github.com/InfoMusCP/PyEyesWebTD), Unity, Max/MSP).  

Future development priorities may evolve based on user feedback and research needs.
Users are encouraged to suggest features or improvements via [GitHub Issues](https://github.com/infomuscp/PyEyesWeb/issues).

## Contributing

Contributions to `PyEyesWeb` are welcome! Whether it's reporting bugs, adding features, improving documentation, or providing examples, your help is appreciated.  

### How to Contribute
1. **Fork the repository**.

2. **Clone the forked repository** set up the development environment
    ```bash
    git clone https://github.com/<YOUR_USERNAME>/PyEyesWeb.git
    cd pyeyesweb
    pip install -e .[dev]
    ```
2. Create a branch for your feature or bug fix:  
   ```bash
   git checkout -b feature/your-feature-name
    ```
3. Make your changes, ensuring code quality and adherence to the project's coding standards.
4. Submit a pull request to the `main` branch, with a clear description of your changes.
5. Engage in code reviews and address any feedback provided by maintainers.

## Authors & Acknowledgments

`PyEyesWeb` is developed by [**InfoMus Lab – Casa Paganini**](http://www.casapaganini.org/index_eng.php), University of Genoa, with the partial support of the **[EU ICT STARTS Resilence Project](https://www.resilence.eu/)**.  
  

<div align="center">
<img src="docs/assets/cp-logo.png" alt="InfoMus Lab Logo" width="512" style="margin:15px"/>
</div>
<div align="center">
<img src="docs/assets/resilence-logo.png" alt="Resilence Project Logo" width="200" style="margin:15px"/>
<img src="docs/assets/eu-logo.png" alt="EU Logo" width="100" style="margin:15px"/>
</div>

### Maintainers & Contributors  
<a href="https://github.com/InfoMusCP/PyEyesWeb/graphs/contributors">
  <img src="https://contrib.rocks/image?repo=InfoMusCP/PyEyesWeb" />
</a>

## License

MIT License
