examples/background_subtractor.rb in spyglass-0.0.3 vs examples/background_subtractor.rb in spyglass-0.0.4
- old
+ new
@@ -7,10 +7,10 @@
WARNING: This demo might not work well with cameras that do auto-exposure.
If you can, disable those features for a better feel of this demo.
eos
-bg = BackgroundSubtractor.new
+bg = BackgroundSubtractor::MOG2.new
window = GUI::Window.new("Beach!")
cap = VideoCapture.new 0, width: 640, height: 480
frame = Image.new
result = Image.new
beach = Image.load File.expand_path('images/beach.jpg', File.dirname(__FILE__))