RAJEEV INSTITUTE OF TECHNOLOGY
DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING
Internship Seminar On
“HANDWRITTEN DIGIT RECOGINITION USING PYTHON”
Presented By
Jeevika K S 4RA17CS036
Under the Guidance of :
Ms. Lokeshwari H S Dr. H N Prakash
Asst Professor HOD
Department of CSE Department of CSE
RIT, Hassan RIT, Hassan
ABSTRACT
This is an attempt to know how the theories can be applied to practical situation. As a student of UG course, it is a part of study
for everyone to undergo internship at some good company. So for this purpose, I got the opportunity of internship program at
Tequed labs Pvt. Ltd. This is the internship report based on the one-month internship program that I had successfully
completed in Tequed labs Pvt. Ltd from 26.07.2020 to 28.08.2020. As being completely new to practical, corporate world
setting, every hour spent in the Tequed labs Pvt. Ltd gave me some amount of experience all the time all of which cannot be
explained in words. But nevertheless, they were all useful for my career. Basically, it’s an application of Artificial Intelligence.
Hence, I had selected Handwritten Digit Recognition using python in this internship program. Handwriting
recognition (HWR), also known as Handwritten Text Recognition (HTR), is the ability of a computer to receive and interpret
intelligible handwritten input from sources such as paper documents, photographs, touch-screens and other devices. The image
of the written text may be sensed "offline" from a piece of paper by optical scanning (optical character recognition)
or recognition. The programing language I learnt during internship is Python was able to individually develop some
Handwritten Digit Recognition using python.
COMPANY PROFILE
•Tequed Labs is a research and development center and educational institute based in Bangalore started by Mr.
Aditya S K and Mr. Supreeth Y S. We are focused on providing quality education on latest technologies and
develop products which are of great need to the society.
• We also involve distribution and sales of latest electronic innovation products developed all over the globe to
our customers. We run a project consultancy where we undertake various projects from wide range of companies
and assist them technically and build products and provide services to them. We are continuously involved in
research about futuristic technologies and finding ways to simplify them for our students.
• They have successfully performed projects under various platforms and has delivered high quality
competitively priced products and services to customers all over India. They specialize in designing network
solutions and security systems to meet your individual business requirements, through their initial concept.
[Link] DIGIT RECOGNITION USING
PYTHON:
• To make machines more intelligent, the developers are diving into machine learning and deep
learning techniques.
• A human learns to perform a task by practicing and repeating it again and again so that it
memorizes how to perform the tasks. Then the neurons in his brain automatically trigger and they
can quickly perform the task they have learned.
• Machine learning is also remarkably similar to this. It uses different types of neural network
architectures for different types of problems. For example – object recognition, image and sound
classification, object detection, image segmentation, etc. all useful for my career. Basically, it’s an
application of Artificial Intelligence.
[Link] DIGIT RECOGNITION:
The handwritten digit recognition is the ability of computers to recognize human handwritten digits. It is a hard task for the machine
because handwritten digits are not perfect and can be made with many different flavors. The handwritten digit recognition is the solution
to this problem which uses the image of a digit and recognizes the digit present in the image.
PREREQUISITES:
The interesting Python project requires you to have basic knowledge of Python programming, deep learning with Kera’s library and
the Tkinter library for building GUI.
INSTALL THE NECESSARY LIBRARIES FOR THIS PROJECT USING THIS COMMAND:
pip install NumPy, TensorFlow, keras, pillow.
The MNIST dataset:
This is probably one of the most popular datasets among machine learning and deep learning enthusiasts. The MNIST dataset
contains 60,000 training images of handwritten digits from zero to nine and 10,000 images for testing. So, the MNIST dataset has
10 different classes. The handwritten digits images are represented as a 28×28 matrix where each cell contains grayscale pixel
value.
[Link] PYTHON MACHINE LEARNING PROJECT ON
HANDWRITTEN DIGIT RECOGNITION:
[Link] the libraries and load the dataset:
First, we are going to import all the modules that we are going to need for training our model. The
Keras library already contains some datasets and MNIST is one of them. So we can easily import the
dataset and start working with it. The mnist.load_data() method returns us the training data, its labels and
also the testing data and its labels.
[Link] the data
The image data cannot be fed directly into the model, so we need to perform some operations and
process the data to make it ready for our neural network. The dimension of the training data is
(60000,28,28). The CNN model will require one more dimension, so we reshape the matrix to shape
(60000,28,28,1).
[Link] the model:
Now we will create our CNN model in Python data science project. A CNN model generally consists of
convolutional and pooling layers. It works better for data that are represented as grid structures; this is the
reason why CNN works well for image classification problems. The dropout layer is used to deactivate some of
the neurons and while training, it reduces offer fitting of the model. We will then compile the model with the Ad
delta optimizer.
[Link] the model:
•The model. Fit() function of Keras will start the training of the model. It takes the training data,
validation data, epochs, and batch size.
•It takes some time to train the model. After training, we save the weights and model definition in the
‘mnist.h5’ file.
[Link] the model:
We have 10,000 images in our dataset which will be used to evaluate how good our model works. The
testing data was not involved in the training of the data therefore, it is new data for our model. The MNIST
dataset is well balanced so we can get around 99% accuracy.
[Link] GUI to predict digits:
• Now for the GUI, we have created a new file in which we build an interactive window to draw digits on
canvas and with a button, we can recognize the digit. The Tkinter library comes in the Python standard
library. We have created a function predict_digit() that takes the image as input and then uses the trained
model to predict the digit.
• Then we create the App class which is responsible for building the GUI for our app. We create a canvas
where we can draw by capturing the mouse event and with a button, we trigger the predict_digit() function
and display the results.
[Link]:
Figure 1:Snapshots 1
Figure 2:Snapshot 2
Figure 3:Snapshots 3
ADVANTAGES AND DISADVANTAGES
ADVANTAGES:
Reduction in Human Error
Takes risks instead of Humans
Available 24x7
Helping in Repetitive Jobs
Digital Assistance
Faster Decisions
Daily Applications
New Inventions
DISADVANTAGE:
High Costs of Creation
Making Humans Lazy
Unemployment
No Emotions
Lacking Out of Box Thinking
CONCLUSION
On the whole, this internship taught me to integrate theory and practical. And it helped to learn to
appreciate work and its function in the economy, to develop work habits, attitudes necessary for job success and
also to develop communication, hands-on Experience ,interpersonal and other critical skills in the job interview
process. I have Gained new knowledge, skills and met many new people. The internship at Verzeo was a Great
opportunity for me. The experience i have got is huge and useful. The skills i learned Will give me the chance
of future personal and professional growth. The advantages and Disadvantages of this experience made me
stronger at work and more flexible.
The result I Had got was better than I never expected. It has been a great pleasure for us to work on this
Exciting and challenging project. This project proved good for us as it provided a practical Knowledge of not
only programming in python, using machine learning tools and libraries. But also, about all handling procedures
related to internship.
REFERENCES
[1].[Link]
[2].[Link]
[3].[Link]
[4].[Link]
THANK YOU