【python+opencv】使用argparser报错:error: the following arguments are required: -i/--image

试过好多种方法,只有一种方法可行
打开launch.json文件

 "args":[
    "--image","E:/learnopencv/chapter15/answersheet/images/test_01.png"
 ]

更改后使用调试的方法运行程序。

猜你喜欢

转载自blog.csdn.net/qq_41073715/article/details/104822822