error: the following arguments are required:

ap.add_argument("-i", "--image", type=str, required=True,
	help="path input image that we'll detect blur in")

报错的原因是:required=True,也就是说这个命令行必须有。
改法:
1、你忘记加这个命令行参数了,加上
2、改为default = “”

猜你喜欢

转载自blog.csdn.net/weixin_42630613/article/details/114666309