import cv2
import numpy as np
from matplotlib import pyplot as plt



# 读取图片 big.jpg
img = cv2.imread('big.jpg', 0)

# 读取图片 smart.jpg
template = cv2.imread('smart.jpg', 0)


plt.subplot(2,2,1)
plt.imshow(img, cmap='gray')
plt.title('pic 1')
plt.xticks([])
plt.yticks([])

plt.subplot(2,2,2)
plt.imshow(img, cmap='gray')
plt.title('pic 2')
plt.xticks([])
plt.yticks([])

plt.subplot(2,2,3)
plt.imshow(img, cmap='gray')
plt.title('pic 2')
plt.xticks([])
plt.yticks([])


plt.savefig('plt.png')
plt.show()

 

相关文章:

  • 2021-11-22
  • 2022-12-23
  • 2022-01-01
  • 2021-12-03
  • 2022-12-23
  • 2022-12-23
  • 2022-01-15
猜你喜欢
  • 2021-06-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-31
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案