Putting a sunglass on a face
Aug 3, 2023
import cv2
pic1=cv2.imread("narendramodi.jpg")
pic2=cv2.imread("sunglasses.png")
pic1[100:140,150:]=pic2[:,:]#just make sure the dimensions of sunglassses match the face
cv2.imshow("hi",pic2)
cv2.waitKey()
cv2.destroyAllWindows()