SlideShare ist ein Scribd-Unternehmen logo
1 von 17
Downloaden Sie, um offline zu lesen
A Guide to Building a Handwriting Number
Recognition App Using Flutter and
Tensorflow
Flutter and Tensorflow are rapidly becoming one of the most popular
mobile app development tools in the market with businesses looking
to hire flutter app developers for their custom app requirements.
Any up and coming flutter app development company is looking
to constantly innovate and experiment with the tech to progress.
Flutter app development is now expanding into the arena of machine
learning where minor projects are being created based on machine
learning. One such experimental project that you can work on is
developing a handwriting recognizer app using Flutter and a machine
learning tool Tensorflow.
Here’s how you can get started:
1. Develop the machine learning model using
Tensorflow
This model will help the device recognize the number through its
shape and match it with the relevant digit is drawn using machine
learning. It will provide instructions to the app to display the drawn
digit in the form of an image.
2. Develop the flutter mobile application for input based on
the Tensorflow model
The second step is to develop the Flutter mobile app where
1. Users can use a canvas for drawing up the desired numbers
2. The drawn image will be matched with the relevant image as
recognized by the device through the Tensorflow module
Begin with the Tensorflow Model
Step 1- Get Started
For getting started with Tensorflow, you can either run the model
locally using Python or use a notebook such as Jupiter, Colab by
Google or Azure Notebooks by Microsoft.
Pro-tip: Create an isolated virtual environment to run this project so
that it doesn’t harm the other projects in case anything goes wrong.
In case you decide to run with Python, this is the code you would
need to use to install Tensorflow Post which, you would need to
create a defined project structure to store your model in.
In the case of a notebook, you can start directly from the point of
importing Tensorflow.
Step 2- Load Dataset for Number Recognition
You would require a dataset that would translate the hand-written
numbers into an image format. Tensorflow already has preloaded
datasets to do just this. You can load the MINST dataset from
Tensorflow which stores numbers in 28X28 pixel format where the
images are 20X20 pixels with 4 pixels of padding on each side. The
images are greyscaled.
Once your dataset is loaded, you can assign the value to each
image. There are 256 values as there are colors. Generalize these
values whereby the input is directly translated into values from 0 to
9 to make space for more modification in the future.
Step 3- Compile and Train
The next step is to compile your model and train it for maximum
accuracy. A callback must be coded into the model to stop the
training process for the model once this accuracy is achieved.
The final code for your Tensorflow model must look something
like this:
The Flutter App Development
The next step for your flutter app developers is to create a
container app which will work with the model.
The flutter app development process is divided into two
parts
Importing the model and making it compatible with the app
Developing a finger painting canvas for hand-written input of numbers
For importing the model, create your custom flutter app project and
clean the main.dart file to start anew.
You must create another file where your custom code can work aside
from the lib/main.dart file. This file will then be imported on to your
project using the ‘home’ parameter. You can name it
recognizer_screen.dart.
Once your new project is all set up, you will need to import the
Tensorflow model and the Tensorflow library by modifying the
pubspec.yaml file. Along with this, you will also need to create a
text file with digits from 0 to 9 which will be associated with the
output of the file.
Once everything is set, you need to declare your assets within your
pubsec.yaml files. You can either declare all your assets together or
only select and insert the assets you wish to utilize.
Developing the App Layout and the Canvas
Once your model is set up, you need to define an app layout with a
header and footer in the form of a flex container which is set to
1. The size of the canvas where the numbers will be finger painted
will remain fixed.
For developing the canvas, you will require three flutter tools
for painting which are:
● Custom Paint
● Custom Painter
● Canvas Widget
Canvas widget will provide a canvas for the input while CustomPainter
helps the widget to run paint commands.
Create a subclass called drawing_painter.dart for your CustomPainter
widget to include your custom code. You will be further required to
import the flutter/material. Art in order to utilize any colors within the
file.
To wrap it up, the last two things that you must define is the canvas
area so that the user cannot draw outside it and highlight the
painting area by decorating it.
Flutter app developers now have all the tools in place to pass on
the image form the canvas to your machine learning model for it to
predict the number in the form of an image.
In case you do not feel confident enough to venture out on your
own, the next update on the working of the app will be coming soon!
Web & Mobile App Development Company
https://concettolabs.com
Global Network
USA
4811 N Harding Ave,
Chicago IL 60625
P: +1(903) 200-8801
CANADA
1445 Rennie St Oshawa,
Ontario, L1K 0N9,CANADA
P: (416) 272-0981
INDIA
609/610,City Center Science
City Road
Ahmedabad - 380060
P: +919586777575
UK
6 Hastings Avenue
Ilford , IG6 1DZ
P: +44(798)560 0352

Weitere ähnliche Inhalte

Ähnlich wie A guide to building a handwriting number recognition app using flutter and tensorflow

Announcing codepen support for flutter how that works for developers
Announcing codepen support for flutter how that works for developersAnnouncing codepen support for flutter how that works for developers
Announcing codepen support for flutter how that works for developersConcetto Labs
 
Windows 8 app bar and live tiles
Windows 8 app bar and live tilesWindows 8 app bar and live tiles
Windows 8 app bar and live tilesAmr Abulnaga
 
8 Flutter App Development Tools Developers Must Use For Your Project.pdf
8 Flutter App Development Tools Developers Must Use For Your Project.pdf8 Flutter App Development Tools Developers Must Use For Your Project.pdf
8 Flutter App Development Tools Developers Must Use For Your Project.pdfMoon Technolabs Pvt. Ltd.
 
This assignment consists of four short programs. Use CodeBlock.docx
This assignment consists of four short programs. Use CodeBlock.docxThis assignment consists of four short programs. Use CodeBlock.docx
This assignment consists of four short programs. Use CodeBlock.docxdunningblair
 
A Step-By-Step Guide to Building AR Apps with Flutter.pdf
A Step-By-Step Guide to Building AR Apps with Flutter.pdfA Step-By-Step Guide to Building AR Apps with Flutter.pdf
A Step-By-Step Guide to Building AR Apps with Flutter.pdfSufalam Technologies
 
Microsoft Microsoft Certifications 70-491 it examen dumps
Microsoft Microsoft Certifications 70-491 it examen dumpsMicrosoft Microsoft Certifications 70-491 it examen dumps
Microsoft Microsoft Certifications 70-491 it examen dumpslilylucy
 
Programming Without Coding Technology (PWCT) Features - Framework & Extension
Programming Without Coding Technology (PWCT) Features - Framework & ExtensionProgramming Without Coding Technology (PWCT) Features - Framework & Extension
Programming Without Coding Technology (PWCT) Features - Framework & ExtensionMahmoud Samir Fayed
 
How to develop a Flutter app.pdf
How to develop a Flutter app.pdfHow to develop a Flutter app.pdf
How to develop a Flutter app.pdfSmith Daniel
 
How To Hire A Team To Develop WebRTC Based Applications_.pdf
How To Hire A Team To Develop WebRTC Based Applications_.pdfHow To Hire A Team To Develop WebRTC Based Applications_.pdf
How To Hire A Team To Develop WebRTC Based Applications_.pdfMoon Technolabs Pvt. Ltd.
 
App Inventor : Getting Started Guide
App Inventor : Getting Started GuideApp Inventor : Getting Started Guide
App Inventor : Getting Started GuideVasilis Drimtzias
 
Flutter Optimization Techniques to Improve Existing App Results.pdf
Flutter Optimization Techniques to Improve Existing App Results.pdfFlutter Optimization Techniques to Improve Existing App Results.pdf
Flutter Optimization Techniques to Improve Existing App Results.pdfTechugo
 
Top 8 Flutter App Development Tools.pdf
Top 8 Flutter App Development Tools.pdfTop 8 Flutter App Development Tools.pdf
Top 8 Flutter App Development Tools.pdfFuGenx Technologies
 
BTE 320-498 Summer 2017 Take Home Exam (200 poi.docx
BTE 320-498 Summer 2017 Take Home Exam (200 poi.docxBTE 320-498 Summer 2017 Take Home Exam (200 poi.docx
BTE 320-498 Summer 2017 Take Home Exam (200 poi.docxAASTHA76
 
Flutter enable windows desktop apps for developers
Flutter enable windows desktop apps for developersFlutter enable windows desktop apps for developers
Flutter enable windows desktop apps for developersConcetto Labs
 
Report for DIGITAL CLOCK 12011042 Manoj.pdf
Report for DIGITAL  CLOCK 12011042 Manoj.pdfReport for DIGITAL  CLOCK 12011042 Manoj.pdf
Report for DIGITAL CLOCK 12011042 Manoj.pdfManojKumar533913
 
Design stunning user experience with expression blend
Design stunning user experience with expression blendDesign stunning user experience with expression blend
Design stunning user experience with expression blendKosala Nuwan Perera
 

Ähnlich wie A guide to building a handwriting number recognition app using flutter and tensorflow (20)

Announcing codepen support for flutter how that works for developers
Announcing codepen support for flutter how that works for developersAnnouncing codepen support for flutter how that works for developers
Announcing codepen support for flutter how that works for developers
 
Windows 8 app bar and live tiles
Windows 8 app bar and live tilesWindows 8 app bar and live tiles
Windows 8 app bar and live tiles
 
Android app development guide for freshers by ace web academy
Android app development guide for freshers  by ace web academyAndroid app development guide for freshers  by ace web academy
Android app development guide for freshers by ace web academy
 
8 Flutter App Development Tools Developers Must Use For Your Project.pdf
8 Flutter App Development Tools Developers Must Use For Your Project.pdf8 Flutter App Development Tools Developers Must Use For Your Project.pdf
8 Flutter App Development Tools Developers Must Use For Your Project.pdf
 
This assignment consists of four short programs. Use CodeBlock.docx
This assignment consists of four short programs. Use CodeBlock.docxThis assignment consists of four short programs. Use CodeBlock.docx
This assignment consists of four short programs. Use CodeBlock.docx
 
A Step-By-Step Guide to Building AR Apps with Flutter.pdf
A Step-By-Step Guide to Building AR Apps with Flutter.pdfA Step-By-Step Guide to Building AR Apps with Flutter.pdf
A Step-By-Step Guide to Building AR Apps with Flutter.pdf
 
Microsoft Microsoft Certifications 70-491 it examen dumps
Microsoft Microsoft Certifications 70-491 it examen dumpsMicrosoft Microsoft Certifications 70-491 it examen dumps
Microsoft Microsoft Certifications 70-491 it examen dumps
 
Programming Without Coding Technology (PWCT) Features - Framework & Extension
Programming Without Coding Technology (PWCT) Features - Framework & ExtensionProgramming Without Coding Technology (PWCT) Features - Framework & Extension
Programming Without Coding Technology (PWCT) Features - Framework & Extension
 
Everything you need to know about flutter 2.2
Everything you need to know about flutter 2.2Everything you need to know about flutter 2.2
Everything you need to know about flutter 2.2
 
Google MLkit
Google MLkitGoogle MLkit
Google MLkit
 
How to develop a Flutter app.pdf
How to develop a Flutter app.pdfHow to develop a Flutter app.pdf
How to develop a Flutter app.pdf
 
How To Hire A Team To Develop WebRTC Based Applications_.pdf
How To Hire A Team To Develop WebRTC Based Applications_.pdfHow To Hire A Team To Develop WebRTC Based Applications_.pdf
How To Hire A Team To Develop WebRTC Based Applications_.pdf
 
App Inventor : Getting Started Guide
App Inventor : Getting Started GuideApp Inventor : Getting Started Guide
App Inventor : Getting Started Guide
 
Flutter Optimization Techniques to Improve Existing App Results.pdf
Flutter Optimization Techniques to Improve Existing App Results.pdfFlutter Optimization Techniques to Improve Existing App Results.pdf
Flutter Optimization Techniques to Improve Existing App Results.pdf
 
Top 8 Flutter App Development Tools.pdf
Top 8 Flutter App Development Tools.pdfTop 8 Flutter App Development Tools.pdf
Top 8 Flutter App Development Tools.pdf
 
BTE 320-498 Summer 2017 Take Home Exam (200 poi.docx
BTE 320-498 Summer 2017 Take Home Exam (200 poi.docxBTE 320-498 Summer 2017 Take Home Exam (200 poi.docx
BTE 320-498 Summer 2017 Take Home Exam (200 poi.docx
 
Flutter enable windows desktop apps for developers
Flutter enable windows desktop apps for developersFlutter enable windows desktop apps for developers
Flutter enable windows desktop apps for developers
 
Report for DIGITAL CLOCK 12011042 Manoj.pdf
Report for DIGITAL  CLOCK 12011042 Manoj.pdfReport for DIGITAL  CLOCK 12011042 Manoj.pdf
Report for DIGITAL CLOCK 12011042 Manoj.pdf
 
UNIT I.pptx
UNIT I.pptxUNIT I.pptx
UNIT I.pptx
 
Design stunning user experience with expression blend
Design stunning user experience with expression blendDesign stunning user experience with expression blend
Design stunning user experience with expression blend
 

Mehr von Concetto Labs

Which are The Top 6 Microsoft PowerApps Use Cases with Examples_.pdf
Which are The Top 6 Microsoft PowerApps Use Cases with Examples_.pdfWhich are The Top 6 Microsoft PowerApps Use Cases with Examples_.pdf
Which are The Top 6 Microsoft PowerApps Use Cases with Examples_.pdfConcetto Labs
 
Best Outsourcing Quality Assurance Service Tips for Boosting your Business.pptx
Best Outsourcing Quality Assurance Service Tips for Boosting your Business.pptxBest Outsourcing Quality Assurance Service Tips for Boosting your Business.pptx
Best Outsourcing Quality Assurance Service Tips for Boosting your Business.pptxConcetto Labs
 
Guide on Developing Mood Tracker App.pptx
Guide on Developing Mood Tracker App.pptxGuide on Developing Mood Tracker App.pptx
Guide on Developing Mood Tracker App.pptxConcetto Labs
 
Which are the Skills_Tools required for Becoming a Mobile QA Engineer_.pptx
Which are the Skills_Tools required for Becoming a Mobile QA Engineer_.pptxWhich are the Skills_Tools required for Becoming a Mobile QA Engineer_.pptx
Which are the Skills_Tools required for Becoming a Mobile QA Engineer_.pptxConcetto Labs
 
Complete Guide_ Mobile App Navigation Designs.pptx
Complete Guide_ Mobile App Navigation Designs.pptxComplete Guide_ Mobile App Navigation Designs.pptx
Complete Guide_ Mobile App Navigation Designs.pptxConcetto Labs
 
The Top 15 Mobile App Development Trends to Watch for in 2022.pptx
The Top 15 Mobile App Development Trends to Watch for in 2022.pptxThe Top 15 Mobile App Development Trends to Watch for in 2022.pptx
The Top 15 Mobile App Development Trends to Watch for in 2022.pptxConcetto Labs
 
How Does Metaverse Affect E-Commerce Business_.pptx
How Does Metaverse Affect E-Commerce Business_.pptxHow Does Metaverse Affect E-Commerce Business_.pptx
How Does Metaverse Affect E-Commerce Business_.pptxConcetto Labs
 
Smart Building Technology_ Concept, Features, and Application.pdf
Smart Building Technology_ Concept, Features, and Application.pdfSmart Building Technology_ Concept, Features, and Application.pdf
Smart Building Technology_ Concept, Features, and Application.pdfConcetto Labs
 
How to Develop Your Own Music Streaming App with Unique Features_.pdf
How to Develop Your Own Music Streaming App with Unique Features_.pdfHow to Develop Your Own Music Streaming App with Unique Features_.pdf
How to Develop Your Own Music Streaming App with Unique Features_.pdfConcetto Labs
 
What are the Cost and Key Features of On-Demand Car Wash App Development Serv...
What are the Cost and Key Features of On-Demand Car Wash App Development Serv...What are the Cost and Key Features of On-Demand Car Wash App Development Serv...
What are the Cost and Key Features of On-Demand Car Wash App Development Serv...Concetto Labs
 
What are the Cost and Key Features of On-Demand Car Wash App Development Serv...
What are the Cost and Key Features of On-Demand Car Wash App Development Serv...What are the Cost and Key Features of On-Demand Car Wash App Development Serv...
What are the Cost and Key Features of On-Demand Car Wash App Development Serv...Concetto Labs
 
Developing a Healthcare Mobile App_ Types, Examples, and Features.pdf
Developing a Healthcare Mobile App_ Types, Examples, and Features.pdfDeveloping a Healthcare Mobile App_ Types, Examples, and Features.pdf
Developing a Healthcare Mobile App_ Types, Examples, and Features.pdfConcetto Labs
 
Laravel 9_ Everything You Need To Know About The Latest Major Release.pdf
Laravel 9_ Everything You Need To Know About The Latest Major Release.pdfLaravel 9_ Everything You Need To Know About The Latest Major Release.pdf
Laravel 9_ Everything You Need To Know About The Latest Major Release.pdfConcetto Labs
 
The Complete Guide to API Development in 2022.pdf
The Complete Guide to API Development in 2022.pdfThe Complete Guide to API Development in 2022.pdf
The Complete Guide to API Development in 2022.pdfConcetto Labs
 
What Is Mobile Device Testing and Best Practices For Mobile Testing_.pdf
What Is Mobile Device Testing and Best Practices For Mobile Testing_.pdfWhat Is Mobile Device Testing and Best Practices For Mobile Testing_.pdf
What Is Mobile Device Testing and Best Practices For Mobile Testing_.pdfConcetto Labs
 
9 Best Design Patterns in iOS to Develop Powerful iPhone Apps.pdf
9 Best Design Patterns in iOS to Develop Powerful iPhone Apps.pdf9 Best Design Patterns in iOS to Develop Powerful iPhone Apps.pdf
9 Best Design Patterns in iOS to Develop Powerful iPhone Apps.pdfConcetto Labs
 
9 Best Design Patterns in iOS to Develop Powerful iPhone Apps.pptx
9 Best Design Patterns in iOS to Develop Powerful iPhone Apps.pptx9 Best Design Patterns in iOS to Develop Powerful iPhone Apps.pptx
9 Best Design Patterns in iOS to Develop Powerful iPhone Apps.pptxConcetto Labs
 
How To Develop A Logistics & Transportation Mobile App_.pptx
How To Develop A Logistics & Transportation Mobile App_.pptxHow To Develop A Logistics & Transportation Mobile App_.pptx
How To Develop A Logistics & Transportation Mobile App_.pptxConcetto Labs
 
13 Android New Features You Must Try Out Today.pptx
13 Android New Features You Must Try Out Today.pptx13 Android New Features You Must Try Out Today.pptx
13 Android New Features You Must Try Out Today.pptxConcetto Labs
 
Get Started with ReactJS 18 Development Services_ New Features and Updates.pptx
Get Started with ReactJS 18 Development Services_ New Features and Updates.pptxGet Started with ReactJS 18 Development Services_ New Features and Updates.pptx
Get Started with ReactJS 18 Development Services_ New Features and Updates.pptxConcetto Labs
 

Mehr von Concetto Labs (20)

Which are The Top 6 Microsoft PowerApps Use Cases with Examples_.pdf
Which are The Top 6 Microsoft PowerApps Use Cases with Examples_.pdfWhich are The Top 6 Microsoft PowerApps Use Cases with Examples_.pdf
Which are The Top 6 Microsoft PowerApps Use Cases with Examples_.pdf
 
Best Outsourcing Quality Assurance Service Tips for Boosting your Business.pptx
Best Outsourcing Quality Assurance Service Tips for Boosting your Business.pptxBest Outsourcing Quality Assurance Service Tips for Boosting your Business.pptx
Best Outsourcing Quality Assurance Service Tips for Boosting your Business.pptx
 
Guide on Developing Mood Tracker App.pptx
Guide on Developing Mood Tracker App.pptxGuide on Developing Mood Tracker App.pptx
Guide on Developing Mood Tracker App.pptx
 
Which are the Skills_Tools required for Becoming a Mobile QA Engineer_.pptx
Which are the Skills_Tools required for Becoming a Mobile QA Engineer_.pptxWhich are the Skills_Tools required for Becoming a Mobile QA Engineer_.pptx
Which are the Skills_Tools required for Becoming a Mobile QA Engineer_.pptx
 
Complete Guide_ Mobile App Navigation Designs.pptx
Complete Guide_ Mobile App Navigation Designs.pptxComplete Guide_ Mobile App Navigation Designs.pptx
Complete Guide_ Mobile App Navigation Designs.pptx
 
The Top 15 Mobile App Development Trends to Watch for in 2022.pptx
The Top 15 Mobile App Development Trends to Watch for in 2022.pptxThe Top 15 Mobile App Development Trends to Watch for in 2022.pptx
The Top 15 Mobile App Development Trends to Watch for in 2022.pptx
 
How Does Metaverse Affect E-Commerce Business_.pptx
How Does Metaverse Affect E-Commerce Business_.pptxHow Does Metaverse Affect E-Commerce Business_.pptx
How Does Metaverse Affect E-Commerce Business_.pptx
 
Smart Building Technology_ Concept, Features, and Application.pdf
Smart Building Technology_ Concept, Features, and Application.pdfSmart Building Technology_ Concept, Features, and Application.pdf
Smart Building Technology_ Concept, Features, and Application.pdf
 
How to Develop Your Own Music Streaming App with Unique Features_.pdf
How to Develop Your Own Music Streaming App with Unique Features_.pdfHow to Develop Your Own Music Streaming App with Unique Features_.pdf
How to Develop Your Own Music Streaming App with Unique Features_.pdf
 
What are the Cost and Key Features of On-Demand Car Wash App Development Serv...
What are the Cost and Key Features of On-Demand Car Wash App Development Serv...What are the Cost and Key Features of On-Demand Car Wash App Development Serv...
What are the Cost and Key Features of On-Demand Car Wash App Development Serv...
 
What are the Cost and Key Features of On-Demand Car Wash App Development Serv...
What are the Cost and Key Features of On-Demand Car Wash App Development Serv...What are the Cost and Key Features of On-Demand Car Wash App Development Serv...
What are the Cost and Key Features of On-Demand Car Wash App Development Serv...
 
Developing a Healthcare Mobile App_ Types, Examples, and Features.pdf
Developing a Healthcare Mobile App_ Types, Examples, and Features.pdfDeveloping a Healthcare Mobile App_ Types, Examples, and Features.pdf
Developing a Healthcare Mobile App_ Types, Examples, and Features.pdf
 
Laravel 9_ Everything You Need To Know About The Latest Major Release.pdf
Laravel 9_ Everything You Need To Know About The Latest Major Release.pdfLaravel 9_ Everything You Need To Know About The Latest Major Release.pdf
Laravel 9_ Everything You Need To Know About The Latest Major Release.pdf
 
The Complete Guide to API Development in 2022.pdf
The Complete Guide to API Development in 2022.pdfThe Complete Guide to API Development in 2022.pdf
The Complete Guide to API Development in 2022.pdf
 
What Is Mobile Device Testing and Best Practices For Mobile Testing_.pdf
What Is Mobile Device Testing and Best Practices For Mobile Testing_.pdfWhat Is Mobile Device Testing and Best Practices For Mobile Testing_.pdf
What Is Mobile Device Testing and Best Practices For Mobile Testing_.pdf
 
9 Best Design Patterns in iOS to Develop Powerful iPhone Apps.pdf
9 Best Design Patterns in iOS to Develop Powerful iPhone Apps.pdf9 Best Design Patterns in iOS to Develop Powerful iPhone Apps.pdf
9 Best Design Patterns in iOS to Develop Powerful iPhone Apps.pdf
 
9 Best Design Patterns in iOS to Develop Powerful iPhone Apps.pptx
9 Best Design Patterns in iOS to Develop Powerful iPhone Apps.pptx9 Best Design Patterns in iOS to Develop Powerful iPhone Apps.pptx
9 Best Design Patterns in iOS to Develop Powerful iPhone Apps.pptx
 
How To Develop A Logistics & Transportation Mobile App_.pptx
How To Develop A Logistics & Transportation Mobile App_.pptxHow To Develop A Logistics & Transportation Mobile App_.pptx
How To Develop A Logistics & Transportation Mobile App_.pptx
 
13 Android New Features You Must Try Out Today.pptx
13 Android New Features You Must Try Out Today.pptx13 Android New Features You Must Try Out Today.pptx
13 Android New Features You Must Try Out Today.pptx
 
Get Started with ReactJS 18 Development Services_ New Features and Updates.pptx
Get Started with ReactJS 18 Development Services_ New Features and Updates.pptxGet Started with ReactJS 18 Development Services_ New Features and Updates.pptx
Get Started with ReactJS 18 Development Services_ New Features and Updates.pptx
 

Kürzlich hochgeladen

哪里有卖的《俄亥俄大学学历证书+俄亥俄大学文凭证书+俄亥俄大学学位证书》Q微信741003700《俄亥俄大学学位证书复制》办理俄亥俄大学毕业证成绩单|购买...
哪里有卖的《俄亥俄大学学历证书+俄亥俄大学文凭证书+俄亥俄大学学位证书》Q微信741003700《俄亥俄大学学位证书复制》办理俄亥俄大学毕业证成绩单|购买...哪里有卖的《俄亥俄大学学历证书+俄亥俄大学文凭证书+俄亥俄大学学位证书》Q微信741003700《俄亥俄大学学位证书复制》办理俄亥俄大学毕业证成绩单|购买...
哪里有卖的《俄亥俄大学学历证书+俄亥俄大学文凭证书+俄亥俄大学学位证书》Q微信741003700《俄亥俄大学学位证书复制》办理俄亥俄大学毕业证成绩单|购买...wyqazy
 
CALL ON ➥8923113531 🔝Call Girls Saharaganj Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Saharaganj Lucknow best sexual serviceCALL ON ➥8923113531 🔝Call Girls Saharaganj Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Saharaganj Lucknow best sexual serviceanilsa9823
 
Chandigarh Call Girls Service ❤️🍑 9115573837 👄🫦Independent Escort Service Cha...
Chandigarh Call Girls Service ❤️🍑 9115573837 👄🫦Independent Escort Service Cha...Chandigarh Call Girls Service ❤️🍑 9115573837 👄🫦Independent Escort Service Cha...
Chandigarh Call Girls Service ❤️🍑 9115573837 👄🫦Independent Escort Service Cha...Niamh verma
 
9892124323 | Book Call Girls in Juhu and escort services 24x7
9892124323 | Book Call Girls in Juhu and escort services 24x79892124323 | Book Call Girls in Juhu and escort services 24x7
9892124323 | Book Call Girls in Juhu and escort services 24x7Pooja Nehwal
 
CALL ON ➥8923113531 🔝Call Girls Gomti Nagar Lucknow best Night Fun service
CALL ON ➥8923113531 🔝Call Girls Gomti Nagar Lucknow best Night Fun serviceCALL ON ➥8923113531 🔝Call Girls Gomti Nagar Lucknow best Night Fun service
CALL ON ➥8923113531 🔝Call Girls Gomti Nagar Lucknow best Night Fun serviceanilsa9823
 
Powerful Love Spells in Arkansas, AR (310) 882-6330 Bring Back Lost Lover
Powerful Love Spells in Arkansas, AR (310) 882-6330 Bring Back Lost LoverPowerful Love Spells in Arkansas, AR (310) 882-6330 Bring Back Lost Lover
Powerful Love Spells in Arkansas, AR (310) 882-6330 Bring Back Lost LoverPsychicRuben LoveSpells
 
Call US Pooja 9892124323 ✓Call Girls In Mira Road ( Mumbai ) secure service,
Call US Pooja 9892124323 ✓Call Girls In Mira Road ( Mumbai ) secure service,Call US Pooja 9892124323 ✓Call Girls In Mira Road ( Mumbai ) secure service,
Call US Pooja 9892124323 ✓Call Girls In Mira Road ( Mumbai ) secure service,Pooja Nehwal
 
Model Call Girl in Shalimar Bagh Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Shalimar Bagh Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Shalimar Bagh Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Shalimar Bagh Delhi reach out to us at 🔝8264348440🔝soniya singh
 

Kürzlich hochgeladen (8)

哪里有卖的《俄亥俄大学学历证书+俄亥俄大学文凭证书+俄亥俄大学学位证书》Q微信741003700《俄亥俄大学学位证书复制》办理俄亥俄大学毕业证成绩单|购买...
哪里有卖的《俄亥俄大学学历证书+俄亥俄大学文凭证书+俄亥俄大学学位证书》Q微信741003700《俄亥俄大学学位证书复制》办理俄亥俄大学毕业证成绩单|购买...哪里有卖的《俄亥俄大学学历证书+俄亥俄大学文凭证书+俄亥俄大学学位证书》Q微信741003700《俄亥俄大学学位证书复制》办理俄亥俄大学毕业证成绩单|购买...
哪里有卖的《俄亥俄大学学历证书+俄亥俄大学文凭证书+俄亥俄大学学位证书》Q微信741003700《俄亥俄大学学位证书复制》办理俄亥俄大学毕业证成绩单|购买...
 
CALL ON ➥8923113531 🔝Call Girls Saharaganj Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Saharaganj Lucknow best sexual serviceCALL ON ➥8923113531 🔝Call Girls Saharaganj Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Saharaganj Lucknow best sexual service
 
Chandigarh Call Girls Service ❤️🍑 9115573837 👄🫦Independent Escort Service Cha...
Chandigarh Call Girls Service ❤️🍑 9115573837 👄🫦Independent Escort Service Cha...Chandigarh Call Girls Service ❤️🍑 9115573837 👄🫦Independent Escort Service Cha...
Chandigarh Call Girls Service ❤️🍑 9115573837 👄🫦Independent Escort Service Cha...
 
9892124323 | Book Call Girls in Juhu and escort services 24x7
9892124323 | Book Call Girls in Juhu and escort services 24x79892124323 | Book Call Girls in Juhu and escort services 24x7
9892124323 | Book Call Girls in Juhu and escort services 24x7
 
CALL ON ➥8923113531 🔝Call Girls Gomti Nagar Lucknow best Night Fun service
CALL ON ➥8923113531 🔝Call Girls Gomti Nagar Lucknow best Night Fun serviceCALL ON ➥8923113531 🔝Call Girls Gomti Nagar Lucknow best Night Fun service
CALL ON ➥8923113531 🔝Call Girls Gomti Nagar Lucknow best Night Fun service
 
Powerful Love Spells in Arkansas, AR (310) 882-6330 Bring Back Lost Lover
Powerful Love Spells in Arkansas, AR (310) 882-6330 Bring Back Lost LoverPowerful Love Spells in Arkansas, AR (310) 882-6330 Bring Back Lost Lover
Powerful Love Spells in Arkansas, AR (310) 882-6330 Bring Back Lost Lover
 
Call US Pooja 9892124323 ✓Call Girls In Mira Road ( Mumbai ) secure service,
Call US Pooja 9892124323 ✓Call Girls In Mira Road ( Mumbai ) secure service,Call US Pooja 9892124323 ✓Call Girls In Mira Road ( Mumbai ) secure service,
Call US Pooja 9892124323 ✓Call Girls In Mira Road ( Mumbai ) secure service,
 
Model Call Girl in Shalimar Bagh Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Shalimar Bagh Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Shalimar Bagh Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Shalimar Bagh Delhi reach out to us at 🔝8264348440🔝
 

A guide to building a handwriting number recognition app using flutter and tensorflow

  • 1. A Guide to Building a Handwriting Number Recognition App Using Flutter and Tensorflow
  • 2. Flutter and Tensorflow are rapidly becoming one of the most popular mobile app development tools in the market with businesses looking to hire flutter app developers for their custom app requirements. Any up and coming flutter app development company is looking to constantly innovate and experiment with the tech to progress. Flutter app development is now expanding into the arena of machine learning where minor projects are being created based on machine learning. One such experimental project that you can work on is developing a handwriting recognizer app using Flutter and a machine learning tool Tensorflow.
  • 3. Here’s how you can get started: 1. Develop the machine learning model using Tensorflow This model will help the device recognize the number through its shape and match it with the relevant digit is drawn using machine learning. It will provide instructions to the app to display the drawn digit in the form of an image.
  • 4. 2. Develop the flutter mobile application for input based on the Tensorflow model The second step is to develop the Flutter mobile app where 1. Users can use a canvas for drawing up the desired numbers 2. The drawn image will be matched with the relevant image as recognized by the device through the Tensorflow module
  • 5. Begin with the Tensorflow Model
  • 6. Step 1- Get Started For getting started with Tensorflow, you can either run the model locally using Python or use a notebook such as Jupiter, Colab by Google or Azure Notebooks by Microsoft. Pro-tip: Create an isolated virtual environment to run this project so that it doesn’t harm the other projects in case anything goes wrong. In case you decide to run with Python, this is the code you would need to use to install Tensorflow Post which, you would need to create a defined project structure to store your model in.
  • 7. In the case of a notebook, you can start directly from the point of importing Tensorflow. Step 2- Load Dataset for Number Recognition You would require a dataset that would translate the hand-written numbers into an image format. Tensorflow already has preloaded datasets to do just this. You can load the MINST dataset from Tensorflow which stores numbers in 28X28 pixel format where the images are 20X20 pixels with 4 pixels of padding on each side. The images are greyscaled.
  • 8. Once your dataset is loaded, you can assign the value to each image. There are 256 values as there are colors. Generalize these values whereby the input is directly translated into values from 0 to 9 to make space for more modification in the future. Step 3- Compile and Train The next step is to compile your model and train it for maximum accuracy. A callback must be coded into the model to stop the training process for the model once this accuracy is achieved.
  • 9. The final code for your Tensorflow model must look something like this: The Flutter App Development The next step for your flutter app developers is to create a container app which will work with the model. The flutter app development process is divided into two parts Importing the model and making it compatible with the app
  • 10. Developing a finger painting canvas for hand-written input of numbers For importing the model, create your custom flutter app project and clean the main.dart file to start anew. You must create another file where your custom code can work aside from the lib/main.dart file. This file will then be imported on to your project using the ‘home’ parameter. You can name it recognizer_screen.dart.
  • 11. Once your new project is all set up, you will need to import the Tensorflow model and the Tensorflow library by modifying the pubspec.yaml file. Along with this, you will also need to create a text file with digits from 0 to 9 which will be associated with the output of the file. Once everything is set, you need to declare your assets within your pubsec.yaml files. You can either declare all your assets together or only select and insert the assets you wish to utilize.
  • 12. Developing the App Layout and the Canvas Once your model is set up, you need to define an app layout with a header and footer in the form of a flex container which is set to 1. The size of the canvas where the numbers will be finger painted will remain fixed. For developing the canvas, you will require three flutter tools for painting which are:
  • 13. ● Custom Paint ● Custom Painter ● Canvas Widget Canvas widget will provide a canvas for the input while CustomPainter helps the widget to run paint commands. Create a subclass called drawing_painter.dart for your CustomPainter widget to include your custom code. You will be further required to import the flutter/material. Art in order to utilize any colors within the file.
  • 14. To wrap it up, the last two things that you must define is the canvas area so that the user cannot draw outside it and highlight the painting area by decorating it.
  • 15. Flutter app developers now have all the tools in place to pass on the image form the canvas to your machine learning model for it to predict the number in the form of an image. In case you do not feel confident enough to venture out on your own, the next update on the working of the app will be coming soon!
  • 16. Web & Mobile App Development Company https://concettolabs.com
  • 17. Global Network USA 4811 N Harding Ave, Chicago IL 60625 P: +1(903) 200-8801 CANADA 1445 Rennie St Oshawa, Ontario, L1K 0N9,CANADA P: (416) 272-0981 INDIA 609/610,City Center Science City Road Ahmedabad - 380060 P: +919586777575 UK 6 Hastings Avenue Ilford , IG6 1DZ P: +44(798)560 0352