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

ML Kit

ML Kit

The slide introduces the new google ML features and emphasizes on google text recognition api

Agatevure Glory

May 24, 2018
Tweet

More Decks by Agatevure Glory

Other Decks in Programming

Transcript

  1. How does it work? • ML Kit makes it easy

    to apply ML techniques in your apps by bringing Google's ML technologies, such as the • Google Cloud Vision API • Mobile Vision • TensorFlow Lite together in a single SDK with just a few lines of code.
  2. Google Cloud Vision API enables developers to understand the content

    of an image by encapsulating powerful machine learning models in an easy to use REST API. It quickly classifies images into thousands of categories Google Cloud Vision API
  3. Mobile Vision Detect Faces The Face API finds human faces

    in photos, videos, or live streams. The API also provides information about the state of facial features -- are the subject's eyes open? Are they smiling? The Barcode Scanner API detects barcodes in real time in any orientation. You can also detect and parse several barcodes in different formats at the same time. Scan Barcodes Recognize Text The Text Recognition API recognizes text in any Latin based language. It also represents the structure of recognized text, including paragraphs and lines.
  4. Why Text Recognition? • Utilize the ML Kit Text Recognition

    API to detect text in images • Use the ML Kit Cloud Text Recognition API to expand text recognition capabilities (such as non-Latin alphabets) when the device has internet connectivity
  5. Requirements to use the SDK • A recent version of

    Android Studio (v3.0+) •Android Studio Emulator or a physical Android device • Create Firebase console Project
  6. Setup the Firebase Console • Connect your Android app to

    firebase • Add google-services.json file to your app • Add the dependencies for ML Kit and the google-services plugin to your app
  7. Add on-Device Text Recognition The code above configures the text

    recognition detector and calls the function processTextRecognitionResultwith the response.
  8. Add Cloud Text Recognition This will allow you to detect

    more types of text in images, such as non-Latin alphabets.
  9. Set up and Run Cloud Text Recognition on an Image

    Add the following to the runCloudTextRecognition method of the MainActivity class:
  10. Cloud Text Recognition in ML Kit is ideally suited if:

    • You need advanced text recognition capability in your app • Your app is able to access the internet • Your app does not need to do real time text recognition in video frames
  11. I/ Thank you You can get the slide from speakerdeck.com/gconnect

    @agatevureglory KodeHauz Agatevure Glory