Skip to content

Instantly share code, notes, and snippets.

@vivahiraj
Created May 4, 2014 14:35
Show Gist options
  • Save vivahiraj/3bee5afca36650f765bb to your computer and use it in GitHub Desktop.
Save vivahiraj/3bee5afca36650f765bb to your computer and use it in GitHub Desktop.
OpenCVがとりあえず動くことを確認するサンプルです
require 'opencv'
capture = OpenCV::CvCapture.open
mat = capture.query.to_CvMat
mat.save('output.jpg')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment