Skip to content

Instantly share code, notes, and snippets.

@Abhayparashar31
Created October 13, 2020 15:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Abhayparashar31/af36bf25ce61345266db4b54aba33be1 to your computer and use it in GitHub Desktop.
Save Abhayparashar31/af36bf25ce61345266db4b54aba33be1 to your computer and use it in GitHub Desktop.
import cv2
import numpy as np
img = cv2.imread("images/img0.jpg")
cv2.line(img,(110,260),(300,260),(0,255,0),3)
cv2.rectangle(img,(300,280),(100,20),(0,0,255),2)
cv2.circle(img,(200,130),90,(255,255,0),2)
cv2.putText(img,"MONALISA",(120,250),cv2.FONT_HERSHEY_COMPLEX,1,(255,255,255),2)
cv2.imshow("Image",img)
cv2.waitKey(0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment