1 from argparse
import ArgumentParser
2 from pathlib
import Path
4 import backgroundremover
.utilities
as utilities
5 from backgroundremover
import bg
7 parser
= ArgumentParser()
9 parser
.add_argument('input', type=Path
)
10 parser
.add_argument('output', type=Path
)
12 args
= parser
.parse_args()
14 input_bytes
= args
.input.read_bytes()
16 output_bytes
= bg
.remove(
20 args
.output
.write_bytes(output_bytes
)