ruby-opencvのサンプルソースとか

ruby-opencvの残念なのは、ドキュメントとか情報が少ないところ。
でも、標準添付の examples だけでも実は結構情報がある。一通り眺めるだけで、かなり色々できる。
irbから動かして、どんなメソッドがあるか調べることもできるし…で、ドキュメントを充実させようと考える人が少ないのかもしれない。

実際、OpenCV公式や、以下のサイトを眺めて、大体のあたりを付けて、exaples のソースをコピペして動かしたり、irbから叩いてカット&トライしたりして、大抵のことはできるんじゃないかと思う。

OpenCV 2.1の関数 CとC++の対照表 (未完) - schima.hatenablog.com』
http://schima.hatenablog.com/entry/20100814/1281795242

『File: README — Documentation for ruby-opencv (0.0.14)』
http://www.rubydoc.info/gems/ruby-opencv/frames

以下、「c:/Ruby/lib/ruby/gems/2.2.0/gems/ruby-opencv-0.0.14/examples」で grep '^#' して、適当に編集してみた。

alpha_blend.rb:# Alpha blending sample with GUI
convexhull.rb:# Draw contours and convexity defect points to captured image
face_detect.rb:# face_detect.rb
find_obj.rb:# A Demo Ruby/OpenCV Implementation of SURF
find_obj.rb:# See https://code.ros.org/trac/opencv/browser/tags/2.3.1/opencv/samples/c/find_obj.cpp
houghcircle.rb:# houghcircle.rb
inpaint.rb:# inpaint.rb
match_kdtree.rb:# A sample of matching SURF feature points using kd-tree
match_kdtree.rb:# See http://tech.groups.yahoo.com/group/OpenCV/message/62318
match_template.rb:# A demo of Ruby/OpenCV's match_template function
paint.rb:# paint.rb
snake.rb:# snake.rb
contours/bounding-box-detect-canny.rb:# Detects contours in an image and
contours/bounding-box-detect-canny.rb:# their boundingboxes
contours/contour_retrieval_modes.rb:# This file shows the different retrieval modes for contour detection
facerec/create_csv.rb:# This is a tiny script to help you creating a CSV file from a face
facerec/create_csv.rb:# database with a similar hierarchie:
facerec/create_csv.rb:# See http://docs.opencv.org/trunk/modules/contrib/doc/facerec/facerec_tutorial.html
facerec/facerec_eigenfaces.rb:# Eigenfaces sample in ruby-opencv, equivalent to http://docs.opencv.org/trunk/_downloads/facerec_eigenfaces.cpp
facerec/facerec_eigenfaces.rb:# See http://docs.opencv.org/trunk/modules/contrib/doc/facerec/facerec_tutorial.html
facerec/facerec_fisherfaces.rb:# Fisherfaces sample in ruby-opencv, equivalent to http://docs.opencv.org/trunk/_downloads/facerec_fisherfaces.cpp
facerec/facerec_fisherfaces.rb:# See http://docs.opencv.org/trunk/modules/contrib/doc/facerec/facerec_tutorial.html
facerec/facerec_lbph.rb:# LBPH sample in ruby-opencv, equivalent to http://docs.opencv.org/trunk/_downloads/facerec_lbph.cpp
facerec/facerec_lbph.rb:# See http://docs.opencv.org/trunk/modules/contrib/doc/facerec/facerec_tutorial.html