Manual Action Estimation
Manual Action Estimation
to predict on OUR approach (custom ball to predict on VGG approach (custom ball
and player detection) use the following and player detection) use the following
sequence sequence
lfc_not_main_2.py
lfc_not_main_2.py vgg_test.py
dataset_merger.py
lstm2 lstm2.py
3. “lfc_not_main_2.py” file
Creates custom dataset which has frame number, action label, ball coordinates, team
owning ball and etc by performing player and ball detection
239-258 Finding 2 dominant colors within the borders and ignoring the
field color (executed only once, when 16 or more contours
detected)
4. “lstm2.py” file
Builts model and based on dataset predicts the action label and print the accuracy
24-35, contains load and helper functions which were outdated after
50-72 solving the problem of multiple detections of ball
5. “vgg_test.py” file
Creates separate file in directory which contains predicted 4096 features from VGG model’s
output
17 sets VGG16 model such that output one layer before the last
fully-connected layer i.e output 4096 features
6. “dataset_merger.py” file
To feed the dataset in lstm2.py and make it complete we should attach frame number and
action label to the dataset which only contains 4096 features from vgg_test.py.
22-30 iterates through the first dataset and matches frame number and
creates a new array which contains (frame number, action label,
4096 features) and attaches it to the end of file.
1 Importing libraries
7 Execute training
1 Importing libraries