Upgrade to Pro — share decks privately, control downloads, hide ads and more …

ML on the edge

ML on the edge

This is a presentation on how mobile applications can benefit by doing ML on the device itself as opposed to in the cloud. MLKit is a library introduced by Google for this purpose. This presentation also provides brief code examples of integrating MLKit in Android application.

Avatar for Sangeetha KP

Sangeetha KP

August 26, 2019
Tweet

More Decks by Sangeetha KP

Other Decks in Programming

Transcript

  1. ML on the edge Integration of MLKit on mobile applications

    1 WTM - WiDS Lightning talks Sangeetha KP (@sangee_kp)
  2. Why run ML on edge? 1. Latency 2. Privacy of

    data 3. Real-time 4. Data usage 5. Offline 6. Experimentation and many more! 2
  3. MLKit 1. Google’s machine learning SDK optimized for mobile applications

    2. Tailored for your app (Android, iOS) 3. Built on top of TensorFlow lite 3
  4. 4

  5. 5

  6. 6

  7. 7

  8. Implementation 1. Connect your app with firebase 2. Add Gradle

    MLKit dependencies 3. Run your image through the recognizer for processing 4. Retrieve and parse the processed results 8
  9. Steps to integrate MLKit library 3. Convert input image to

    bitmap format and feed to FirebaseVisionDetector 11
  10. Implementation - Summary 1. Connect your app with firebase 2.

    Add Gradle MLKit dependencies 3. Run your image through the recognizer for processing 4. Retrieve and parse the processed results 13