git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
20 lines
402 B
Python
20 lines
402 B
Python
from argparse import ArgumentParser
|
|
from pathlib import Path
|
|
|
|
import backgroundremover.utilities as utilities
|
|
from backgroundremover import bg
|
|
|
|
parser = ArgumentParser()
|
|
|
|
parser.add_argument('input', type=Path)
|
|
parser.add_argument('output', type=Path)
|
|
|
|
args = parser.parse_args()
|
|
|
|
input_bytes = args.input.read_bytes()
|
|
|
|
output_bytes = bg.remove(
|
|
input_bytes,
|
|
)
|
|
|
|
args.output.write_bytes(output_bytes)
|