# -*- coding: utf-8 -*-
"""
Created on Mon Mar  9 11:21:37 2020

@author: Intern
"""
import cv2
import numpy as np

image=cv2.imread("moon.jpg")
blue = (255, 0, 0)
red = (0, 0, 255)
green = (0, 255, 0)
violet = (180, 0, 180)
yellow = (0, 180, 180)
white = (255, 255, 255)

cv2.line(image, (50, 30), (450, 35), blue, thickness=5)
cv2.circle(image, (240, 205), 23, red, -1)
cv2.rectangle(image, (50, 60), (450, 95), green, -1)
cv2.ellipse(image, (250, 150), (80, 20), 5, 0, 360, violet, -1)
points = np.array([[[140, 230], [380, 230], [320, 250], [250, 280]]], np.int32)
cv2.polylines(image, [points], True, yellow, thickness=3)

font = cv2.FONT_HERSHEY_COMPLEX
cv2.putText(image, "moo", (20, 180), font, 4, white)
cv2.imshow("moon", image)
cv2.waitKey(0)
cv2.destroyAllWindows()