def autopopulate_queue(self, min_queue_length=240, images_to_add=24):
    queue_length = len(os.listdir(self.queue))
    print('There are', queue_length, 'images left in the queue.')
    if (queue_length < min_queue_length):
        print('Queue length is below threshold (min', min_queue_length, 'images)')
        self.populate_queue(images_to_add)
def autopopulate_queue(self, min_queue_length=240, images_to_add=24):
    queue_length = len(os.listdir(self.queue))
    print('There are', queue_length, 'images left in the queue.')
    if (queue_length < min_queue_length):
        print('Queue length is below threshold (min', min_queue_length, 'images)')
        self.populate_queue(images_to_add)