examples/background_subtractor.rb in spyglass-0.0.2 vs examples/background_subtractor.rb in spyglass-0.0.3
- old
+ new
@@ -30,6 +30,8 @@
result.copy!(beach)
delta = bg.subtract(frame, 0)
result.copy!(frame, delta);
window.show result
+
+ break if GUI::wait_key(10) > 0
end