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 pages
  2. English
  3. ePUB (adapté aux mobiles)
  4. Disponible sur iOS et Android
eBook - ePub

Machine Learning Projects for Mobile Applications

Build Android and iOS applications using TensorFlow Lite and Core ML

Karthikeyan NG

DĂ©tails du livre
Aperçu du livre
Table des matiĂšres
Citations

À propos de ce livre

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.

Foire aux questions

Comment puis-je résilier mon abonnement ?
Il vous suffit de vous rendre dans la section compte dans paramĂštres et de cliquer sur « RĂ©silier l’abonnement ». C’est aussi simple que cela ! Une fois que vous aurez rĂ©siliĂ© votre abonnement, il restera actif pour le reste de la pĂ©riode pour laquelle vous avez payĂ©. DĂ©couvrez-en plus ici.
Puis-je / comment puis-je télécharger des livres ?
Pour le moment, tous nos livres en format ePub adaptĂ©s aux mobiles peuvent ĂȘtre tĂ©lĂ©chargĂ©s via l’application. La plupart de nos PDF sont Ă©galement disponibles en tĂ©lĂ©chargement et les autres seront tĂ©lĂ©chargeables trĂšs prochainement. DĂ©couvrez-en plus ici.
Quelle est la différence entre les formules tarifaires ?
Les deux abonnements vous donnent un accĂšs complet Ă  la bibliothĂšque et Ă  toutes les fonctionnalitĂ©s de Perlego. Les seules diffĂ©rences sont les tarifs ainsi que la pĂ©riode d’abonnement : avec l’abonnement annuel, vous Ă©conomiserez environ 30 % par rapport Ă  12 mois d’abonnement mensuel.
Qu’est-ce que Perlego ?
Nous sommes un service d’abonnement Ă  des ouvrages universitaires en ligne, oĂč vous pouvez accĂ©der Ă  toute une bibliothĂšque pour un prix infĂ©rieur Ă  celui d’un seul livre par mois. Avec plus d’un million de livres sur plus de 1 000 sujets, nous avons ce qu’il vous faut ! DĂ©couvrez-en plus ici.
Prenez-vous en charge la synthÚse vocale ?
Recherchez le symbole Écouter sur votre prochain livre pour voir si vous pouvez l’écouter. L’outil Écouter lit le texte Ă  haute voix pour vous, en surlignant le passage qui est en cours de lecture. Vous pouvez le mettre sur pause, l’accĂ©lĂ©rer ou le ralentir. DĂ©couvrez-en plus ici.
Est-ce que Machine Learning Projects for Mobile Applications est un PDF/ePUB en ligne ?
Oui, vous pouvez accĂ©der Ă  Machine Learning Projects for Mobile Applications par Karthikeyan NG en format PDF et/ou ePUB ainsi qu’à d’autres livres populaires dans Informatica et Visione artificiale e riconoscimento di schemi. Nous disposons de plus d’un million d’ouvrages Ă  dĂ©couvrir dans notre catalogue.

Informations

Année
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...

Table des matiĂšres

  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
Normes de citation pour 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.