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

Consider a test of image processing in Go

4d78b749c315e21a956053dcbf0508a9?s=47 po3rin
June 10, 2019

Consider a test of image processing in Go

Goによる画像処理テストを考察した話

4d78b749c315e21a956053dcbf0508a9?s=128

po3rin

June 10, 2019
Tweet

Transcript

  1. Consider a test of image processing in Go golang.tokyo #25

    June 18, 2019 @ po3rin
  2. @po3rin Software Enginner QBHF Golang / Python / Rust /

    Docker / AWS / Elasticsearch
  3. QBHF Introduction \

  4. QBHF (PͰը૾ॲཧΛॻ͘͜ͱ͕ଟ͍ͷͰը૾ॲ ཧͷςετΛॻ͘ػձ΋ଟ͍ɻ ҰํͰը૾ॲཧςετͷख๏͸ωοτͳͲͰ ௐ΂ͯ΋ମܥతʹ·ͱ·ͬͨ৘ใ͕ग़ͯ͜ͳ ͍ͷͰɺࠓճ͸ଞͷը૾ॲཧύοέʔδ͕Ͳ ͷΑ͏ʹςετ͍ͯ͠Δ͔Λௐ΂ͨ݁Ռ͔Β ֶΜͩ͜ͱΛൃද͠·͢ɻ Test of

    image processing Ὂ
  5. QBHF How to test image match \

  6. QBHF جຊతʹɺඪ४ύοέʔδ΋ؚΊͨ ༷ʑͳύοέʔδ͸3(#"ΛϐΫ ηϧ͝ͱݕ͍ࠪͯ͠Δ How to test image match(1) Ὂ

  7. QBHF ۪௚ʹ3(#"ΛϐΫηϧ͝ͱݕࠪ͢Δͱ͕͔͔࣌ؒΔͷͰɺඪ४ύοέʔδͰ͸ॳΊʹϐΫ ηϧ͚ͩςετ͍ͯ͠Δςετ΋͋Δɻ How to test image match(2) Ὂ

  8. QBHF How to test image match (3) Ὂ BOUIPOZOTJNPOCJMEͷςετͰ͸ίετ Λ཈͑Δ޻෉͕ͳ͞Ε͍ͯΔɻετϥΠυͷ஋

    ࣍ݩ഑ྻͷͲ͜·Ͱ͕ԣҰྻ෼͔ Λ࢖ͬͯ Ұ࣍ݩ഑ྻʹ௚ͰΞΫηε͍ͯ͠Δɻ http://neareal.net/index.php?ComputerGraphics%2FImageProcessing%2FTheStructureOfImageData
  9. QBHF How to test image match (4) Ὂ JNBHF3(#"1JY͸<>VJOUͳͷͰCZUFT&RVBMͰ΋͍͚Δɻ࣮͸ઌ΄ ͲͷྫΑΓͬͪ͜ͷํ͕ૣ͍ɻ࣮ࡍʹEJTJOUFHSBUJPOHJGUͰ͸ԼͷΑ͏ͳ

    ؔ਺ͰBTTFSU͍ͯ͠Δɻͨͩ͜ΕͩͱɺͲ͜ͷϐΫηϧ͕ؒҧ͍ͬͯͨͷ͔ ͷ৘ใ͕ࣦΘΕͯ͠·͏ɻ
  10. QBHF How to test image match (5) Ὂ Ͳ͜ͷϐΫηϧ͕ͣΕ͍ͯΔ͔ͷ৘ใ͕ඞཁͳ͍ͳΒSFqFDU%FFQ&RVBMͰ΍ͬͯ ͠·͏ͱ͍͏ख΋͋Δɻ࣮ࡍʹHPMBOHJNBHFͰ͸SFqFDU%FFQ&RVBMΛ࢖ͬͯ

    ςετ͍ͯ͠Δ΋ͷ΋͋ΔɻCZUFT&RVBMΛ࢖͏ͷͱಉ͘͡Β͍ૣ͍ɻ͔͠͠ɺࣦഊ ࣌ʹͦ΋ͦ΋ըૉ͕ҧ͏ͷ͔ॎԣͷେ͖͕͞ҧ͏ͷ͔શ͘৘ใΛऔΕͳ͘ͳΔɻ
  11. QBHF How to test image match (6) Ὂ #FODINBSL&R/PSNBM୯७ʹϐΫηϧΛ̍ͭͮͭBTTFSU #FODINBSL&R8JUI4USJEF4USJEFͷ஋͔ΒҰ࣍ݩ഑ྻʹ௚ͰΞΫηεͯ͠BTTFSU

    #FODINBSL&R8JUI#ZUFT&RVBMCZUFT&RVBMΛ࢖ͬͨBTTFSU #FODINBSL&R8JUI3FqFDUSFqFDU%FFQ&RVBMΛ࢖ͬͨBTTFSU 5FTUJNBHFYKQFH
  12. QBHF How to test image match (7) Ὂ Αͬͯը૾ͷςετͰ͸ςετͷࣦഊ࣌ʹͲͷ͘Β͍ৄࡉʹ৘ ใ͕ཉ͍͔͠ʹΑͬͯը૾ςετख๏͕มΘͬͯ͘Δɻ

    ͱʹ͔͘εϐʔυॏࢹɺࣦഊ࣌ͷཧ༝͸͋Μ·͠ؾʹ͠ͳ͍ SFqFDU%FFQ&RVBM΍CZUFT&RVBM ͱʹ͔͘ৄࡉʹࣦഊཧ༝Λ஌Γ͍ͨ 4USJEFͷ஋Λ࢖ͬͨ࣍ݩ഑ྻ΁ͷΞΫηε ͱ͍ͬͨײ͡
  13. QBHF How to test image match (8) Ὂ ౰વɺը૾ͷΧϥʔϞʔυʹదͨ͠FRVBMؔ਺Λ࡞Δ͜ͱͰߋʹίετΛ཈͑ΕΔɻ

  14. QBHF How to test image match (9) Ὂ ը૾ςετΛڞ௨ॲཧͱͯ͠੾Γग़͢ͱΤϥʔϩά͕αϒϝιου಺ʹͳͬͯ͠·͏ɻ (P͔ΒͦΕΛ๷͙5#)FMQFSϝιου͕௥Ճ͞ΕͨͷͰ͜ΕΛ࢖͏ɻαϒϝιου

    ಺Ͱ'BJMͯ͠΋ݺͼग़͠ݩϝιουͷ৘ใ͕ग़ྗ͞ΕΔɻ͜ΕͰ҆৺ͯ͠ಠࣗͷը૾ൺ ֱςετؔ਺͕࡞ΕΔ
  15. QBHF How to prepare test data \

  16. QBHF ΤϑΣΫτͳͲͷجຊతͳը૾ ॲཧͷςετʹ͓͍ͯ͸ӈͷ EJTJOUFHSBUJPOHJGUύοέʔ δͷΑ͏ʹJNBHF3(#"ͷς ετέʔεΛ४උ͢Δͷ͕͋ͳ ͕ͪమ൘ ͔͠͠0(1౳ͷੜ੒ςετʹ͓ ͍ͯ͸͜ͷΑ͏ͳܗͰςετ σʔλΛ༻ҙ͢Δͷ͸݁ߏ໘

    ౗ɻɻ
  17. QBHF ը૾ॲཧͷੜ੒෺ͷςετ ʹ͓͍ͯ͸HPMEFOpMFΛ༻ҙ ͓ͯ͘͠ͱָɻͦͷࡍʹ͸ HPMEFOpMFΛੜ੒͢Δϑϥο άΛ༻ҙ͓ͯ͘͠ͱศརɻ ࣮ࡍʹHPMBOHJNBHF ύοέʔδͰ͸͜ͷΑ͏ͳ ςετ͕࣮૷͞Ε͍ͯΔɻ

  18. QBHF goldenfile Ὂ ը૾ॲཧͷςετʹ͓͚ΔHPMEFOpMF͸1/(Ͱ͋Δ͜ͱ͕๬·ΕΔɻ+1&(ࣗମ͕ MPTTZ ৘ใ͕ܽམ͢Δ ͳඇՄٯ ݩʹ໭ͤͳ͍ ѹॖํࣜͳͷͰɺҰ౓JNBHF*NBHFΛ+1&( ʹม׵ͯ͠͠·͏ͱɺݩͷը૾ʹ෮ݩ͢Δ͜ͱ͸Ͱ͖ͳ͍ҝɺHPMEFOpMFUFTUʹෆ޲͖

    JNBHF*NBHF 1/( +1&( ෮ݩՄೳ ෮ݩෆՄ ॻ͖ग़͠ ॻ͖ग़͠
  19. QBHF Conclusion \

  20. QBHF (Pʹ͓͚Δը૾ॲཧͷςετख๏͸ମܥతʹ·ͱ·͍ͬͯͳ͍͕ɺଞͷύοέʔδ ݟΔͱͲͷΑ͏ʹ࣮૷͢Ε͹ྑ͍͔௫ΊΔɻΈΜͳ΋ఘΊͣʹը૾ॲཧͷςετΛॻ ͍͍ͯ͜͏ʂ Conclusion Ὂ

  21. QBHF Additional Talk \

  22. QBHF (P$POGFSFODF'VLVPLB Ͱ(PʹΑΔը૾ॲཧʹ͍ͭͯ ొஃ͠·͢ʂೖ໳ॻ͚ͩͰ͸ମ ݧͰ͖ͳ͍(P ը૾ॲཧͷϙ ςϯγϟϧΛ͓఻͑͠·͢ɻ

  23. Consider a test of image processing in Go Otemachi.go June

    9, 2019 @ po3rin