import cv2
import matplotlib.pyplot as plt
img = cv2.imread('../data/1.jpg')
cv2.imshow('yuantu', img)
plt.hist(img.ravel(), 16)
plt.show() # 展示图片
cv2.waitKey()
cv2.destroyAllWindows()
Python uses matlpotlib show pictures
Guess you like
Origin blog.csdn.net/my_name_is_learn/article/details/104016358
Recommended
Ranking