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

Cloud Vision APIと Algoliaで 画像検索を開発した話 / a development of image searching by cloud-vision-api and algolia

7fccfb690a818ed2f3a15fc21d426d5a?s=47 meijin
October 31, 2019

Cloud Vision APIと Algoliaで 画像検索を開発した話 / a development of image searching by cloud-vision-api and algolia

7fccfb690a818ed2f3a15fc21d426d5a?s=128

meijin

October 31, 2019
Tweet

Transcript

  1. $MPVE7JTJPO"1*ͱ "MHPMJBͰ ը૾ݕࡧΛ։ൃͨ͠࿩ ΤϯδχΞ໊ͷ ڭҭελʔτΞοϓ͕

  2. ΞδΣϯμ w ࣗݾ঺հ w ը૾ݕࡧͷ֓ཁͱ͖͔͚ͬ w $MPVE7JTJPO"1* w "MHPMJB w

    $MPVE7JTJPO"1*ͱ"MHPMJBΛ૊Έ߹ΘͤΔ w ࠷ޙʹ
  3. ࣗݾ঺հ

  4. ࣗݾ঺հ w ໊ਓʢ!.FJKJO@HBSEFOʣ w גࣜձࣾ/P4DIPPM$50 w ʙ·Ͱ
 גࣜձࣾ-*'6--Ͱ8FCΤϯδχΞ w ΑΓ/P4DIPPMʹస৬ʢࣾ௕ͱਓʣ

    w झຯɿમ౬ɺυϥΫΤ‡ɺকعɺߴߍ໺ٿ
  5. /P4DIPPMͷ঺հ w Ոఉڭࢣɾक़ߨࢣ͕ແྉͰճ౴͢Δษڧ࣭໰αΠτ w IUUQTOPTDIPPMBTJB w ࠓ݄J04ΞϓϦ΋ϦϦʔε͠·ͨ͠ w ."6͸͓Αͦສਓ͘Β͍ ࣌఺

     w தߴੜ͕ษڧͷͲ͜Ͱ͍᪴ͯɺͦΕʹରͯ͠
 ͲΜͳճ౴͕͔ࢗͬͨ͞ͷσʔλ͕஝ੵ͞ΕΔ
  6. ը૾ݕࡧͷ ֓ཁͱ͖͔͚ͬ

  7. ը૾ݕࡧͷ֓ཁ w Θ͔Βͳ͍໰୊ΛࡱӨͯ͠ݕࡧˠ͍ۙ໰୊͕ώοτʂ

  8. ݕࡧͷ*OQVU0VUQVU w ݕࡧ͍ͨ͠Պ໨
 ʢ਺ֶɺӳޠɺ෺ཧʜʣ w खݩͷ໰୊ͷࣸਅ w ྨࣅ͍ͯ͠Δ࣭໰
 ࠷େ্Ґ໰
 w

    /P4DIPPM্ʹ͋Δ
 ྦྷܭ໿ສͷ࣭໰ͷ
 ຊจఴ෇ը૾ */165 065165
  9. ͖͔͚ͬ w ษڧ࣭໰αΠτ͸ɺճ౴ͷՁ஋͕ʲॠؒతʳ w ษڧ͸ྲྀߦΓഇΓ͕গͳ͍ྖҬͰ͋Δ͔Βɺ
 Ұ౓͞Εͨճ౴͸ຖ೥ͣͬͱ໾ʹཱͪଓ͚Δ͸ͣ w աڈͷճ౴Λߴਫ਼౓ͰؾܰʹݕࡧͰ͖Δ࢓૊ΈΛ૑ Δ͜ͱͰɺֶੜ͕೰Ή࣌ؒΛ୹͘ɺઌੜʹͱͬͯ͸
 ճ౴͢ΔखؒΛݮΒ͍ͨ͠

  10. ษڧͷ࣭໰ը૾ͷಛ௃ w ͍͍ͩͨಉ͡Α͏ͳݟͨ໨
 ࢴʹ௕͍จষ͕ͭΒͭΒͱଧͬͯ͋Δ w ಛ௃తͳ୯ޠؚ͕·ΕΔ͜ͱ͕ଟ͍
 z๞࿨ਫ༹ӷzɹzؐݩࡎzɹz॥؀খ਺zɹzՃ๏ఆཧz ը૾ࣗମͷྨࣅ౓ΑΓɺ ը૾ʹؚ·ΕΔจࣈྻͷۙ͞ ͷ΄͏͕ݕࡧʹద͍ͯ͠ΔͷͰ͸ʁ

  11. $MPVE7JTJPO "1*

  12. $MPVE7JTJPO"1*ͱ͸ w ֶशࡁΈͷը૾ղੳ"*Λ"1*ܦ༝Ͱར༻Ͱ͖Δ w (PPHMF$MPVE1MBUGPSN্Ͱఏڙ w ϦΫΤετ਺ʹର͢Δॏྔ՝ۚ w ෼ੳλΠϓʹ͸͍͔ͭ͋͘Δ͕ɺ
 ࠓճ͸ʲ5&95@%&5&$5*0/ʳΛར༻

  13. ղੳͷਫ਼౓ʢ0$3೔ຊޠʣ

  14. ղੳͷਫ਼౓ʢ0$3೔ຊޠʣ <ݻԁӡಈuສ༗Ҿྗ  Ԃ ԁ౵ද໘Λ͢΂ΓམͪΔখ෺ମͷӡಈʫ ͷΑ͏ʹ ͳΊΒ͔ͳද໘Λ΋ͭ൒ܘSͷԁ౵͕ ਫฏͳচʹ઀ ͯ͠ݻఆ͞Ε͍ͯΔɻ࣭ྔ.ͷখ෺ମ͕࠷ߴ఺1͔Β੩͔ʹ͢΂Γ ͩ͠ɺ఺2Λ௨աͯ͠఺4Ͱԁ౵ද໘͔Β཭Εচʹམͪͨɻԁ౵ͷத

    ৺Λ఺ ;102 ॏྗՃ଎౓ͷେ͖͞ΛHͱͯ͠ ࣍ͷ໰͍ʹ ౴͑Αɻ  খ෺ମ͕఺2Λ௨ա͢Δͱ͖ͷ଎͞͸͍͘Β͔ɻ  ఺2ʹ͓͚Δখ෺ମʹ࡞༻͢Δ߅ྗͷେ͖͞͸͍͘Β͔ɻ  ;104ͱ͢Δͱ͖ DPTP͸͍͘Β͔ɻ  ఺4Ͱԁ౵ද໘͔Β཭ΕΔॠؒͷখ෺ମͷ଎͞͸͍͘Β͔ɻ  খ෺ମΛ఺1͔Β ԁ౵࣠ʹਨ௚Ͱ͔ͭਫฏʹ ॳ଎Λ༩͑ͯଧͪग़͢
  15. ͦͦ͜͜ ਫ਼౓͕ߴ͍

  16. "MHPMJB

  17. "MHPMJBͱ͸ w શจݕࡧΤϯδϯΛఏڙ͢ΔαʔϏε w ΋ͷ͍͢͝ྔͷςΩετ͔ΒɺݕࡧจࣈྻΛؚΉ
 จࣈྻΛݟ͚ͭͯ͘ΕΔ
 (PPHMFݕࡧʹ͍ۙ͜ͱ͕Ͱ͖Δ w ݄υϧͰ"1*੍͕ݶ·Ͱར༻͠์୊
 ݸਓͰ͸͓ߴΊ͚ͩͲɺ๏ਓʹͱͬͯ͸͍҆

  18. "MHPMJBΛ࢖͏खॱʢࡶʹʣ  ݕࡧର৅ͱͳΔେྔͷจࣈྻΛ"MHPMJBʹJNQPSU  αʔϏεଆͰ"MHPMJB4%,ΛJNQPSU  "1*Λୟ࣮͘૷͓Αͼݕࡧύϥϝʔλͷௐ੔  ϢʔβʔͷJOQVUΛIPPLͯ͠"1*Λୟ͘

  19. -BSBWFM4DPVU w -BSBWFMͱ"MHPMJBΛ࿈ܞͯ͘͠ΕΔϥΠϒϥϦ w IUUQTSFBEPVCMFDPNMBSBWFMKB TDPVUIUNM w -BSBWFMͷ.PEFMΛ֦ு
 σʔλอଘ࣌ʹࣗಈͰࢦఆͨ͠σʔλΛ
 ·ͱΊͯ"MHPMJB΁ಥͬࠐΉ

  20. ࣮ࡍͷ$PEFʢฤूࡁΈʣ w .PEFMʹUP4FBSDIBCMF"SSBZ Λ࣮૷
 ˠ͜͜ͰSFUVSOͨ͠಺༰͕"MHPMJBʹJNQPSU w ݕࡧͷखॿ͚ʹͳΔσʔλ JEΛҰॹʹೖΕΔ

  21. ݕࡧର৅จࣈྻͷJNQPSU w -BSBWFM4DPVUΛ࢖͍ͬͯΔͳΒ
 
 QIQBSUJTBOTDPVUJNQPSUl.PEFMOBNFz
 
 ͰऴΘΓ

  22. "MHPMJB"1*Λୟ͘ʢฤूࡁΈʣ w -BSBWFM4DPVUʹΑΓ.PEFMʹTFBSDI
 ϝιου͕࣮૷͞Ε͍ͯΔ w ݕࡧΦϓγϣϯͰ௥ՃGJMUFS΋ࢦఆͰ͖Δ

  23. $MPVE7JTJPO"1*ͱ "MHPMJBΛ૊Έ߹ΘͤΔ

  24. 0$3ͱશจݕࡧͷϑϩʔ ᶃϢʔβʔ͕໰୊ͷ
 ɹը૾ΛΞοϓϩʔυ ᶄ$MPVE7JTJPO"1*Ͱ
 ɹςΩετΛݕग़͢Δ ᶅݕग़ͨ͠ςΩετͰ ɹ"MHPMJB͔Βશจݕࡧ ᶆݕࡧ݁Ռͷ࣭໰Λ
 ɹ࠷େ݅දࣔ $-*&/5

    4&37&3
  25. طଘ"1*ͷ ૊Έ߹Θ͚ͤͩͰ ը૾ݕࡧͰ͖ͨ

  26. ࠓޙͷల๬ w ςΩετͷྨࣅ౓͚ͩͩͱݶք͕͋Δ w શ͘ಉ͡໰୊ͳΒҾ͔͔ͬΔ͕ɺ
 ݟ͔ͭΒͳ͍ͱਫ਼౓͕མͪΔ w XPSEWFDͳͲΛར༻͠ɺҙຯͷྨࣅ౓·Ͱ
 ߟ্ྀͨ͠Ͱݕࡧ݁ՌΛٻΊ͍ͨ w

    ༧ΊΫϥελϦϯά্ͨ͠Ͱݕࡧ͢Δͱ͔
  27. ࠷ޙʹ

  28. Ұॹʹߟ͑ͯ͘ΕΔํΛืूத w /P4DIPPM্ͷσʔλΛ෼ੳͯ͠Կ͕Ͱ͖Δ͔ʁ
 ·ͨ͸
 ͜Ε͔ΒͲ͏͍ͬͨσʔλΛूΊΔඞཁ͕͋Δ͔ʁ w ͲΜͳٕज़͕࢖͑ͦ͏͔
 ࢥ͍͍ͭͨํ͸ڭ͑ͯ௖͚Δͱخ͍͠Ͱ͢ʂ w 5XJUUFS!.FJKJO@HBSEFOʢ໊ਓ͞Μʣ

  29. ͝ਗ਼ௌ ͋Γ͕ͱ͏͍͟͝·ͨ͠