Skip to content

haotianxia/VolleyStats

Repository files navigation

VolleyStats: A Modification of Ball Tracking in Volleyball

This study is based on Ball tracking in volleyball (Github: tprlab/vball) and is a modification/extension of it. The original project is licensed under the Apache License 2.0. We modified the original method for our volleyball setting path detection and classification research.

Requirements

  • Python
  • OpenCV
  • Keras with TensorFlow

Training Volleyball Models

The original project provides methods for training. To train more volleyball:

  1. Get a video file with a game fragment.
  2. Get the highest blobs: python3 high.py
  3. Manually classify the blobs into 2 classes: (b)all/(n)ot ball.
  4. Put the classified data into vball-net/train.
  5. Navigate to vball-net using cd vball-net.
  6. Run python3 train.py.

Our Research and Modifications

Below are the modifications and new features we added to the original project:

Extracting Ball Data

We created an advanced filter based on the original method to extract ball data. To use it, follow these steps:

  1. In blobber_with_encode.py, change the directory to the folder where you want to store the ball path and picture.
  2. Run python3 blobber_with_encode.py.

Classifying Sets

We've added new features that identify if the opposite is at the back or front row and classify sets eventually. To use it:

  1. In full_version_set_classifier.py, change the directory to the folder where you stored the ball path.
  2. set left_net_x, right_net_x , upper_net_y, and lower_net_y values to the four corners of the volleyball net.
  3. Run python3 full_version_set_classifier.py.

Note: In order to successfully determine whether the opponent is in the front row or back row, it's essential to store the videos from every single rally and round. For instance, if you aim to correctly identify the setting tactic in the third rally, you need to have stored the videos from the first and second rallies along with their corresponding rounds.

License

This project is also licensed under the Apache License 2.0.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages