def populate_queue(self, n=1):
    print('Retreiving', n, 'images')
    start_time = time_ns()
    for i in (np.arange(n) + 1):
        im = self.get_random_image()
        image = self.rgb_correction(im)
        filename = (('New File - ' + str(time_ns())) + '.png')
        filepath = os.path.join(self.queue, filename)
        image.save(filepath)
        print(i, filepath)
    end_time = time_ns()
    delta = ((end_time - start_time) / 1000000000.0)
    avg = (delta / n)
    print('Retreived', n, 'images')
    print('    Total time:', np.round(delta, decimals=1), 'seconds')
    print('  Average time:', np.round(avg, decimals=1), 'seconds per image')
def populate_queue(self, n=1):
    print('Retreiving', n, 'images')
    start_time = time_ns()
    for i in (np.arange(n) + 1):
        im = self.get_random_image()
        image = self.rgb_correction(im)
        filename = (('New File - ' + str(time_ns())) + '.png')
        filepath = os.path.join(self.queue, filename)
        image.save(filepath)
        print(i, filepath)
    end_time = time_ns()
    delta = ((end_time - start_time) / 1000000000.0)
    avg = (delta / n)
    print('Retreived', n, 'images')
    print('    Total time:', np.round(delta, decimals=1), 'seconds')
    print('  Average time:', np.round(avg, decimals=1), 'seconds per image')