22 lines
512 B
Python
22 lines
512 B
Python
import argparse
|
|
from posterize import Posterize
|
|
from os.path import abspath
|
|
|
|
from os.path import isfile
|
|
|
|
parser = argparse.ArgumentParser(description='Separate an image into most similar colors specified')
|
|
|
|
parser.add_argument('input', type=str, help='Input image to separate')
|
|
parser.add_argument('output', type=str, help='Output dir to write to')
|
|
|
|
class Separator :
|
|
posterize = Posterize()
|
|
def __init__ (self, args) :
|
|
print(args)
|
|
|
|
|
|
if __name__ == "__main__" :
|
|
args = parser.parse_args()
|
|
Separator(args)
|
|
|