File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -915,8 +915,10 @@ def main():
915
915
"""
916
916
# for cmd
917
917
args = parse_args (mMain = True )
918
+ logger .info ("for uage help, please use `paddleocr --help`" )
918
919
image_dir = args .image_dir
919
920
if is_link (image_dir ):
921
+ os .remove ("tmp.jpg" ) if os .path .exists ("tmp.jpg" ) else None
920
922
download_with_progressbar (image_dir , "tmp.jpg" )
921
923
image_file_list = ["tmp.jpg" ]
922
924
else :
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ def init_args():
49
49
parser .add_argument ("--gpu_id" , type = int , default = 0 )
50
50
51
51
# params for text detector
52
- parser .add_argument ("--image_dir" , type = str , required = True )
52
+ parser .add_argument ("--image_dir" , type = str )
53
53
parser .add_argument ("--page_num" , type = int , default = 0 )
54
54
parser .add_argument ("--det_algorithm" , type = str , default = "DB" )
55
55
parser .add_argument ("--det_model_dir" , type = str )
You can’t perform that action at this time.
0 commit comments