Project

magickcam

0.0
No commit activity in last 3 years
No release in over 3 years
magickcam = rb_webcam + rmagick
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

#Using the Magickcam gem with rb_webcam built in

require 'magickcam'

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

There is no need to instantiate an object from the Magickcam class if all you want is to capture a webcam image. The Magickcam gem includes the latest code from the rb_webcam source code on GitHub whereas the rb_webcam gem (as of 1-Dec-2012) still does not.

Prerequisites

You will need to install imagemagick, and opencv. Here's what I installed apt-get install imagemagick libcv2.3 libcv-dev libopencv-highgui2.3 libopencv-highgui-dev

Resources

magickcam rmagick rb_webcam webcam gem