added Chess piece classifcation using machine learning #1039
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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