我在尝试从这个Python脚本加载图像时遇到了麻烦。 在Windows10中运行良好。我不知道为什么它不能在我的Windows7系统中工作。你知道吗
from __future__ import print_function
import argparse
import cv2
ap = argparse.ArgumentParser()
ap.add_argument("-i", "--image", required = True,
help = "Path to the image")
args = vars(ap.parse_args())
image = cv2.imread(args["image"])
在我跑步的时候
showimage.py --image syiling.png
然后它就回来了
showimage.py error argument is required
目前没有回答
相关问题 更多 >
编程相关推荐