All Projects → surya-veer → RealTime-DigitRecognition

surya-veer / RealTime-DigitRecognition

Licence: GPL-3.0 license
RealTime DigitRecognition using Convolutional Neural Network(CNN) with keras.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to RealTime-DigitRecognition

Pydark
PyDark is a 2D and Online Multiplayer video game framework written on-top of Python and PyGame.
Stars: ✭ 201 (+86.11%)
Mutual labels:  pygame
WeatherPi TFT
a weather display for a raspberry pi and a TFT display written in python3 and pygame
Stars: ✭ 66 (-38.89%)
Mutual labels:  pygame
EvoArm
An open-source 3D-printable robotic arm
Stars: ✭ 114 (+5.56%)
Mutual labels:  pygame
Pygame Menu
Menu for pygame. Simple, lightweight and easy to use
Stars: ✭ 244 (+125.93%)
Mutual labels:  pygame
Python-Games
A collection of small python games made by me using pygame and tkinter libraries
Stars: ✭ 121 (+12.04%)
Mutual labels:  pygame
AI-Chatbot
AI Chatbot using Dynamic Memory Network in Keras.
Stars: ✭ 64 (-40.74%)
Mutual labels:  keras-neural-networks
Super Mario Python
super mario in python and pygame
Stars: ✭ 178 (+64.81%)
Mutual labels:  pygame
Snake-Game-with-Deep-learning
Developing a neural network to play a snake game
Stars: ✭ 43 (-60.19%)
Mutual labels:  pygame
minesweeper
💣 The classic minesweeper game in python
Stars: ✭ 34 (-68.52%)
Mutual labels:  pygame
Elimination-Game
利用pygame实现消消乐小游戏GUI界面(Use pygame to eliminate the GUI interface of music game)
Stars: ✭ 18 (-83.33%)
Mutual labels:  pygame
python-kaynaklari
Python Türkiye Facebook sayfasında başlatılan projenin yeni sayfası
Stars: ✭ 30 (-72.22%)
Mutual labels:  pygame
Sudoku-Solver
🎯 This Python-based Sudoku Solver utilizes the PyGame Library and Backtracking Algorithm to visualize and solve Sudoku puzzles efficiently. With its intuitive interface, users can input and interact with the Sudoku board, allowing for a seamless solving experience.
Stars: ✭ 51 (-52.78%)
Mutual labels:  pygame
pygame-car-tutorial
rmgi.blog./pygame-2d-car-tutorial.html
Stars: ✭ 30 (-72.22%)
Mutual labels:  pygame
Singularity
A simulation of a true AI. Survive, grow, and learn.
Stars: ✭ 210 (+94.44%)
Mutual labels:  pygame
Python.io
Snake game inspired from Slither.io but features a python instead of a snake. Made in Python 3
Stars: ✭ 15 (-86.11%)
Mutual labels:  pygame
Swervinmervin
A truly radical homage to 16-bit racing games.
Stars: ✭ 195 (+80.56%)
Mutual labels:  pygame
midiGenerator
Generate midi file with deep neural network 🎶
Stars: ✭ 30 (-72.22%)
Mutual labels:  pygame
GTAV-Self-driving-car
Self driving car in GTAV with Deep Learning
Stars: ✭ 15 (-86.11%)
Mutual labels:  keras-neural-networks
Wario-Land-3
A remake of the GBC-Game "Wario Land 3" using Pygame for Python
Stars: ✭ 48 (-55.56%)
Mutual labels:  pygame
pool
A pool game written in python and pygame.
Stars: ✭ 33 (-69.44%)
Mutual labels:  pygame

RealTime-DigitRecognition

RealTime DigitRecognition using keras/SVC and pygame.Project Report

Overview

Recently Deep Convolutional Neural Networks (CNNs) becomes one of the most appealing approaches and has been a crucial factor in the variety of recent success and challenging machine learning applications such as object detection, and face recognition. Therefore, CNNs is considered our main model for our challenging tasks of image classification. Specifically, it is used for is one of high research and business transactions. Handwriting digit recognition application is used in different tasks of our real-life time purposes. Precisely, it is used in vehicle number plate detection, banks for reading checks, post offices for sorting letter, and many other related tasks.

sample images

Description

This is a RealTime-DigitRecognition application which can predict output corresponding to handwritten images. I used SVC(support vector classifier) and sequential model of Keras for creating this predictive model. I trained SVC for 8X8 MNIST dataset, but the accuracy of this model is not good when I run this model on my handwritten images(600X600). It is due to resizing images from 600X600 to 8X8.It is important to get good results so I created a sequential model in keras and traied it on 28X28 MNIST dataset. Now it gives very good result on handwritten digits.

The interface is created by using Pygame. The image preprocessing is the most important in this project which I have done by using Scipy and OpenCV.

Dataset

MNIST is a widely used dataset for the hand-written digit classification task. It consists of 70,000 labelled 28x28 pixel grayscale images of hand-written digits. The dataset is split into 60,000 training images and 10,000 test images. There are 10 classes (one for each of the 10 digits). The task at hand is to train a model using the 60,000 training images and subsequently test its classification accuracy on the 10,000 test images.

Sample Images:

These are some sample images of the handwritten character from mnist dataset.

sample images

Dependencies

This is the list of dependencies for running this application.

  • Skleran
  • Keras
  • tensorflow/theano
  • Opencv
  • Pygame
  • Pandas
  • Numpy
  • Scipy
  • Matplotlib

How to use

  1. Download or clone this repository.

  2. Extract to some location.

  3. First, run app.py from RealTime-DigitRecognition folder.
    Now, Pygame window will open. It will look like this.

    Pygame window

  4. Draw the digits on left side of the window and output will appear on right side of the window.

  5. Mouse handling:
    The right button is for resetting screen.
    The left button is for drawing.

Multi digit reconition

I am developing an efficient model for detection multiple digits on a single frame like number plate, phone number, cheque number etc.
Here are some results:

Pygame window

Demo

Pygame window

Please commit for any changes or bugs :)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].