Webcam photos with Ruby
Let’s do something fun! In this post we’ll take a photo using your webcam in Ruby.
NOTE: This only works on OS X
I haven’t tried making it work on other operating systems. Not that I don’t like other operating systems, I just haven’t made it work. :-)
Installing the Gem We’ll use the av_capture gem. It wraps the AVCapture framework on OS X. To install it, just do:
$ gem install av_capture Using the Gem I’ll paste the code here first, then explain it:
Tenderlove Making