Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Consider a test of image processing in Go
Search
po3rin
June 10, 2019
Programming
3
1.5k
Consider a test of image processing in Go
Goによる画像処理テストを考察した話
po3rin
June 10, 2019
Tweet
Share
More Decks by po3rin
See All by po3rin
M3におけるCI/CDパイプラインを新鮮に保つ仕組み
po3rin
0
270
Go Templateを使った フロントエンド開発を採用した 経緯と所感
po3rin
0
280
検索基盤移行時の思考
po3rin
0
4.2k
Go1.19で採用された Pattern-defeating Quicksort の紹介
po3rin
7
5.5k
Elasticsearchを負荷から守るesguard
po3rin
0
230
Sudachi×Elasticsearchへの移行と医療検索システム精度改善
po3rin
1
820
eskeeperを使ったファイル定義によるindex管理
po3rin
2
450
M3 情報検索/推薦論文輪読会 ~SIGIR祭~ (SIGIR2021: Session 6D – IR Models)
po3rin
0
76
Handling Temporal Query for Health Search with ja-timex
po3rin
3
300
Other Decks in Programming
See All in Programming
Better Code Design in PHP
afilina
PRO
0
130
Kaigi on Rails 2024 〜運営の裏側〜
krpk1900
1
250
とにかくAWS GameDay!AWSは世界の共通言語! / Anyway, AWS GameDay! AWS is the world's lingua franca!
seike460
PRO
1
900
Functional Event Sourcing using Sekiban
tomohisa
0
100
React への依存を最小にするフロントエンド設計
takonda
8
2.1k
受け取る人から提供する人になるということ
little_rubyist
0
250
型付き API リクエストを実現するいくつかの手法とその選択 / Typed API Request
euxn23
8
2.3k
3 Effective Rules for Using Signals in Angular
manfredsteyer
PRO
0
120
Less waste, more joy, and a lot more green: How Quarkus makes Java better
hollycummins
0
100
カンファレンスの「アレ」Webでなんとかしませんか? / Conference “thing” Why don't you do something about it on the Web?
dero1to
1
110
Amazon Bedrock Agentsを用いてアプリ開発してみた!
har1101
0
340
EMになってからチームの成果を最大化するために取り組んだこと/ Maximize team performance as EM
nashiusagi
0
100
Featured
See All Featured
A Modern Web Designer's Workflow
chriscoyier
693
190k
Rebuilding a faster, lazier Slack
samanthasiow
79
8.7k
Agile that works and the tools we love
rasmusluckow
327
21k
The Art of Programming - Codeland 2020
erikaheidi
52
13k
jQuery: Nuts, Bolts and Bling
dougneiner
61
7.5k
A designer walks into a library…
pauljervisheath
204
24k
A better future with KSS
kneath
238
17k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
126
18k
Why You Should Never Use an ORM
jnunemaker
PRO
54
9.1k
Imperfection Machines: The Place of Print at Facebook
scottboms
265
13k
Site-Speed That Sticks
csswizardry
0
33
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
16
2.1k
Transcript
Consider a test of image processing in Go golang.tokyo #25
June 18, 2019 @ po3rin
@po3rin Software Enginner QBHF Golang / Python / Rust /
Docker / AWS / Elasticsearch
QBHF Introduction \
QBHF (PͰը૾ॲཧΛॻ͘͜ͱ͕ଟ͍ͷͰը૾ॲ ཧͷςετΛॻ͘ػձଟ͍ɻ ҰํͰը૾ॲཧςετͷख๏ωοτͳͲͰ ௐͯମܥతʹ·ͱ·ͬͨใ͕ग़ͯ͜ͳ ͍ͷͰɺࠓճଞͷը૾ॲཧύοέʔδ͕Ͳ ͷΑ͏ʹςετ͍ͯ͠Δ͔Λௐͨ݁Ռ͔Β ֶΜͩ͜ͱΛൃද͠·͢ɻ Test of
image processing Ὂ
QBHF How to test image match \
QBHF جຊతʹɺඪ४ύοέʔδؚΊͨ ༷ʑͳύοέʔδ3(#"ΛϐΫ ηϧ͝ͱݕ͍ࠪͯ͠Δ How to test image match(1) Ὂ
QBHF ۪ʹ3(#"ΛϐΫηϧ͝ͱݕࠪ͢Δͱ͕͔͔࣌ؒΔͷͰɺඪ४ύοέʔδͰॳΊʹϐΫ ηϧ͚ͩςετ͍ͯ͠Δςετ͋Δɻ How to test image match(2) Ὂ
QBHF How to test image match (3) Ὂ BOUIPOZOTJNPOCJMEͷςετͰίετ Λ͑Δ͕ͳ͞Ε͍ͯΔɻετϥΠυͷ
࣍ݩྻͷͲ͜·Ͱ͕ԣҰྻ͔ Λͬͯ Ұ࣍ݩྻʹͰΞΫηε͍ͯ͠Δɻ http://neareal.net/index.php?ComputerGraphics%2FImageProcessing%2FTheStructureOfImageData
QBHF How to test image match (4) Ὂ JNBHF3(#"1JY<>VJOUͳͷͰCZUFT&RVBMͰ͍͚Δɻ࣮ઌ΄ ͲͷྫΑΓͬͪ͜ͷํ͕ૣ͍ɻ࣮ࡍʹEJTJOUFHSBUJPOHJGUͰԼͷΑ͏ͳ
ؔͰBTTFSU͍ͯ͠Δɻͨͩ͜ΕͩͱɺͲ͜ͷϐΫηϧ͕ؒҧ͍ͬͯͨͷ͔ ͷใ͕ࣦΘΕͯ͠·͏ɻ
QBHF How to test image match (5) Ὂ Ͳ͜ͷϐΫηϧ͕ͣΕ͍ͯΔ͔ͷใ͕ඞཁͳ͍ͳΒSFqFDU%FFQ&RVBMͰͬͯ ͠·͏ͱ͍͏ख͋Δɻ࣮ࡍʹHPMBOHJNBHFͰSFqFDU%FFQ&RVBMΛͬͯ
ςετ͍ͯ͠Δͷ͋ΔɻCZUFT&RVBMΛ͏ͷͱಉ͘͡Β͍ૣ͍ɻ͔͠͠ɺࣦഊ ࣌ʹͦͦըૉ͕ҧ͏ͷ͔ॎԣͷେ͖͕͞ҧ͏ͷ͔શ͘ใΛऔΕͳ͘ͳΔɻ
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
QBHF How to test image match (7) Ὂ Αͬͯը૾ͷςετͰςετͷࣦഊ࣌ʹͲͷ͘Β͍ৄࡉʹ ใ͕ཉ͍͔͠ʹΑͬͯը૾ςετख๏͕มΘͬͯ͘Δɻ
ͱʹ͔͘εϐʔυॏࢹɺࣦഊ࣌ͷཧ༝͋Μ·͠ؾʹ͠ͳ͍ SFqFDU%FFQ&RVBMCZUFT&RVBM ͱʹ͔͘ৄࡉʹࣦഊཧ༝ΛΓ͍ͨ 4USJEFͷΛͬͨ࣍ݩྻͷΞΫηε ͱ͍ͬͨײ͡
QBHF How to test image match (8) Ὂ વɺը૾ͷΧϥʔϞʔυʹదͨ͠FRVBMؔΛ࡞Δ͜ͱͰߋʹίετΛ͑ΕΔɻ
QBHF How to test image match (9) Ὂ ը૾ςετΛڞ௨ॲཧͱͯ͠Γग़͢ͱΤϥʔϩά͕αϒϝιουʹͳͬͯ͠·͏ɻ (P͔ΒͦΕΛ͙5#)FMQFSϝιου͕Ճ͞ΕͨͷͰ͜ΕΛ͏ɻαϒϝιου
Ͱ'BJMͯ͠ݺͼग़͠ݩϝιουͷใ͕ग़ྗ͞ΕΔɻ͜ΕͰ҆৺ͯ͠ಠࣗͷը૾ൺ ֱςετ͕ؔ࡞ΕΔ
QBHF How to prepare test data \
QBHF ΤϑΣΫτͳͲͷجຊతͳը૾ ॲཧͷςετʹ͓͍ͯӈͷ EJTJOUFHSBUJPOHJGUύοέʔ δͷΑ͏ʹJNBHF3(#"ͷς ετέʔεΛ४උ͢Δͷ͕͋ͳ ͕ͪమ൘ ͔͠͠0(1ͷੜςετʹ͓ ͍ͯ͜ͷΑ͏ͳܗͰςετ σʔλΛ༻ҙ͢Δͷ݁ߏ໘
ɻɻ
QBHF ը૾ॲཧͷੜͷςετ ʹ͓͍ͯHPMEFOpMFΛ༻ҙ ͓ͯ͘͠ͱָɻͦͷࡍʹ HPMEFOpMFΛੜ͢Δϑϥο άΛ༻ҙ͓ͯ͘͠ͱศརɻ ࣮ࡍʹHPMBOHJNBHF ύοέʔδͰ͜ͷΑ͏ͳ ςετ͕࣮͞Ε͍ͯΔɻ
QBHF goldenfile Ὂ ը૾ॲཧͷςετʹ͓͚ΔHPMEFOpMF1/(Ͱ͋Δ͜ͱ͕·ΕΔɻ+1&(ࣗମ͕ MPTTZ ใ͕ܽམ͢Δ ͳඇՄٯ ݩʹͤͳ͍ ѹॖํࣜͳͷͰɺҰJNBHF*NBHFΛ+1&( ʹมͯ͠͠·͏ͱɺݩͷը૾ʹ෮ݩ͢Δ͜ͱͰ͖ͳ͍ҝɺHPMEFOpMFUFTUʹෆ͖
JNBHF*NBHF 1/( +1&( ෮ݩՄೳ ෮ݩෆՄ ॻ͖ग़͠ ॻ͖ग़͠
QBHF Conclusion \
QBHF (Pʹ͓͚Δը૾ॲཧͷςετख๏ମܥతʹ·ͱ·͍ͬͯͳ͍͕ɺଞͷύοέʔδ ݟΔͱͲͷΑ͏ʹ࣮͢Εྑ͍͔௫ΊΔɻΈΜͳఘΊͣʹը૾ॲཧͷςετΛॻ ͍͍ͯ͜͏ʂ Conclusion Ὂ
QBHF Additional Talk \
QBHF (P$POGFSFODF'VLVPLB Ͱ(PʹΑΔը૾ॲཧʹ͍ͭͯ ొஃ͠·͢ʂೖॻ͚ͩͰମ ݧͰ͖ͳ͍(P ը૾ॲཧͷϙ ςϯγϟϧΛ͓͑͠·͢ɻ
Consider a test of image processing in Go Otemachi.go June
9, 2019 @ po3rin