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 Seiten
  2. English
  3. ePUB (handyfreundlich)
  4. Über iOS und Android verfügbar
eBook - ePub

Machine Learning Projects for Mobile Applications

Build Android and iOS applications using TensorFlow Lite and Core ML

Karthikeyan NG

Angaben zum Buch
Buchvorschau
Inhaltsverzeichnis
Quellenangaben

Über dieses Buch

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.

Häufig gestellte Fragen

Wie kann ich mein Abo kündigen?
Gehe einfach zum Kontobereich in den Einstellungen und klicke auf „Abo kündigen“ – ganz einfach. Nachdem du gekündigt hast, bleibt deine Mitgliedschaft für den verbleibenden Abozeitraum, den du bereits bezahlt hast, aktiv. Mehr Informationen hier.
(Wie) Kann ich Bücher herunterladen?
Derzeit stehen all unsere auf Mobilgeräte reagierenden ePub-Bücher zum Download über die App zur Verfügung. Die meisten unserer PDFs stehen ebenfalls zum Download bereit; wir arbeiten daran, auch die übrigen PDFs zum Download anzubieten, bei denen dies aktuell noch nicht möglich ist. Weitere Informationen hier.
Welcher Unterschied besteht bei den Preisen zwischen den Aboplänen?
Mit beiden Aboplänen erhältst du vollen Zugang zur Bibliothek und allen Funktionen von Perlego. Die einzigen Unterschiede bestehen im Preis und dem Abozeitraum: Mit dem Jahresabo sparst du auf 12 Monate gerechnet im Vergleich zum Monatsabo rund 30 %.
Was ist Perlego?
Wir sind ein Online-Abodienst für Lehrbücher, bei dem du für weniger als den Preis eines einzelnen Buches pro Monat Zugang zu einer ganzen Online-Bibliothek erhältst. Mit über 1 Million Büchern zu über 1.000 verschiedenen Themen haben wir bestimmt alles, was du brauchst! Weitere Informationen hier.
Unterstützt Perlego Text-zu-Sprache?
Achte auf das Symbol zum Vorlesen in deinem nächsten Buch, um zu sehen, ob du es dir auch anhören kannst. Bei diesem Tool wird dir Text laut vorgelesen, wobei der Text beim Vorlesen auch grafisch hervorgehoben wird. Du kannst das Vorlesen jederzeit anhalten, beschleunigen und verlangsamen. Weitere Informationen hier.
Ist Machine Learning Projects for Mobile Applications als Online-PDF/ePub verfügbar?
Ja, du hast Zugang zu Machine Learning Projects for Mobile Applications von Karthikeyan NG im PDF- und/oder ePub-Format sowie zu anderen beliebten Büchern aus Informatica & Visione artificiale e riconoscimento di schemi. Aus unserem Katalog stehen dir über 1 Million Bücher zur Verfügung.

Information

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...

Inhaltsverzeichnis

  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
Zitierstile für 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.