Skip to content

Instantly share code, notes, and snippets.

@hnaohiro
Created April 22, 2013 04:21
Show Gist options
  • Save hnaohiro/5432423 to your computer and use it in GitHub Desktop.
Save hnaohiro/5432423 to your computer and use it in GitHub Desktop.
ruby-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