marker_separation/py/separator.py

22 lines
512 B
Python
Raw Normal View History

2023-09-27 14:40:13 +00:00
import argparse
2023-10-21 12:26:58 +00:00
from posterize import Posterize
from os.path import abspath
2023-09-27 14:40:13 +00:00
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')
2023-10-21 12:26:58 +00:00
parser.add_argument('output', type=str, help='Output dir to write to')
2023-09-27 14:40:13 +00:00
2023-10-21 12:26:58 +00:00
class Separator :
posterize = Posterize()
def __init__ (self, args) :
print(args)
2023-09-27 14:40:13 +00:00
2023-10-21 12:26:58 +00:00
if __name__ == "__main__" :
args = parser.parse_args()
Separator(args)
2023-09-27 14:40:13 +00:00