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)),(200,200),90,(255,0,0),6),(420,200),90,(0,0,0),6),(640,200),90,(0,0,255),6),(315,300),90,(0,252,215),6),(530,300),90,(0,255,0),6)
cv2.imshow('hii' , image)
if cv2.waitKey() == 13:

This will generate image

For further,

Check My github repository.



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store