The cv2.line() method in the OpenCV is used to draw a line.
Syntax
cv2.line(image, start_point, en ...