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
RubyとOpenCVで始める画像処理 / ruby-opencv-megurorb-23
Search
Tomoki Ishimaru
January 29, 2019
Programming
1
460
RubyとOpenCVで始める画像処理 / ruby-opencv-megurorb-23
Tomoki Ishimaru
January 29, 2019
Tweet
Share
More Decks by Tomoki Ishimaru
See All by Tomoki Ishimaru
Rubyで画像ファイルから様々なオブジェクトを検出する / ruby-opencv-heiseirb-2
thomi40
1
680
Netatmo API × Rubyで オフィスのCO2濃度をSlackに通知する / Netatmo API × Ruby × Slack
thomi40
0
260
WebVRをはじめよう
thomi40
0
73
Other Decks in Programming
See All in Programming
Jakarta EE meets AI
ivargrimstad
0
640
Macとオーディオ再生 2024/11/02
yusukeito
0
380
Nurturing OpenJDK distribution: Eclipse Temurin Success History and plan
ivargrimstad
0
1k
EMになってからチームの成果を最大化するために取り組んだこと/ Maximize team performance as EM
nashiusagi
0
100
Less waste, more joy, and a lot more green: How Quarkus makes Java better
hollycummins
0
100
3 Effective Rules for Using Signals in Angular
manfredsteyer
PRO
0
120
Creating a Free Video Ad Network on the Edge
mizoguchicoji
0
120
cmp.Or に感動した
otakakot
3
220
PHP でアセンブリ言語のように書く技術
memory1994
PRO
1
170
Snowflake x dbtで作るセキュアでアジャイルなデータ基盤
tsoshiro
2
520
OnlineTestConf: Test Automation Friend or Foe
maaretp
0
120
Pinia Colada が実現するスマートな非同期処理
naokihaba
4
230
Featured
See All Featured
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
16
2.1k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
25
1.8k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
6
430
A Modern Web Designer's Workflow
chriscoyier
693
190k
Into the Great Unknown - MozCon
thekraken
32
1.5k
Fireside Chat
paigeccino
34
3k
[RailsConf 2023] Rails as a piece of cake
palkan
52
4.9k
Art, The Web, and Tiny UX
lynnandtonic
297
20k
Building Your Own Lightsaber
phodgson
103
6.1k
Designing on Purpose - Digital PM Summit 2013
jponch
115
7k
Producing Creativity
orderedlist
PRO
341
39k
What’s in a name? Adding method to the madness
productmarketing
PRO
22
3.1k
Transcript
RubyͱOpenCVͰ࢝ΊΔը૾ॲཧ 2019/01/29 Meguro.rb#23 Tomoki Ishimaru / @thom_i40
ࣗݾհ • Tomoki Ishimaru • GMO AD Marketing Inc. •
ϑϩϯτΤϯυ / αʔόʔαΠυ • Իָͱࣸਅ͕͖ @thom_i40
ࠓ͢͜ͱ • OpenCVͷ֓ཁ • ruby-opencvͷ֓ཁ • ruby-opencvΛ׆༻ͨ͠Ռ
• Πϯςϧ͕։ൃ • Φʔϓϯιʔεͷը૾/ө૾ॲཧϥΠϒϥϦ • ΫϩεϓϥοτϑΥʔϜࢦͰઃܭ • C++, Java, Python,
MATLABΛαϙʔτ • ༷ʑͳόΠϯσΟϯά͕ଘࡏ OpenCV
ruby-opencv • Ruby༻ͷOpenCVϥούʔ • Ruby 2ܥ / OpenCV 2.4.13Λαϙʔτ •
RubyDoc.infoͰυΩϡϝϯτΛఏڙ https://www.rubydoc.info/gems/ruby-opencv/frames
άϨʔεέʔϧ/ೋԽॲཧ src = CvMat.load('Sailboat.bmp') gray = src.BGR2GRAY bin = gray.threshold(128,
255, :binary)
HaarྨثʹΑΔإೝࣝ
ࠓճ࡞ͬͨՌ
ָේը૾͔ΒϝϩσΟΛநग़
ָේը૾͔ΒϝϩσΟΛநग़
ָේը૾͔ΒϝϩσΟΛநग़
ͬͨػೳ
ೋԽॲཧ
ઢݕग़
ςϯϓϨʔτϚονϯά
ϝϩσΟΛநग़
·ͱΊ • OpenCVͱruby-opencvʹ͍ͭͯհͨ͠ • ruby-opencvͷ༷ʑͳػೳΛ༻͍ͯ ָේը૾͔ΒϝϩσΟΛநग़͢ΔγεςϜΛ࡞ͬͨ • RubyͰجຊతͳը૾ೝ͕ࣝͰ͖Δ͜ͱ͕Θ͔ͬͨ
͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠ @thom_i40