No project description provided
Project description
DeepSport Utilities toolkit
This toolkit offers a wide range of helpers to download, transform and use datasets following the DeepSport format.
Installation
Package is released on PyPI for convenient installation:
pip install deepsport-utilities
For developement, install with:
git clone
pip install -e ".[dev]"
Available datasets
- Basketball Instants Dataset is implemented by
deepsport_utilities.InstantsDataset
and provides raw images captured by the Keemotion system at different instants. - Basketball Ballistic Trajectories Dataset, implemented as multiple successive instants.
- Private Keemotion datasets.
Dataset format
The datasets are stored as a json file holding items metadata and multiple data files. The easiest approach to load the data is to use the import_dataset
function as illustrated in the scripts provided in the examples
folder.
The resulting datasets are based on mlworkflow.Dataset
, a dataset implementation of (key, value) pairs where the keys are light and allow efficient querying of the dataset while the values contain the heavy data. For more information, refer to mlworkflow repository.
Toolkit
Along with the provided datasets, the library comes with utility functions to process the dataset work with basketball courts.
Working with calibrated images captured by the Keemotion system.
Calibration data are implemented with cailb3d.Calib
objects, allowing determining the relation between the image pixels (2D coordinates) and points in the real world (3D coordinates).
Images shared by Keemotion follow a convention where the origin of the 3D world is located on the furthest left corner of the basketball court relative to the main camera setup ; more precisely in the inner side of the court lines. The unit of length is the centimeter and axis orientation is illustrated here, with z pointing downward:
Contributing
This library is open-source and contributions are welcome. However, prior to any implementation, a discussion with the main maintainer Gabriel Van Zandycke is required.
Authors and acknowledgment
While most of the library was developed by Gabriel Van Zandycke, this library benefited from the work of
- Maxime Istasse for the project initial kick-off
- Cedric Verleysen for some functions in
court.py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file deepsport_utilities-5.1.0.tar.gz
.
File metadata
- Download URL: deepsport_utilities-5.1.0.tar.gz
- Upload date:
- Size: 2.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a359e1312fb79bdc6bd27034e969282765835f564a05fac2cb98c8f4eaf7f827 |
|
MD5 | 9c65491d11632ee0efb7577e29c1fa8d |
|
BLAKE2b-256 | db57f4a3685ee0fe3b8440708c5075c581f652f38886ff234d1e4532f36973ef |
File details
Details for the file deepsport_utilities-5.1.0-py3-none-any.whl
.
File metadata
- Download URL: deepsport_utilities-5.1.0-py3-none-any.whl
- Upload date:
- Size: 41.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d5be6205f4174a59af6ce025ce7da197e75f1e9de94d7e9afb3172021b35b92 |
|
MD5 | 2b29ee4b7517bbc98c80fa49f99e4a2d |
|
BLAKE2b-256 | 816c9ebc11caa9e0d9733da48bf98f0e6957667c812449620249a127fca08438 |