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

Machine Learning Application on Mobile Devices

Machine Learning Application on Mobile Devices

Introduce how to use machine learning on development of mobile applications

Elvis Lin

July 19, 2018
Tweet

More Decks by Elvis Lin

Other Decks in Programming

Transcript

  1. 轉換 Tensorflow 檔案的⼯工具 • Tensorflow converter • 轉成 Tensorflow Lite

    格式
 • Tensorflow-CoreML converter • 轉成 CoreML 格式 • https://github.com/tf-coreml/tf-coreml
  2. ML Kit • Cloud Vision API / Mobile Vision API

    • Tensorflow Lite • 整合 Firebase,託管「客製化的模型」
  3. ML Kit Base APIs • Image labeling • Text recognition

    (OCR) • Face detection • Barcode scanning • Landmark detection • others……
  4. 圖片內容標注 On-device Cloud Pricing Free Free for first 1000 uses

    of this feature per month Label coverage 400+ labels that cover the most commonly- found concepts in photos. 10,000+ labels in many categories
  5. 辨識⽂文字 On-device Cloud Pricing Free Free for first 1000 uses

    of this feature per month Ideal use cases Real-time processing —ideal for a camera or video feed High-accuracy text recognition Language support Recognizes Latin characters Recognizes and identifies a broad range of languages and special characters
  6. ⽀支援的 barcode 格式 • Code 128 (FORMAT_CODE_128) • Code 39

    (FORMAT_CODE_39) • Code 93 (FORMAT_CODE_93) • Codabar (FORMAT_CODABAR) • EAN-13 (FORMAT_EAN_13) • EAN-8 (FORMAT_EAN_8) • ITF (FORMAT_ITF) • UPC-A (FORMAT_UPC_A) • UPC-E (FORMAT_UPC_E) •QR Code (FORMAT_QR_CODE) • PDF417 (FORMAT_PDF417) • Aztec (FORMAT_AZTEC) • Data Matrix (FORMAT_DATA_MATRIX)
  7. 程式碼範例例 • ML Kit 簡介 (for Android)
 https://blog.elvismetaphor.me/ml-kit-fundamentals-for- android-6444e2db0fdb •

    ML Kit 簡介 (for iOS)
 https://blog.elvismetaphor.me/ml-kit-fundamentals-for- ios-cb705044e69b • 不論是使⽤用本機端或雲端的 API,提供類似的程式碼編寫⽅方 式
  8. 在其他 Framework 上的⽀支援程度 • React Native • 預計在 RNFirebase v5.x.x

    的時候提供⽀支援 • https://github.com/invertase/react-native-firebase • Flutter • mlkit - A Flutter plugin to use the Firebase ML Kit • https://pub.dartlang.org/packages/mlkit
  9. PWA • Progressive Web Apps + (Google) Cloud Vision API

    • What Web Can Do Today — 介紹⽬目前瀏覽器已經⽀支援的功能
 https://whatwebcando.today/ • PWA Rocks — 精選⼀一些 PWA 的網站 • https://pwa.rocks/ • 掃描 QRCode: https://qrcodescan.in/