Create an art or image by yourself using arrays and Numpy.

 import numpy as np

import cv2
import matplotlib.pyplot as plt
photo = np.zeros((800,800,3))
plt.imshow(photo)
photo = np.zeros((800,800,3))
cv2.rectangle(photo,(470,200),(300,522),(255,80,10),3)
cv2.circle(photo, (385, 300), 50, (66, 9, 47), 3)

#top triangle
#rightline
cv2.line(photo,(500,200),(380,50),(255,80,10),3)
#leftline
cv2.line(photo,(270,200),(380,50),(255,80,10),3)
#bottomline
cv2.line(photo,(270,200),(500,200),(255,80,10),3)

#leftsiderectangle

cv2.line(photo,(300,500),(200,500),(255,80,10),3)
cv2.line(photo,(300,400),(200,500),(255,80,10),3)

#rightsiderect
cv2.line(photo,(470,500),(570,500),(255,80,10),3)

cv2.line(photo,(570,500),(470,400),(255,80,10),3)

#Boosters
cv2.rectangle(photo,(380,522),(310,550),(255,80,10),3)
cv2.rectangle(photo,(400,522),(465,550),(255,80,10),3)

#Flame
cv2.line(photo,(310,553),(310,650),(0,0,255),4)
cv2.line(photo,(330,553),(310,650),(0,0,255),4)
cv2.line(photo,(350,553),(310,650),(0,0,255),4)
cv2.line(photo,(380,553),(310,650),(0,0,255),4)
#Flame
cv2.line(photo,(465,553),(465,650),(0,0,255),4)
cv2.line(photo,(450,553),(465,650),(0,0,255),4)
cv2.line(photo,(430,553),(465,650),(0,0,255),4)
cv2.line(photo,(410,553),(465,650),(0,0,255),4)

cv2.imshow("ROCKET",photo)
cv2.waitKey() & 0xFF == ord('q')
cv2.destroyAllWindows()







Comments

Popular posts from this blog

Revolutionizing Industries: Solving Challenges with Ansible

How to Install & run docker inside docker?

Creating a Python Script to Capture and Process Face Photos