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
520
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
280
WebVRをはじめよう
thomi40
0
76
Other Decks in Programming
See All in Programming
オープンセミナー2025@広島LT技術ブログを続けるには
satoshi256kbyte
0
130
フロントエンドのmonorepo化と責務分離のリアーキテクト
kajitack
2
140
STUNMESH-go: Wireguard NAT穿隧工具的源起與介紹
tjjh89017
0
390
[FEConf 2025] 모노레포 절망편, 14개 레포로 부활하기까지 걸린 1년
mmmaxkim
0
1k
TDD 実践ミニトーク
contour_gara
0
150
ライブ配信サービスの インフラのジレンマ -マルチクラウドに至ったワケ-
mirrativ
2
270
あなたとJIT, 今すぐアセンブ ル
sisshiki1969
1
730
画像コンペでのベースラインモデルの育て方
tattaka
3
1.9k
AI OCR API on Lambdaを Datadogで可視化してみた
nealle
0
180
SOCI Index Manifest v2が出たので調べてみた / Introduction to SOCI Index Manifest v2
tkikuc
1
110
CSC305 Summer Lecture 05
javiergs
PRO
0
110
AI時代のドメイン駆動設計-DDD実践におけるAI活用のあり方 / ddd-in-ai-era
minodriven
23
9k
Featured
See All Featured
Making the Leap to Tech Lead
cromwellryan
134
9.5k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
Imperfection Machines: The Place of Print at Facebook
scottboms
268
13k
BBQ
matthewcrist
89
9.8k
Designing for humans not robots
tammielis
253
25k
Facilitating Awesome Meetings
lara
55
6.5k
Navigating Team Friction
lara
189
15k
Bootstrapping a Software Product
garrettdimon
PRO
307
110k
Become a Pro
speakerdeck
PRO
29
5.5k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
283
13k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
34
6k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
26k
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