Skip to content

Instantly share code, notes, and snippets.

@Bharath-K3
Created October 4, 2020 10:02
# Drawing a line
img = np.zeros((512,512,3))
img = cv2.line(img,(0,0),(511,511),(255,0,0),10)
cv2.imshow("Line", img) # Display the line cutting through the image
cv2.waitKey(0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment