Skip to content

aditisspatil/chess_piece_classifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 

Repository files navigation

Chess Piece Classifier

Image Classification project using transfer learning.

Scope

This is an image classifier for chess pieces, which takes an image of chess piece and recognises its name as king, queen, rook, bishop, knight or pawn, along with color as black or white.

Accuracy

After trying multiple times, I could reach to 93% accuracy for piece name recognition, and 97% accuracy for color recognition.

Limitations

This classifier might get confused for following 2 cases -

1. Color Specific

If the color of the given image is not standard. For instance, some abstract chess sets have Pink-White color combination, while some have Pink-Brown or Pink-Red. Hence, the model might produce incorrect output for the "Pink" piece, depending on the shade of pink in the image.

2. Name Specific

If the provided image is not clear. Some pieces, such as bishop-pawn or queen-king, would look same from top corner angle if the image is not clear.

Notes

I have added 2 versions of notebook, to ensure the rendering. The bigger verion has image outputs, and hence bigger size, which might be difficult to be redered on GitHub. The smaller verion only contains image of confusion matrix and demo predictions, and it is loaded properly. Nonetheless, the code and core model is the same.

Data

I have created the dataset myself by taking screenshots of chess sets from google and chess.com.

Credits

This project is based on fastai notebook I have also referred Ken Jee's Notebook to understand usage with Google Colab.

About

Image classifier for chess pieces, which takes an image of chess piece and predicts its name as king, queen, rook, bishop, knight or pawn.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published