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
540
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
720
Netatmo API × Rubyで オフィスのCO2濃度をSlackに通知する / Netatmo API × Ruby × Slack
thomi40
0
290
WebVRをはじめよう
thomi40
0
79
Other Decks in Programming
See All in Programming
Implementation Patterns
denyspoltorak
0
140
Unicodeどうしてる? PHPから見たUnicode対応と他言語での対応についてのお伺い
youkidearitai
PRO
0
170
0→1 フロントエンド開発 Tips🚀 #レバテックMeetup
bengo4com
0
460
Graviton と Nitro と私
maroon1st
0
160
Cap'n Webについて
yusukebe
0
160
例外処理とどう使い分ける?Result型を使ったエラー設計 #burikaigi
kajitack
9
2.6k
從冷知識到漏洞,你不懂的 Web,駭客懂 - Huli @ WebConf Taiwan 2025
aszx87410
2
3.3k
リリース時」テストから「デイリー実行」へ!開発マネージャが取り組んだ、レガシー自動テストのモダン化戦略
goataka
0
160
Cell-Based Architecture
larchanjo
0
160
[AtCoder Conference 2025] LLMを使った業務AHCの上⼿な解き⽅
terryu16
6
1k
Grafana:建立系統全知視角的捷徑
blueswen
0
270
Combinatorial Interview Problems with Backtracking Solutions - From Imperative Procedural Programming to Declarative Functional Programming - Part 2
philipschwarz
PRO
0
130
Featured
See All Featured
Abbi's Birthday
coloredviolet
0
4.2k
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
140
Raft: Consensus for Rubyists
vanstee
141
7.3k
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
100
Fireside Chat
paigeccino
41
3.8k
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
58
41k
What the history of the web can teach us about the future of AI
inesmontani
PRO
0
390
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
22k
[SF Ruby Conf 2025] Rails X
palkan
0
680
30 Presentation Tips
portentint
PRO
1
180
Ruling the World: When Life Gets Gamed
codingconduct
0
120
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
0
360
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