Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
RubyとOpenCVで始める画像処理 / ruby-opencv-megurorb-23
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Tomoki Ishimaru
January 29, 2019
Programming
570
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
RubyとOpenCVで始める画像処理 / ruby-opencv-megurorb-23
Tomoki Ishimaru
January 29, 2019
More Decks by Tomoki Ishimaru
See All by Tomoki Ishimaru
Rubyで画像ファイルから様々なオブジェクトを検出する / ruby-opencv-heiseirb-2
thomi40
1
730
Netatmo API × Rubyで オフィスのCO2濃度をSlackに通知する / Netatmo API × Ruby × Slack
thomi40
0
300
WebVRをはじめよう
thomi40
0
86
Other Decks in Programming
See All in Programming
なぜCTOを降りてFDEを選んだのか?〜なぜプロダクト企業がFDEで顧客の現場に踏み込むのか〜
gonta
1
220
GemmaをJevのように使ってみる / Use Gemma like Jev
kishida
5
800
Domain-Driven Transformation
hschwentner
2
2.3k
contenteditable と日本語入力に向き合う
colorful12
0
200
Kotlinize Is Not Just Converting to Kotlin
chigichan24
1
160
Herb in Rails 8.2: Your ERB views, now HTML-aware @ Kaigi on Rails 2026, Tokyo, Japan
marcoroth
2
300
見えないものを探る要求要件定義に必要な基本的思考 / invisible-requirement-thinking
minodriven
15
8.6k
ジョジョの世界をXRで再現する
mofurune
0
180
作って学ぶSpring BootのAuto Configuration / JJUG Night Seminar 2026-10-19
rshindo
0
190
IBM Bob でAI駆動開発『QC-Playbook』
ichirokano2
0
110
半永久的に提供し続けられるプライベートクラウドを目指して ― 利用者の認知負荷を抑えるAPI抽象化とハードウェア世代交代の基盤設計
tomokon
0
510
最近”作らせてる” ローカルAIアプリの話
akit37
0
480
Featured
See All Featured
Claude Code のすすめ
schroneko
67
230k
BBQ
matthewcrist
90
10k
Java REST API Framework Comparison - PWX 2021
mraible
34
9.8k
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
23k
The Invisible Side of Design
smashingmag
301
52k
For a Future-Friendly Web
brad_frost
184
10k
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
2
310
Marketing to machines
jonoalderson
1
5.9k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
270
Intergalactic Javascript Robots from Outer Space
tanoku
273
28k
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