import numpy as np
import pandas as pd
import cv2

img = cv2.imread('images/omega.jpg' , cv2.IMREAD_COLOR)

#Drawing a black line
cv2.line(img , (0 ,0 ) , (150 , 150) , (0,0,0))
#Drawing a Rectangle
cv2.rectangle(img , (15,15) , (200 , 150) ,(0,255,0) , 5)
#Drawing a Circle , -1 fills the circle with color
cv2.circle(img , (100,63) ,55 , (0,0,255) ,-1)
#Drawing Polygons
pts = np.array(([10,5] , [70,20] , [20,30] , [50,10]) , np.int32)
#True is to make a closed curve
cv2.polylines(img ,[pts] , True , (0,255,3))


#To write a text
font = cv2.FONT_HERSHEY_SIMPLEX
cv2.putText(img , 'OpenCV' , (0,130) , font , 1 , (200 ,255 , 255) , 2 , cv2.LINE_AA)
cv2.imshow('image' , img)
cv2.waitKey(0)
cv2.destroyAllWindows()