Coding/Python
[openCV]이미지 기본
떡빵
2020. 4. 16. 09:47
728x90
기본 이미지 출력 방법
import cv2
from matplotlib import pyplot as plt
img = cv2.imread("/home/ubuntu/dev/_dataset/dental/panorama/179.png")
print("width: {}px".format(img.shape[1]))
print("height: {}px".format(img.shape[0]))
plt.figure(figsize = (16,9))
plt.imshow(img)
plt.show()
728x90