Skip to content
 
 

Latest commit

 

History

70 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rb_webcam

Crossplatform video capture library for Ruby. Powered by OpenCV.

Platform

Windows, Mac OS X, Linux, etc...(OpenCV capable systems)

Dependency

  • nice-ffi >= 0.3
  • OpenCV Library >= 2.0.0

Install

gem install rb_webcam

Usage

camera_id = 0
Webcam.open(camera_id) {|capture| image = capture.grab}

or

capture = Webcam.new
image = capture.grab
capture.close

to save image

capture = Webcam.new
image = capture.grab
image.save "new_image.jpg"
capture.close

TODO

  • specity size at initialize, or anytime.

LICENSE

The MIT License Copyright (c) 2010 Hirotoshi YOSHITAKA. See LICENSE for details.

About

Crossplatform video capture library for Ruby (Powered by OpenCV)

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages