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

Amazon RekognitionとAlexaを使ったいい感じのスマート顔認証システムを考えてみる

46e8de7d6e95be6327e8c49bf3b0c028?s=47 chao2suke
April 22, 2018

Amazon RekognitionとAlexaを使ったいい感じのスマート顔認証システムを考えてみる

2018/04/22 JAWS-UG 福岡 登壇資料

46e8de7d6e95be6327e8c49bf3b0c028?s=128

chao2suke

April 22, 2018
Tweet

Transcript

  1. " N B [ P O  3 F L

    P H O J U J P O ה " M F Y B ׾ ⢪ ׏ ׋  ְ ְ 䠬 ׄ ך أ و ٦ ز 겣 钠 鏾 ء أ ذ ي ׾ 罋 ִ ג ׫ ׷ Classmethod. Inc, ͤʔͷ  
  2.   ࣗݾ঺հ ✦ ਗ਼໺ɹ߶࢙(ͤʔͷ) ✦ ΫϥεϝιουגࣜձࣾࡳຈΦϑΟε
 Alexaࣄۀ෦
 ςΫχΧϧΤόϯδΣϦετ
 VUIΞʔΩςΫτ

  3. Ίͦࢠɺ։์͠·͢ɻ  

  4. AGENDA • AlexaͷϝϦοτ/σϝϦοτ • إೝূγεςϜͷ࢓૊ΈΛߟ͑Δ • Kinesis Video Streamͱ͸ •

    Amazon Rekognitionͱ͸ • ΞʔΩςΫνϟղઆ  
  5. AGENDA • AlexaͷϝϦοτ/σϝϦοτ • إೝূγεςϜͷ࢓૊ΈΛߟ͑Δ • Kinesis Video Streamͱ͸ •

    Amazon Rekognitionͱ͸ • ΞʔΩςΫνϟղઆ  
  6. AlexaͷϝϦοτ/σϝϦοτ  

  7. AlexaͷϝϦοτ/σϝϦοτ Automated Speech Recognition (ASR) Natural Language Understanding (NLU) Text

    to Speech Engine (TTS) Machine Learning ػցֶश ࣗಈԻ੠ೝࣝ ࣗવݴޠཧղ Ի੠߹੒
  8. A l e x a ͷ ϝ Ϧ ο τ

    / σϝ Ϧ ο τ 䩛 鯪 A P I 鸬 䵿 醱 侧 أ ذ ح ف 醱 侧 Ⳣ 椚
  9. A l e x a ͷ ϝ Ϧ ο τ

    / σϝ Ϧ ο τ ؎ ٝ ف ح ز ָ 蕱 䩛 ঎ ඼ ൪ ߸ ⡝ 䨽 ٥ 5 & - ⦐ ➂ 钠 鏾
  10. A l e x a ͷ ϝ Ϧ ο τ

    / σϝ Ϧ ο τ ؎ ٝ ف ح ز ָ  蕱 䩛 갈 㡮 ⟃ 㢩 ד  ؎ ٝ ف ح ز ׅ ׷
  11. A l e x a ͷ ϝ Ϧ ο τ

    / σϝ Ϧ ο τ V O I C E F I R S T ر ٦ ة ׾ ف ٦ ٕ ׅ ׷  ➬ 穈 ׫ ָ 䗳 銲
  12. AGENDA • AlexaͷϝϦοτ/σϝϦοτ • إೝূγεςϜͷ࢓૊ΈΛߟ͑Δ • Kinesis Video Streamͱ͸ •

    Amazon Rekognitionͱ͸ • ΞʔΩςΫνϟղઆ  
  13. إ ೝ ূ γε ςϜ ͷ ࢓ ૊ Έ Λ

    ߟ ͑Δ 겣 钠 陎 겣 钠 鏾 겣 ر ٦ ة
  14. AGENDA • AlexaͷϝϦοτ/σϝϦοτ • إೝূγεςϜͷ࢓૊ΈΛߟ͑Δ • Kinesis Video Streamͱ͸ •

    Amazon Rekognitionͱ͸ • ΞʔΩςΫνϟղઆ  
  15. K i n e s i s V i d

    e o S t r e a m ͱ ͸
  16. K i n e s i s V i d

    e o S t r e a m ͱ ͸
  17. K i n e s i s V i d

    e o S t r e a m ͱ ͸ K I N E S I S D A T A S T R E A M K I N E S I S V I D E O S T R E A M
  18. K i n e s i s V i d

    e o S t r e a m ͱ ͸
  19. AGENDA • AlexaͷϝϦοτ/σϝϦοτ • إೝূγεςϜͷ࢓૊ΈΛߟ͑Δ • Kinesis Video Streamͱ͸ •

    Amazon Rekognitionͱ͸ • ΞʔΩςΫνϟղઆ  
  20. A m a z o n R e k o

    g n i t i o n ͱ ͸
  21. A m a z o n R e k o

    g n i t i o n ͱ ͸
  22. A m a z o n R e k o

    g n i t i o n ͱ ͸
  23. A m a z o n R e k o

    g n i t i o n ͱ ͸
  24. A m a z o n R e k o

    g n i t i o n V i d e o ͱ ͸
  25. A m a z o n R e k o

    g n i t i o n V i d e o ͱ ͸
  26. AGENDA • AlexaͷϝϦοτ/σϝϦοτ • إೝূγεςϜͷ࢓૊ΈΛߟ͑Δ • Kinesis Video Streamͱ͸ •

    Amazon Rekognitionͱ͸ • ΞʔΩςΫνϟղઆ  
  27. K i n e s i s + R e

    k o g n i t i o n ؝ ٝ ء ُ ٦ و ٦ ف ٗ ر ُ ٦ ؟ ٦ , J O F T J T  7 J E F P  4 U S F B N 3 F L P H O J U J P O  7 J E F P , J O F T J T  % B U B  4 U S F B N 4 U S F B N  1 S P D F T T P S
  28. K i n e s i s + R e

    k o g n i t i o n + A l e x a ف ٗ ر ُ ٦ ؟ ٦ , J O F T J T  7 J E F P  4 U S F B N 3 F L P H O J U J P O  7 J E F P , J O F T J T  % B U B  4 U S F B N 4 U S F B N  1 S P D F T T P S 겣 ر ٦ ة
  29. I A M R o l e ࡞ ੒

  30. C o l l e c t i o n

    ࡞ ੒ BXTSFLPHOJUJPODSFBUFDPMMFDUJPODPMMFDUJPOJE .Z$PMMFDUJPO=  \ $PMMFDUJPO"SOBXTSFLPHOJUJPOBQ OPSUIFBTUDPMMFDUJPO.Z$PMMFDUJPO  'BDF.PEFM7FSTJPO  4UBUVT$PEF ^
  31. إ σ ʔ λ ࡞ ੒

  32. C o l l e c t i o n

    ʹ ௥ Ճ BXTSFLPHOJUJPOJOEFYGBDFT= JNBHF\40CKFDU\#VDLFUKBXTVHGVLVPLB EFNP /BNFUTVZPTIJ+1(^^= DPMMFDUJPOJE.Z$PMMFDUJPO= EFUFDUJPOBUUSJCVUFT"--
  33. C o l l e c t i o n

    ʹ ௥ Ճ 'BDF3FDPSET< \ 'BDF%FUBJM\ $POGJEFODF  &ZFHMBTTFT\ $POGJEFODF  7BMVFGBMTF ^  4VOHMBTTFT\ $POGJEFODF  7BMVFGBMTF ^  (FOEFS\ $POGJEFODF  7BMVF.BMF ^
  34. C o l l e c t i o n

    ʹ ௥ Ճ &NPUJPOT< \ $POGJEFODF  5ZQF)"11: ^  \ $POGJEFODF  5ZQF4"% ^  \ $POGJEFODF  5ZQF$0/'64&% ^ >
  35. C o l l e c t i o n

    ʹ ௥ Ճ 'BDF\ #PVOEJOH#PY\ 8JEUI  5PQ  -FGU  )FJHIU ^  'BDF*EGD FECGBCFFFCGEG  $POGJEFODF  *NBHF*E FBDFDCBEDBDCC ^
  36. K i n e s i s V i d

    e o S t r e a m Λ ࡞ ੒
  37. K i n e s i s D a t

    a S t r e a m Λ ࡞ ੒
  38. S t r e a m P r o c

    e s s o r Λ ࡞ ੒ BXTSFLPHOJUJPODSFBUFTUSFBNQSPDFTTPS= OBNF.Z4USFBN1SPDFTTPS'PS$BN= JOQVU\,JOFTJT7JEFP4USFBN\"SO BSOBXTLJOFTJTWJEFPBQ OPSUIFBTUTUSFBN"NB[PO3FLPHOJUJPO 7JEFP4USFBN^^= TUSFBNQSPDFTTPSPVUQVU\,JOFTJT%BUB4USFBN \"SOBSOBXTLJOFTJTBQ OPSUIFBTUTUSFBN "NB[PO3FLPHOJUJPO"OBMZTZT4USFBN^^= SPMFBSOBSOBXTJBNSPMF "NB[PO3FLPHOJUJPO.Z%BUB4USFBN= TFUUJOHT\'BDF4FBSDI\$PMMFDUJPO*E .Z$PMMFDUJPO 'BDF.BUDI5ISFTIPME^^ \ 4USFBN1SPDFTTPS"SOBSOBXTSFLPHOJUJPOBQ OPSUIFBTUTUSFBNQSPDFTTPS .Z4USFBN1SPDFTTPS'PS$BN ^
  39. S t r e a m P r o c

    e s s o r Λ ֬ ೝ BXTSFLPHOJUJPOEFTDSJCFTUSFBNQSPDFTTPSOBNF .Z4USFBN1SPDFTTPS'PS$BN \ 4UBUVT45011&%  /BNF.Z4USFBN1SPDFTTPS'PS$BN  -BTU6QEBUF5JNFTUBNQ  4FUUJOHT\ 'BDF4FBSDI\ 'BDF.BUDI5ISFTIPME  $PMMFDUJPO*E.Z$PMMFDU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&C8+MDJ**KLY.[2[ 0%6Z.[.[.5HY/%.Z.[LZ/KHZ.%:Z/K&Y.%H[.56.K&.[..K60%**J XJ67ZEN7Z7(MU;9/:8X*KPY-K6Z/%*.5D.%.Y/&6-$+2DNLE8/M DM3QC87[E('UD$*.4.K2Z05&/%"Y/[M'04XJ3O+IC871;N;[;93+CM /M:V;).J0K"V.)-$+5E)+M:82DNK;9/[C++CN;WDNIE(MWCJ* FZ+5˘˘˘˘˘˘˘˘ ]CBTFEFDPEF
  50. ί ϯ γ ϡ ʔϚʔ Λ ࣮ ૷ \ *OQVU*OGPSNBUJPO\

    ,JOFTJT7JEFP\ 4USFBN"SOBSOBXTLJOFTJTWJEFPBQ OPSUIFBTUTUSFBN"NB[PO3FLPHOJUJPO 7JEFP4USFBN  'SBHNFOU/VNCFS   4FSWFS5JNFTUBNQ  1SPEVDFS5JNFTUBNQ  'SBNF0GGTFU*O4FDPOET ^ ^
  51. ί ϯ γ ϡ ʔϚʔ Λ ࣮ ૷ .BUDIFE'BDFT< \

    4JNJMBSJUZ  'BDF\ #PVOEJOH#PY\ )FJHIU  8JEUI  -FGU  5PQ ^  'BDF*EGD FECGBCFFFCGEG  $POGJEFODF  *NBHF*E FBDFDCBEDBDCC ^ ^
  52. C o l l e c t i o n

    ʹ ௥ Ճ 'BDF\ #PVOEJOH#PY\ 8JEUI  5PQ  -FGU  )FJHIU ^  'BDF*EˑGD FECGBCFFFCGEG խխֿ׸ה♧荜 $POGJEFODF  *NBHF*E FBDFDCBEDBDCC ^
  53. K i n e s i s + R e

    k o g n i t i o n + A l e x a ف ٗ ر ُ ٦ ؟ ٦ , J O F T J T  7 J E F P  4 U S F B N 3 F L P H O J U J P O  7 J E F P , J O F T J T  % B U B  4 U S F B N 4 U S F B N  1 S P D F T T P S 겣 ر ٦ ة
  54. ·ͱΊ • Ի੠͸UIͷҰͭͰ͋Γɺେࣄͳͷ͸UX • RekognitionͱKinesis Stream Video͸
 Stream ProcessorͰͭͳ͙ •

    ղੳޙͷॲཧ͸௨ৗͷKinesisͱมΘΒͳ ͍