Giter Club home page Giter Club logo

uno-card-game-'s Introduction

In this project, our goal is detecting Uno Card via computer camera. When we are doing this project we used OPENCV, KERAS, SKLEARN, NUMPY, H5PY LİBRARY, Pandas, Matplotlib.

Unocarddetector contains two main systems one of them is ımage preprocessing which finds the image in area the another one is a decision system, which decides the card number and color. For decision system, we trained neural network. The aim of preprocessing is increasing the success of Neural Network. In Unocarddetector.py, you can see our unocard detection code and in cnn.py , how we find weight for unocard detection code. In my system I first applied preprocessing part and then I planned to applying feature matching but every uno cards detected in my algorithm as 0 due to the small circle around the uno number. Because of that we trained neural network in cnn.py and it is taken this neural network shape and weight and added in Uno card Detection code, which can detect card number.

What is SVHN? The Street View House Numbers (SVHN) is a real world image dataset used for developing machine learning and object recognition algorithms. It is one of the commonly used benchmark datasets as It requires minimal data preprocessing and formatting. Although it shares some similarities with MNIST where the images are of small cropped digits, SVHN incorporates an order of magnitude more labelled data (over 600,000 digit images). It also comes from a significantly harder real world problem of recognising digits and numbers in nat ural scene images. You can download KERAS SVHN DATASET: https://www.kaggle.com/olgabelitskaya/svhn-digit-recognition/data Below you can see flow chart of my code: alt text For better understanding you can read my project report: https://github.com/btknzn/Uno-Card-Game-/blob/master/UNOCARDGAME.pdf

Below you can see projects steps: First take Image from camera:

alt text

Seperate the Image: After taking Image from camera, our code separate to image 8 different areas

alt text

Gaussian BLUR: In Gaussian Blur operation, the image is convolved with a Gaussian filter instead of the box filter. The Gaussian filter is a low-pass filter that removes the high-frequency components are reduced.

alt text

Threshold: After that Otsu and binary threshold algorithms are applied.

alt text

Canny Edge Detector: After thresholding, we applied Canny Edge detection and we detected our systems’ edges

alt text

Corner detection: After corner detection, we detected edges via pre-written open cv library (goodFeaturesToTrack).

alt text

Crop the number:

alt text

Neural Network succes on SVHN TEST DATA SET:

alt text

NUMBER DETECTİON PART( Outs are results, pictures are input)

alt text

uno-card-game-'s People

Contributors

btknzn avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.