text: # import the necessary packages
  from __future__ import print_function
  from pyimagesearch.photoboothapp import PhotoBoothApp
  from imutils.video import VideoStream
  import argparse
  import time
   
  # construct the argument parse and parse the arguments
  ap = argparse.ArgumentParser()
  ap.add_argument("-o", "--output", required=True,
  	help="path to output directory to store snapshots")
  ap.add_argument("-p", "--picamera", type=int, default=-1,
  	help="whether or not the Raspberry Pi camera should be used")
  args = vars(ap.parse_args())
   
  # initialize the video stream and allow the camera sensor to warmup
  print("[INFO] warming up camera...")
  vs = cv2.v
  time.sleep(2.0)
   
  # start the app
  pba = PhotoBoothApp(vs, args["output"])
  pba.root.mainloop()
  