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
530
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
78
Other Decks in Programming
See All in Programming
オフライン対応!Flutterアプリに全文検索エンジンを実装する @FlutterKaigi2025
itsmedreamwalker
2
210
AIの弱点、やっぱりプログラミングは人間が(も)勉強しよう / YAPC AI and Programming
kishida
9
5k
Rails Girls Sapporo 2ndの裏側―準備の日々から見えた、私が得たもの / SAPPORO ENGINEER BASE #11
lemonade_37
2
170
スタートアップを支える技術戦略と組織づくり
pospome
6
2.9k
JEP 496 と JEP 497 から学ぶ耐量子計算機暗号入門 / Learning Post-Quantum Crypto Basics from JEP 496 & 497
mackey0225
2
360
Atomics APIを知る / Understanding Atomics API
ssssota
1
150
複数チーム並行開発下でのコード移行アプローチ ~手動 Codemod から「生成AI 活用」への進化
andpad
0
170
チーム開発の “地ならし"
konifar
8
5.1k
Dive into Triton Internals
appleparan
0
500
Vueで学ぶデータ構造入門 リンクリストとキューでリアクティビティを捉える / Vue Data Structures: Linked Lists and Queues for Reactivity
konkarin
1
310
2025 컴포즈 마법사
jisungbin
0
130
問題の見方を変える「システム思考」超入門
panda_program
0
290
Featured
See All Featured
The Language of Interfaces
destraynor
162
25k
Optimising Largest Contentful Paint
csswizardry
37
3.5k
Measuring & Analyzing Core Web Vitals
bluesmoon
9
670
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
1.8k
Imperfection Machines: The Place of Print at Facebook
scottboms
269
13k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.1k
Bash Introduction
62gerente
615
210k
YesSQL, Process and Tooling at Scale
rocio
174
15k
Building a Scalable Design System with Sketch
lauravandoore
463
33k
The World Runs on Bad Software
bkeepers
PRO
72
12k
Build your cross-platform service in a week with App Engine
jlugia
234
18k
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