Skip to main content

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

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:

Keemotion 3D world convention located in the furthest left corner of the court relative to the main camera setup

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

deepsport_utilities-5.2.0.tar.gz (2.9 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

deepsport_utilities-5.2.0-py3-none-any.whl (44.0 kB view details)

Uploaded Python 3

File details

Details for the file deepsport_utilities-5.2.0.tar.gz.

File metadata

  • Download URL: deepsport_utilities-5.2.0.tar.gz
  • Upload date:
  • Size: 2.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for deepsport_utilities-5.2.0.tar.gz
Algorithm Hash digest
SHA256 ac7a2c09a153c6383d40f09f8a0c73723399bc15f815fd9484e860c99deb082d
MD5 568aa87589fa9188caabc564e12f56dc
BLAKE2b-256 385f3d1d74e5fe47cecb7aa7eb96c182e41f614baca02f6a5039aaa382d2844c

See more details on using hashes here.

File details

Details for the file deepsport_utilities-5.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for deepsport_utilities-5.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eec333ac9efd7d185490cc493f8a3fc025c86b650d5562521976e3cd0fafcd15
MD5 9bcbbdf6cfd80718515d92b2f5d32a19
BLAKE2b-256 5c2c43c63d9508d444a99511c9592d4e568f8dbf061cfa9d7c7cd51f20538ddf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page