From 9e2d4347b118a513eea305607ff94755a4c625c8 Mon Sep 17 00:00:00 2001 From: TonyLee1256 <163754792+TonyLee1256@users.noreply.github.com> Date: Mon, 22 Apr 2024 00:08:36 +0800 Subject: [PATCH] Update rec_infer_from_crop_imgs.py --- src/rec_infer_from_crop_imgs.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/rec_infer_from_crop_imgs.py b/src/rec_infer_from_crop_imgs.py index 73bfa73..89bef18 100644 --- a/src/rec_infer_from_crop_imgs.py +++ b/src/rec_infer_from_crop_imgs.py @@ -11,10 +11,16 @@ if __name__ == '__main__': os.chdir(Path(__file__).resolve().parent) parser = argparse.ArgumentParser() parser.add_argument( - '-img', + '-img_dir', type=str, - required=True, - help='path to the input image' + help='path to the input image', + default='./detect_results/subimages' + ) + parser.add_argument( + '-output_dir', + type=str, + help='path to the output dir', + default='./rec_results' ) parser.add_argument( '--inference-mode',