我运行了python open alrp项目,但得到了一个文件未找到错误
我试图使用python openalrp读板项目,但我得到了一个错误。你能帮忙吗我运行了python open alrp项目,但得到了一个文件未找到错误,python,openalpr,Python,Openalpr,我试图使用python openalrp读板项目,但我得到了一个错误。你能帮忙吗 parser.add_argument("--config", dest="config", action="store", default="ALRP/openalpr.conf", help="Path to openalpr.conf config file" ) parser.add_argument("--runtime_data", dest="runtime_data",
parser.add_argument("--config", dest="config", action="store",
default="ALRP/openalpr.conf",
help="Path to openalpr.conf config file" )
parser.add_argument("--runtime_data", dest="runtime_data", action="store",
default="ALRP/runtime_data",
help="Path to OpenALPR runtime_data directory" )
parser.add_argument('plate_image', help='License plate image file')
options = parser.parse_args()
错误定义如下:
用法:test.py
[-h] [-c COUNTRY] [--config CONFIG]
[--runtime_data RUNTIME_DATA]
plate_image
test.py: error: the following arguments are required: plate_image
这似乎不是航空问题 如果查看错误的堆栈跟踪(通过不捕捉错误),您将看到它来自
argparse
因为这条线:
parser.add_argument('plate_image', help='License plate image file')
您需要将参数plate\u image
传递给程序