generated from dopt-python/py311
move cli out of lib, related to #11
This commit is contained in:
@@ -1,33 +0,0 @@
|
||||
import argparse
|
||||
from typing import cast
|
||||
|
||||
from dopt_sensor_anomalies import _interface
|
||||
from dopt_sensor_anomalies.types import CliArgs
|
||||
|
||||
|
||||
def main() -> None:
|
||||
parser = argparse.ArgumentParser(
|
||||
description=("simple CLI tool to analyse single sensor images for anomalies")
|
||||
)
|
||||
parser.add_argument(
|
||||
"img_path",
|
||||
help="file path to the image which is to be analysed",
|
||||
type=str,
|
||||
)
|
||||
parser.add_argument(
|
||||
"calib_value_x",
|
||||
help="calibration value in pixels per mcm for x axis",
|
||||
type=float,
|
||||
)
|
||||
parser.add_argument(
|
||||
"calib_value_y",
|
||||
help="calibration value in pixels per mcm for y axis",
|
||||
type=float,
|
||||
)
|
||||
args = cast(CliArgs, parser.parse_args())
|
||||
|
||||
_interface.sensor_anomalies_detection(
|
||||
args.img_path,
|
||||
args.calib_value_x,
|
||||
args.calib_value_y,
|
||||
)
|
||||
Reference in New Issue
Block a user