标签: visual-studio opencv pycharm
这是我在IDLE中运行的代码,但在Pycharm中并不是Visual Studio。你能帮忙解决这个问题吗?
import cv2 import numpy as np import matplotlib.pyplot as plt img=cv2.imread('1.jpg',cv2.IMREAD_GRAYSCALE) cv2.imshow('image',img) cv2.waitKey(0) cv2.destroyAllWindows()