Image Processing using numpy

In this article, I’ll be showing some code which will generate image with merely array concept.

import cv2
import numpy as np
image = np.ones((600,900,3))
cv2.circle(image,(200,200),90,(255,0,0),6)
cv2.circle(image,(420,200),90,(0,0,0),6)
cv2.circle(image,(640,200),90,(0,0,255),6)
cv2.circle(image,(315,300),90,(0,252,215),6)
cv2.circle(image,(530,300),90,(0,255,0),6)
cv2.imshow('hii' , image)
if cv2.waitKey() == 13:
cv2.destroyAllWindows()

This will generate image

For further,

Check My github repository.

--

--