Machine Learning Projects for Mobile Applications
eBook - ePub

Machine Learning Projects for Mobile Applications

Build Android and iOS applications using TensorFlow Lite and Core ML

Karthikeyan NG

  1. 246 pagine
  2. English
  3. ePUB (disponibile sull'app)
  4. Disponibile su iOS e Android
eBook - ePub

Machine Learning Projects for Mobile Applications

Build Android and iOS applications using TensorFlow Lite and Core ML

Karthikeyan NG

Dettagli del libro
Anteprima del libro
Indice dei contenuti
Citazioni

Informazioni sul libro

Bring magic to your mobile apps using TensorFlow Lite and Core ML

Key Features

  • Explore machine learning using classification, analytics, and detection tasks.
  • Work with image, text and video datasets to delve into real-world tasks
  • Build apps for Android and iOS using Caffe, Core ML and Tensorflow Lite

Book Description

Machine learning is a technique that focuses on developing computer programs that can be modified when exposed to new data. We can make use of it for our mobile applications and this book will show you how to do so.

The book starts with the basics of machine learning concepts for mobile applications and how to get well equipped for further tasks. You will start by developing an app to classify age and gender using Core ML and Tensorflow Lite. You will explore neural style transfer and get familiar with how deep CNNs work. We will also take a closer look at Google's ML Kit for the Firebase SDK for mobile applications. You will learn how to detect handwritten text on mobile. You will also learn how to create your own Snapchat filter by making use of facial attributes and OpenCV. You will learn how to train your own food classification model on your mobile; all of this will be done with the help of deep learning techniques. Lastly, you will build an image classifier on your mobile, compare its performance, and analyze the results on both mobile and cloud using TensorFlow Lite with an RCNN.

By the end of this book, you will not only have mastered the concepts of machine learning but also learned how to resolve problems faced while building powerful apps on mobiles using TensorFlow Lite, Caffe2, and Core ML.

What you will learn

  • Demystify the machine learning landscape on mobile
  • Age and gender detection using TensorFlow Lite and Core ML
  • Use ML Kit for Firebase for in-text detection, face detection, and barcode scanning
  • Create a digit classifier using adversarial learning
  • Build a cross-platform application with face filters using OpenCV
  • Classify food using deep CNNs and TensorFlow Lite on iOS

Who this book is for

Machine Learning Projects for Mobile Applications is for you if you are a data scientist, machine learning expert, deep learning, or AI enthusiast who fancies mastering machine learning and deep learning implementation with practical examples using TensorFlow Lite and CoreML. Basic knowledge of Python programming language would be an added advantage.

Domande frequenti

Come faccio ad annullare l'abbonamento?
È semplicissimo: basta accedere alla sezione Account nelle Impostazioni e cliccare su "Annulla abbonamento". Dopo la cancellazione, l'abbonamento rimarrà attivo per il periodo rimanente già pagato. Per maggiori informazioni, clicca qui
È possibile scaricare libri? Se sì, come?
Al momento è possibile scaricare tramite l'app tutti i nostri libri ePub mobile-friendly. Anche la maggior parte dei nostri PDF è scaricabile e stiamo lavorando per rendere disponibile quanto prima il download di tutti gli altri file. Per maggiori informazioni, clicca qui
Che differenza c'è tra i piani?
Entrambi i piani ti danno accesso illimitato alla libreria e a tutte le funzionalità di Perlego. Le uniche differenze sono il prezzo e il periodo di abbonamento: con il piano annuale risparmierai circa il 30% rispetto a 12 rate con quello mensile.
Cos'è Perlego?
Perlego è un servizio di abbonamento a testi accademici, che ti permette di accedere a un'intera libreria online a un prezzo inferiore rispetto a quello che pagheresti per acquistare un singolo libro al mese. Con oltre 1 milione di testi suddivisi in più di 1.000 categorie, troverai sicuramente ciò che fa per te! Per maggiori informazioni, clicca qui.
Perlego supporta la sintesi vocale?
Cerca l'icona Sintesi vocale nel prossimo libro che leggerai per verificare se è possibile riprodurre l'audio. Questo strumento permette di leggere il testo a voce alta, evidenziandolo man mano che la lettura procede. Puoi aumentare o diminuire la velocità della sintesi vocale, oppure sospendere la riproduzione. Per maggiori informazioni, clicca qui.
Machine Learning Projects for Mobile Applications è disponibile online in formato PDF/ePub?
Sì, puoi accedere a Machine Learning Projects for Mobile Applications di Karthikeyan NG in formato PDF e/o ePub, così come ad altri libri molto apprezzati nelle sezioni relative a Informatica e Visione artificiale e riconoscimento di schemi. Scopri oltre 1 milione di libri disponibili nel nostro catalogo.

Informazioni

Anno
2018
ISBN
9781788998468

Deep Diving into the ML Kit with Firebase

In this chapter, we are going to further explore the Google Firebase-based ML Kit platform for mobile applications.
Google launched Firebase ML Kit at I/O 2018. The ML Kit is a part of the Firebase application suite that enables developers to incorporate machine learning (ML) capabilities into mobile applications. The Firebase ML Kit Software Development Kit (SDK) comes with a few features that are common among mobile applications, helping Android and iOS developers irrespective of their familiarity with ML.
The concepts covered throughout the chapter are as follows:
  • Understanding the basics of the ML Kit
  • Learning to add Firebase to our applications
  • Creating multiple applications that can be used for face detection, barcode scanning, and on-device text recognition using Firebase
Here is a link to our repository for this chapter: https://github.com/intrepidkarthi/MLmobileapps/tree/master/Chapter4 and https://github.com/PacktPublishing/Machine-Learning-Projects-for-Mobile-Applications.

ML Kit basics

Of course, we can always do all the ML-based implementations without the help of Firebase. However, there are a few reasons why not everyone will be able to do this. The reason for this could be one of the following:
  • A very good mobile application developer may not be good at building an ML model. Building an ML model definitely takes time. This may vary on a case-by-case basis.
  • Finding the right set of data models that will solve your use case will be a very difficult problem. Let's say you want to detect age and gender classification on an Asian person's face. In this case, the existing models that are available may not be accurate enough for your use case.
  • Hosting your own model will be costlier and will require extra care on the server side of the application.
The ML Kit is a combination of Google Cloud Vision API, Mobile Vision, and TensorFlow Lite models on a local device:

Basic feature set

ML Kit comes with a ready-to-use code base for common use cases such as detecting faces from an image, barcode scanning, finding text in an image, and image labeling. By passing on the data to the API, we can get the answer to our query on basic use cases with a few lines of code.
The ML Kit provides both on-device as well as cloud APIs. Based on our requirements, we can use either one of these services. While on-device APIs work faster, cloud APIs will provide better accuracy.
Not all mobile applications fall under the default APIs provided with the ML Kit. We will always have our own case to solve through ML. ML Kit supports deploying our custom TensorFlow Lite model into a cloud and acts as a layer to interact with your model.
At the time of writing this book, ML Kit comes with the following capabilities in beta mode:
  • Text recognition
  • Face detection
  • Barcode scanning
  • Image labeling
  • Landmark detection
Depending on the use case, these capabilities can come with on-device and...

Indice dei contenuti

  1. Title Page
  2. Copyright and Credits
  3. Dedication
  4. Packt Upsell
  5. Contributors
  6. Preface
  7. Mobile Landscapes in Machine Learning
  8. CNN Based Age and Gender Identification Using Core ML
  9. Applying Neural Style Transfer on Photos
  10. Deep Diving into the ML Kit with Firebase
  11. A Snapchat-Like AR Filter on Android
  12. Handwritten Digit Classifier Using Adversarial Learning
  13. Face-Swapping with Your Friends Using OpenCV
  14. Classifying Food Using Transfer Learning
  15. What's Next?
  16. Other Books You May Enjoy
Stili delle citazioni per Machine Learning Projects for Mobile Applications

APA 6 Citation

Karthikeyan, N. (2018). Machine Learning Projects for Mobile Applications (1st ed.). Packt Publishing. Retrieved from https://www.perlego.com/book/835409/machine-learning-projects-for-mobile-applications-build-android-and-ios-applications-using-tensorflow-lite-and-core-ml-pdf (Original work published 2018)

Chicago Citation

Karthikeyan, NG. (2018) 2018. Machine Learning Projects for Mobile Applications. 1st ed. Packt Publishing. https://www.perlego.com/book/835409/machine-learning-projects-for-mobile-applications-build-android-and-ios-applications-using-tensorflow-lite-and-core-ml-pdf.

Harvard Citation

Karthikeyan, N. (2018) Machine Learning Projects for Mobile Applications. 1st edn. Packt Publishing. Available at: https://www.perlego.com/book/835409/machine-learning-projects-for-mobile-applications-build-android-and-ios-applications-using-tensorflow-lite-and-core-ml-pdf (Accessed: 14 October 2022).

MLA 7 Citation

Karthikeyan, NG. Machine Learning Projects for Mobile Applications. 1st ed. Packt Publishing, 2018. Web. 14 Oct. 2022.