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で画像ファイルから様々なオブジェクトを検出する / ruby-opencv-heise...
Search
Tomoki Ishimaru
March 14, 2019
Programming
1
720
Rubyで画像ファイルから様々なオブジェクトを検出する / ruby-opencv-heiseirb-2
Tomoki Ishimaru
March 14, 2019
Tweet
Share
More Decks by Tomoki Ishimaru
See All by Tomoki Ishimaru
RubyとOpenCVで始める画像処理 / ruby-opencv-megurorb-23
thomi40
1
520
Netatmo API × Rubyで オフィスのCO2濃度をSlackに通知する / Netatmo API × Ruby × Slack
thomi40
0
280
WebVRをはじめよう
thomi40
0
78
Other Decks in Programming
See All in Programming
ALL CODE BASE ARE BELONG TO STUDY
uzulla
23
5.8k
CSC305 Lecture 06
javiergs
PRO
0
230
Go Conference 2025: Goで体感するMultipath TCP ― Go 1.24 時代の MPTCP Listener を理解する
takehaya
9
1.7k
その面倒な作業、「Dart」にやらせませんか? Flutter開発者のための業務効率化
yordgenome03
1
130
monorepo の Go テストをはやくした〜い!~最小の依存解決への道のり~ / faster-testing-of-monorepos
convto
2
490
私はどうやって技術力を上げたのか
yusukebe
43
18k
3年ぶりにコードを書いた元CTOが Claude Codeと30分でMVPを作った話
maikokojima
0
230
登壇は dynamic! な営みである / speech is dynamic
da1chi
0
340
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
120
『毎日の移動』を支えるGoバックエンド内製開発
yutautsugi
2
250
あなたとKaigi on Rails / Kaigi on Rails + You
shimoju
0
160
CSC509 Lecture 03
javiergs
PRO
0
340
Featured
See All Featured
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
127
53k
Building Better People: How to give real-time feedback that sticks.
wjessup
369
20k
Balancing Empowerment & Direction
lara
4
690
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
It's Worth the Effort
3n
187
28k
Learning to Love Humans: Emotional Interface Design
aarron
274
41k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
26
3.1k
How to train your dragon (web standard)
notwaldorf
97
6.3k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
Designing for Performance
lara
610
69k
YesSQL, Process and Tooling at Scale
rocio
173
14k
What's in a price? How to price your products and services
michaelherold
246
12k
Transcript
RubyͰը૾ϑΝΠϧ͔Β ༷ʑͳΦϒδΣΫτΛݕग़͢Δ 2019/03/14 ฏ.rb #2 @MedPeer, Inc. Tomoki Ishimaru /
@thom_i40
ࣗݾհ • Tomoki Ishimaru • GMO AD Marketing Inc. •
ϑϩϯτΤϯυ / αʔόʔαΠυ • झຯԻָͱࣸਅͱΔ͜ͱ @thom_i40
ࠓ͢͜ͱ • ը૾ॲཧϥΠϒϥϦʮOpenCVʯͷ֓ཁ • ruby-opencvͷ֓ཁ • ruby-opencvΛ༻͍ͨମೝࣝ • ruby-opencvΛ׆༻ͨ͠Ռ
ࠓ͞ͳ͍͜ͱ • ಈըͷೖग़ྗ੍ޚ • ػցֶशͱOpenCV • ruby-opencvͷΈ • ίϯϐϡʔλϏδϣϯͷΈ
None
• Πϯςϧ͕։ൃ • Φʔϓϯιʔεͷը૾/ө૾ॲཧϥΠϒϥϦ • ΫϩεϓϥοτϑΥʔϜࢦͰઃܭ • 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
ڥߏங(OS X) • HomebrewͰOpenCVΛΠϯετʔϧ • gem install Ͱ ruby-opencv Λಋೖ
https://github.com/ruby-opencv/ruby-opencv
ࠓճհ͢Δػೳ • إݕग़ • ԁݕग़ • ઢݕग़ • දతͳը૾ॲཧػೳ •
ςϯϓϨʔτϚονϯά
άϨʔεέʔϧ / ೋԽॲཧ src = CvMat.load('Sailboat.bmp') gray = src.BGR2GRAY bin
= gray.threshold(128, 255, :binary)
ԁݕग़
ԁݕग़
HaarྨثʹΑΔإݕग़
HaarྨثʹΑΔإݕग़
HaarྨثʹΑΔإݕग़ ͨͬͨߦͰ࣮Մೳ
ઢݕग़
ઢݕग़
ςϯϓϨʔτϚονϯά
ςϯϓϨʔτϚονϯά
ࠓճ࡞ͬͨՌ
ָේը૾͔ΒϝϩσΟΛநग़
ָේը૾͔ΒϝϩσΟΛநग़
ָේը૾͔ΒϝϩσΟΛநग़
ͬͨػೳ
ೋԽॲཧ
ઢݕग़
ςϯϓϨʔτϚονϯά
ϝϩσΟΛநग़
·ͱΊ • OpenCVʹ͍ͭͯհͨ͠ • ruby-opencvΛ༻͍ͨମݕग़ʹ͍ͭͯհͨ͠ • ָේը૾͔ΒϝϩσΟΛநग़͢ΔγεςϜΛ࡞ͬͨ • RubyͰجຊతͳը૾ೝ͕ࣝͰ͖Δ͜ͱ͕Θ͔ͬͨ
͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠ @thom_i40