Draw Images

Today we are going to explore an example of code for drawing images, actually we can draw polygons like triangles, quadrangles, etc… circles, lines.We are using Numpy (Numerical Python) library for generating an image. import cv2import numpy as npimage = np.zeros((600,600,3), np.uint8)cv2.line(image, (600,600), (0,0), (255,99,71), 5)cv2.imshow(“Blue Line”, image)cv2.waitKey(0)cv2.destroyAllWindows() line 1 we import cv2 libraryline 2 […]

Read More