(1)问题:

不进行参数配置的错误提示,例:
usage: ocr_template_match.py [-h] -i IMAGE -t TEMPLATE
ocr_template_match.py: error: the following arguments are required: -i/–image, -t/–template

(2)解决:

2.1:edit configuration

需要配置参数的py文件进行edit configuration
python中参数设置argparse.ArgumentParser()
python中参数设置argparse.ArgumentParser()

2.2指定参数

参数之间用空格隔开,例博主的参数有两个,为这两个参数指定值
python中参数设置argparse.ArgumentParser()
设置之后点OK
python中参数设置argparse.ArgumentParser()

相关文章:

  • 2021-10-09
  • 2021-07-03
  • 2021-10-27
  • 2022-03-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-29
  • 2021-07-06
  • 2022-12-23
  • 2022-02-16
  • 2021-06-08
  • 2023-02-17
  • 2021-11-16
相关资源
相似解决方案