Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cricket Shots Detection #477

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions Cricket Shots Detection/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# <h1 align = "center"> Cricket Shots Detection</h1>
## Aim of the project:
### The project focuses on classification of different cricket shots using various Deep Learning Algorithms.

### Libraries and Frameworks used:
1. Pandas
2. Numpy
3. Matplotlib
4. Seaborn
5. Tensorflow
6. Keras
7. sklearn
8. glob
9. OpenCV


## Deep Learning Algorithms used:
1. ResNet
2. DenseNet
3. InceptionNet
4. EfficientNet

## Accuracy and training time comparison of all the Deep Learning Algorithms
| | Accuracy |
|--------------------|---------------|
| ResNet | 86% |
| DenseNet | 92% |
| InceptionNet | 96% |
| EfficientNet | 95% |

# Representation of different cricket shots
![EDA](https://github.com/the-silent-geek/DL-Simplified/blob/2e8e0b207bd08e758fca8e93d5433c73f277ef1e/Cricket%20Shots%20Detection/images/eda_cric.png)

# Bar plot of counts of each shot in the dataset
![values](https://github.com/the-silent-geek/DL-Simplified/blob/2e8e0b207bd08e758fca8e93d5433c73f277ef1e/Cricket%20Shots%20Detection/images/bar.png)

# Pie chart for the distribution of shots in the dataset
![ri](https://github.com/the-silent-geek/DL-Simplified/blob/2e8e0b207bd08e758fca8e93d5433c73f277ef1e/Cricket%20Shots%20Detection/images/pie%20chart.png)


# Accuracy and plots of all models

## InceptionNetV2
![inv2](https://github.com/the-silent-geek/DL-Simplified/blob/2e8e0b207bd08e758fca8e93d5433c73f277ef1e/Cricket%20Shots%20Detection/images/inception.png)

## DenseNet
![densenet](https://github.com/the-silent-geek/DL-Simplified/blob/2e8e0b207bd08e758fca8e93d5433c73f277ef1e/Cricket%20Shots%20Detection/images/dense.png)

## ResNet50
![resnet](https://github.com/the-silent-geek/DL-Simplified/blob/2e8e0b207bd08e758fca8e93d5433c73f277ef1e/Cricket%20Shots%20Detection/images/resnet.png)

## EfficientNet
![effnet](https://github.com/the-silent-geek/DL-Simplified/blob/2e8e0b207bd08e758fca8e93d5433c73f277ef1e/Cricket%20Shots%20Detection/images/efficient.png)


# Conclusion
InceptionNet model performs better comparative to other models used on the above dataset.
19 changes: 19 additions & 0 deletions Cricket Shots Detection/dataset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Dataset

The dataset used in this project is take from the Kaggle website.
<br>
<b>Dataset Link:- https://www.kaggle.com/datasets/aneesh10/cricket-shot-dataset</b>
<br>

<br>
1. The directory drives consists of the cover drive, straight drive and off drive.
<br>
2. The directory legglance-flick contains the images for the leg glance and flick shot.
<br>
3. The directory pullshot has the images for pull shot.
<br>
4. The directory sweep has the image for sweep shot.
<br>



Binary file added Cricket Shots Detection/images/bar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Cricket Shots Detection/images/dense.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Cricket Shots Detection/images/eda_cric.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Cricket Shots Detection/images/efficient.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Cricket Shots Detection/images/inception.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Cricket Shots Detection/images/pie chart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Cricket Shots Detection/images/resnet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,161 changes: 1,161 additions & 0 deletions Cricket Shots Detection/model/cricket shots.ipynb

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions Cricket Shots Detection/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
pandas
numpy
matplotlib
glob
tensorflow
opencv
scikit-learn
seaborn
glob
Loading