A downloadable project

    This is a simple python program that will score your hand in the card game cribbage when you place your cards in front of the camera of your computer.  The program was coded in Python and uses Open-CV for the image recognition.


    How the classifier works is it is first trained on images of all the suits and numbers.  Then, when a card is placed in front of the user's webcam it converts the current frame to gray scale.  The script then uses Open-CV to detect the contours around the edges of the card.  When the bounds of the card are found, Open-CV image detection is run using the training data from before.

    The program then outputs the best match on the card and adds it to the hand.  When all of the player's cards have been placed in front of the camera, the program scores the hand and breaks it down into meld categories: Pairs, fifteens, Runs, Nobs, Flushs.

StatusPrototype
CategoryOther
AuthorJoey Games
Made withpygame
Average sessionA few minutes
LanguagesEnglish
InputsKeyboard

Leave a comment

Log in with itch.io to leave a comment.