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

added Chess piece classifcation using machine learning #1039

Merged
merged 2 commits into from
Aug 4, 2024

Conversation

RajKhanke
Copy link
Contributor

Resolves issue #958

This project involves developing a machine learning application to classify chess pieces from images using a Convolutional Neural Network (CNN). The process begins with collecting and preprocessing a dataset of chess piece images, including various classes such as bishop, king, knight, pawn, queen, and rook. The images are resized, normalized, and split into training and validation sets to train the CNN model. The model's performance is evaluated based on accuracy, precision, recall, and F1 score.

For real-time predictions, a Streamlit application is created. Users can upload images of chess pieces, which are then processed and classified by the trained model. The application displays the prediction result in a styled success box with bold white text, and also provides additional information about the identified chess piece. The project integrates image preprocessing, model inference, and user interaction, showcasing how machine learning models can be deployed in web applications for practical use cases.

CNN model is trained over batch size = 128 ,with 100 epochs input image size =(128,128,3) achieved average validation accuracy of 97.11 %

Dataset :

https://www.kaggle.com/datasets/akshayramakrishnan28/cataract-classification-dataset/data

#Demo :

webapp.mp4

Copy link

github-actions bot commented Aug 2, 2024

Thank you for submitting your pull request! 🙌 We'll review it as soon as possible. If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊

@RajKhanke
Copy link
Contributor Author

@Niketkumardheeryan @invigorzz313 please merge this pr along with level and label of gssoc'24. it will resolve issue no 958

@RajKhanke
Copy link
Contributor Author

@Niketkumardheeryan @invigorzz313 please take alook towards my other pr of student performance prediction as well

@invigorzz313 invigorzz313 merged commit 0b86563 into Niketkumardheeryan:master Aug 4, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants