Slide 1

Slide 1 text

Quickstart-android/ mlkit ʹ͍ͭͯ @yamacraft

Slide 2

Slide 2 text

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 →

Slide 3

Slide 3 text

ެࣜαϯϓϧ঺հʗղઆ͠·͢ ʢإೝূ෦෼ͷΈʣ ↑ إೝূαϯϓϧϓϩδΣΫτ࡞੒ΛఘΊͨஉ

Slide 4

Slide 4 text

firebase/quickstart-android

Slide 5

Slide 5 text

MLKit෦෼Λಈ͔͢ʹ͸ʁ

Slide 6

Slide 6 text

1. git clone͢Δ

Slide 7

Slide 7 text

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

Slide 8

Slide 8 text

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

Slide 9

Slide 9 text

ಈ͍ͨʂ

Slide 10

Slide 10 text

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

Slide 11

Slide 11 text

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

Slide 12

Slide 12 text

LivePreviewActivityͷத਎ ˞ͪΐͬͱࣗ৴ͳ͍ʜ

Slide 13

Slide 13 text

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

Slide 14

Slide 14 text

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

Slide 15

Slide 15 text

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

Slide 16

Slide 16 text

͋ͬ…

Slide 17

Slide 17 text

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

Slide 18

Slide 18 text

͓͠·͍