2022-03-23 13:46:57 +01:00

15 lines
253 B
Python

import cv2
from matplotlib import pyplot as plt
def show_mpl(image):
fig, ax = plt.subplots(1, 1)
fig.set_size_inches(20, 20)
ax.imshow(image, cmap="gray")
plt.show()
def show_cv2(image):
cv2.imshow("", image)
cv2.waitKey(0)