0.0
No commit activity in last 3 years
No release in over 3 years
wiimagickcam
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

Taking a webcam snapshot with the WiiMagickCam

When the Wii remote control is connected to the running code, the trigger button will make the connected webcam take a snapshot.

require 'wiimagickcam'

WiiMagickCam.start

Alternatively a block can be supplied to WiiMagickCam to perhaps use a different method to take a webcam snapshot.

require 'wiimagickcam'

i = 1
raw_filename="webcam%03d.jpeg"

WiiMagickCam.start do |swm| 
  filename = raw_filename  % i.to_s; 
  `streamer -s 640x480 -c /dev/video0 -b 16 -o #{filename}`
  i += 1
end

wiimagickcam webcam wiimote gem bluetooth