Python using Opencv

import cv2
import sys


#file = input("请输入图片地址")
file = sys.argv[1]
m = cv2.imread(file)

cv2.imshow(file,m)
cv2.waitKey(0)
cv2.destroyAllWindows()

opencv python doc

你可能感兴趣的:(笔记,Python,Error,Solution)