Sha256: 741d7d8c42db84971f34cda2966ef3b5ed9bc80291e07c6a8263e86e45c084b2

Contents?: true

Size: 231 Bytes

Versions: 6

Compression:

Stored size: 231 Bytes

Contents

$LOAD_PATH.unshift('lib')
require 'spyglass'

include Spyglass

window  = GUI::Window.new "Video"
cap     = VideoCapture.new 0
frame   = Image.new

loop do
  cap >> frame
  window.show(frame)

  break if GUI::wait_key(100) > 0
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
spyglass-0.0.5.1 examples/video_capture.rb
spyglass-0.0.5 examples/video_capture.rb
spyglass-0.0.4.1 examples/video_capture.rb
spyglass-0.0.4 examples/video_capture.rb
spyglass-0.0.3 examples/video_capture.rb
spyglass-0.0.2 examples/video_capture.rb