Deep Learning/Computer Vision
OpenCV (9) - 직선 그리기
Jun's N
2022. 6. 3. 00:21
cv2.line(image, start, end, color, thickness)
start : 시작 좌표(2차원)
end : 종료 좌표(2차원)
thickness : 선의 두께
(255, 0, 0) = (R, G, B)
import cv2
import numpy as np
import matplotlib.pyplot as plt
image = np.full((512, 512, 3), 255, np.uint8)
image = cv2.line(image, (0, 0), (255, 255), (255, 0, 0) , 3)
plt.imshow(image)
plt.show()
728x90