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

FlutterでMLKitを使ってみる.pdf

sayurikunugi
August 28, 2018
1.2k

 FlutterでMLKitを使ってみる.pdf

flutterでFirebase MLKitを使ってみる

sayurikunugi

August 28, 2018
Tweet

Transcript

  1. 自己紹介 • エンジニア • 会社:HealtheeOne https://healtheeone.com • Android 7年くらい • Ios/Xcodeは未経験

    • Flutterは2週間くらい…(初心者ですすみません) 簡単なOCRのモックプロジェクト作って、apk作るまでを1 週間くらいでやったので、その雑感をまとめます。
  2. ML Kitとは • 画像認識システム。機械学習機能も。 https://firebase.google.com/products/ml-kit/?hl=j a 「Image Labeling」-画像に写っているものをリス トアップできる 「Text

    recognition 」 -文字を認識できる 「Face detection 」 -顔を認識する 「Barcode scanning 」 -バーコードを認識する 「Landmark detection 」 -有名な場所を認識する
  3. Firebaseの設定 • https://codelabs.developers.google.com/codela bs/flutter-firebase/#4 • 注意 6. Platform-specific Firebase configuration

    の手 中、 順 iOSは6まででOK   ※6.Continuing in Firebase, follow the instructions to download the config file GoogleService-Info.plist.
  4. 大変だったところ① • Androidではデバッグアプリ動くんだけど、 iOSでビルドが通らない… • officialプラグインも非officialもダメ。 →githubで、両方ともissueしてみた • officialの方は「flutter doctorの結果を載せて」と返事

     ※issue時はflutter doctorの結果はマストらしい • 非officialの方は直してくれた  「 ios mlkit library has updated. I'll fix it soon! 」 • officialも更新してるので動きそう … プラグインのアップデート管理大変そう
  5. 大変だったところ② • APKのビルド https://flutter.io/android-release/ flutter build apk • apkを動かすとアプリがクラッシュ couldn't

    find "libflutter.so" • flutter build apk --release --target-platform android-arm64  →使用端末では動いた • が、別の端末でcouldn't find "libflutter.so" →つづく