def main(args=None):
    if (args is None):
        args = sys.argv[1:]
    args = parse_args(args)
    generator = create_generator(args)
    cv2.namedWindow('Image', cv2.WINDOW_NORMAL)
    if args.loop:
        while run(generator, args):
            pass
    else:
        run(generator, args)
def main(args=None):
    if (args is None):
        args = sys.argv[1:]
    args = parse_args(args)
    generator = create_generator(args)
    cv2.namedWindow('Image', cv2.WINDOW_NORMAL)
    if args.loop:
        while run(generator, args):
            pass
    else:
        run(generator, args)