Skip to content

Instantly share code, notes, and snippets.

@huggre
Created July 3, 2020 14:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save huggre/2f4c7b181b221345fd7432edcc15056c to your computer and use it in GitHub Desktop.
Save huggre/2f4c7b181b221345fd7432edcc15056c to your computer and use it in GitHub Desktop.
# import the necessary packages
from rvm_lib import ReverseVendingMachine
from imutils.video import VideoStream
import time
# Select web cam. or PiCam
vs = VideoStream(src=0).start()
# vs = VideoStream(usePiCamera=True).start()
print("[INFO] warming up camera...")
time.sleep(2.0)
# start the Reverse Vending Machine App.
rvm = ReverseVendingMachine(vs)
rvm.root.mainloop()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment