This is a simple PyQt5-based visualizer for datasets in the OSL (Open Sports Lab) JSON format.
- Load and view OSL JSON files.
- Display dataset contents in a user-friendly interface.
- Easy to extend with visual overlays and timeline viewers.
We recommend using Anaconda or Miniconda for managing your Python environment.
conda create -n osl-visualizer python=3.9 -y
conda activate osl-visualizerpip install pyqt6Optionally, if you plan to add video rendering or computer vision:
pip install opencv-pythonFrom the root of the project folder, launch the app with:
python osl_visualizer/main.pyA window will open where you can load your OSL JSON files.
Tips: Download a dataset from HF and run the app with that dataset
python tools/download_osl_hf.py \
--url https://huggingface.co/datasets/OpenSportsLab/HistWC/blob/main/HistWC-finals.json \
--output-dir /Users/giancos/Documents/HistWC/
python osl_visualizer/main.py --osl_file /Users/giancos/Documents/HistWC/HistWC-finals.jsonThis script is automatically called whenever you push to Github
pip install pyinstallerpyinstaller --onefile --windowed main.py
pip install mkdocs mkdocs-material mkdocstrings[python]
mkdocs gh-deployThis project is open source and free to use under the MIT License.