Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Machine Learning Projects for Mobile Applications

You're reading from   Machine Learning Projects for Mobile Applications Build Android and iOS applications using TensorFlow Lite and Core ML

Arrow left icon
Product type Paperback
Published in Oct 2018
Publisher Packt
ISBN-13 9781788994590
Length 246 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Karthikeyan NG Karthikeyan NG
Author Profile Icon Karthikeyan NG
Karthikeyan NG
Arrow right icon
View More author details
Toc

Text recognition

After face detection and barcode scanning, let's build an application to recognize text from the input images or camera feed. This method is called Optical Character Recognition (OCR). Text recognition supports both on-device recognition as well as cloud-based recognition. 

On-device text recognition

Let's skip the default methods that we use for face detection and barcode scanning. 

After creating the FirebaseVisionImage object, we will create the detector instance where we will pass on the VisionImage object shown as follows, similar to what we have done before on face detection and barcode scanning:

FirebaseVisionTextDetector detector = FirebaseVision.getInstance...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime