Sha256: 9a66789039ade6fcdcf2899c0c52c2d71211ef14976fd3d4b3de4f48c5a4d070

Contents?: true

Size: 402 Bytes

Versions: 1

Compression:

Stored size: 402 Bytes

Contents

require 'artoo'

connection :capture, :adaptor => :opencv_capture
device :capture, :driver => :opencv_capture, :connection => :capture, :interval => 0.01

connection :window, :adaptor => :opencv_window
device :window, :driver => :opencv_window, :connection => :window, :title => "My Window", :interval => 0.01

work do
  on capture, :frame => proc { |*value| 
    window.image = value[1].image
  }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
artoo-opencv-0.1.0 examples/capture.rb