Quickstart-android/mlkitについて

 Quickstart-android/mlkitについて

2018/07/02(月)にGoogle Japanで開催したFirebase meetup #4にて発表したLTの資料です

Ad37f739bffa0e38c8461e452cb3a489?s=128

yamacraft

July 02, 2018
Tweet

Transcript

  1. Quickstart-android/ mlkit ʹ͍ͭͯ @yamacraft

  2. profile • @yamacraft (Wataru Yamada) • Mobile Application Engineer •

    Freelance ʗ (private)team Y.G.E. • Getting Over It (Save 40%Off in steam) • 113(50+50+13)wins / BestTime 7min →
  3. ެࣜαϯϓϧ঺հʗղઆ͠·͢ ʢإೝূ෦෼ͷΈʣ ↑ إೝূαϯϓϧϓϩδΣΫτ࡞੒ΛఘΊͨஉ

  4. firebase/quickstart-android

  5. MLKit෦෼Λಈ͔͢ʹ͸ʁ

  6. 1. git clone͢Δ

  7. 2. firebaseϓϩδΣΫτͷ࡞੒ • ϓϩδΣΫτ໊ࣗମ ͸ͳΜͰ΋͍͍ • ௥Ճ͢ΔAndroidΞϓ Ϧͷύοέʔδ໊ʹ ஫ҙ

  8. 3. ࣮ߦʂ • mlkit/appҎԼʹɺgoogle-service.jsonΛೖΕ Δ • configΛʮmlkit-appʯʹͯ͠Runʂ

  9. ಈ͍ͨʂ

  10. ެࣜαϯϓϧϓϩδΣΫτ͕ ΍͍ͬͯΔ͜ͱ

  11. ެࣜαϯϓϧ͕΍͍ͬͯΔ͜ͱ • Χϝϥͷ੍ޚʢCamera1 APIʂʣ • onPreviewFrameͰϓϨϏϡʔը໘ͷBufferΛ FirebaseVisionFaceDetectorʹྲྀ͠ࠐΈ • ↑ҙਤతʹ্هͷݺͼग़͠Λ૿΍ͨ͢ΊʢϑϨʔϜඈͼ๷ ࢭʁʣʹaddCallbackBuffer()Λେྔʹొ࿥

    • FirebaseVisionFaceDetectorͷ݁ՌΛݩʹɺϓϨϏϡʔը໘ʹ ݁ՌΛΦʔόʔϨΠ
  12. LivePreviewActivityͷத਎ ˞ͪΐͬͱࣗ৴ͳ͍ʜ

  13. ίʔυͷେ൒͕Χϝϥ੍ޚʂ

  14. MLKitΛ࢖͏ʹ؆୯ MLKitΛ࢖͏લޙͷ੍ޚ ʹਏ͍

  15. ࣍ճ·ͰʹϦϕϯδ͠·͢ʂ

  16. ͋ͬ…

  17. Ͳ͔͜ͰϦϕϯδ͠·͢ʂ

  18. ͓͠·͍