Project Documentation
Project Documentation
Project Documentation
digit recognition.
Project Objectives
By the end of this project, you will:
Project Flow
Project Flow:
The user interacts with the UI (User Interface) to upload the image
as input
The uploaded image is analysed by the model which is integrated
Once the model analyses the uploaded image, the prediction is
showcased on the UI
To accomplish this, we have to complete all the activities and tasks listed
below
Project Structure
Create a Project folder which contains files as shown below
Prerequisites
To complete this project, you should have the following software
and packages
Anaconda Navigator:
To build Deep learning models you must require the following packages
Prior Knowledge
One should have knowledge on the following Concepts:
Flask
Importing the required libraries which are required for the model to run.
The dataset for this model is imported from the Keras module.
The dataset contains ten classes: Digits from 0-9. Each digit is taken as a
class
For a detail point of view on Keras and TensorFlow refer to the link here:
We split the data into train and test. Using the training dataset, we train
the model and the testing dataset is used to predict the results.
We are finding out the shape of X_train and x_test for better
understanding. It lists out the dimensions of the data present in it.
in trainset, we have 60000 images, and in the test set we have 10000
images
With respect to this image, the label of this image will be stored in y_train
let's see what is the label of this image by grabbing it from the y_train
variable
Note: You can see the results by replacing the index number till 59999 as
the train set has 60K images
Model Building
This activity includes the following steps
Creating the model and adding the input, hidden, and output layers to it
Epochs: an integer and number of epochs we want to train our model for.
Validation_data:
We here are printing the metrics which lists out the Test loss and Test
accuracy
Loss value implies how poorly or well a model behaves after each
iteration of optimization.
An accuracy metric is used to measure the algorithm's performance
in an interpretable way.
You can use predict_classes for just predicting the class of an image
Application Building
In this section, we will be building a web application that is integrated into
the model we built. A UI is provided for the uses where he has uploaded
an image. The uploaded image is given to the saved model and prediction
is showcased on the UI.
This section has the following tasks
This is the main page which describes about the project and summarizes
it.
This is the prediction page where we get to choose the image from our
local system and predict the output.
Build Python Code (Part 1)
Let us build the flask file ‘app.py’ which is a web framework written in
python for server-side scripting. Let’s see step by step procedure for
building the backend application.
Import Libraries:
Libraries required for the app to run are to be imported.
We are routing the app to the HTML templates which we want to render.
Firstly, we are rendering the main.html template and from there we are
navigating to our prediction page that is index6.html
Main Function:
This function runs your app in a web browser
Lastly, we run our app on the localhost. Here we are running it on
localhost:8000
IBM Account:
Please click here to register for IBM
Please click here to log in to IBM Account.
Watch the below video to register and login into your IBM account
Ideation Phase
In this milestone you are expected to get started with the Ideation process.
Ideation
In this activity you are expected to list the ideas (at least 4 per each team member)
by organizing the brainstorming session and prioritize the top 3 ideas based on the
feasibility & importance.
Proposed Solution
In this activity you are expected to prepare the proposed solution document, which
includes the novelty, feasibility of idea, business model, social impact, scalability
of solution, etc.
Solution Architecture
In this activity you are expected to prepare solution architecture document and
submit for review.
Customer Journey
Prepare the customer journey maps to understand the user interactions &
experiences with the application (entry to exit).
Functional Requirement
In this activity you are expected to prepare the functional requirement document.
Technology Architecture
In this activity you are expected to draw the technology architecture diagram.