MCPcopy Create free account
hub / github.com/MichaelHL-ai/OCR_EVALUATION / argparser

Function argparser

script.py:19–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17import rrc_evaluation_funcs
18
19def argparser():
20 parse = argparse.ArgumentParser()
21 parse.add_argument('-g', dest='g', default='./gt.zip', help="Path of the Ground Truth file. In most cases, the Ground Truth will be included in the same Zip file named 'gt.zip', gt.txt' or 'gt.json'. If not, you will be able to get it on the Downloads page of the Task.")
22 parse.add_argument('-s', dest='s', default='./submit.zip', help="Path of your method's results file.")
23 parse.add_argument('-o', dest='o', help="Path to a directory where to copy the file 'results.zip' that containts per-sample results.")
24 parse.add_argument('-p', dest='p', help="JSON string parameters to override the script default parameters. The parameters that can be overrided are inside the function 'default_evaluation_params' located at the begining of the evaluation Script. use: -p '{\"CRLF\":true}'")
25 parse.add_argument('-c', dest='choice', default='IoU', help="choose algorithm for differet tasks.(Challenges 1、2 use 'DetEva' Challenges 4 use 'IoU', default 'IoU')")
26 args = parse.parse_args()
27 return args
28
29if __name__=='__main__':
30 args = argparser()

Callers 1

script.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected