kindly help …how to insert image over another image
How to insert mustache over the person?
Plot the rectangle for moustache, than reshape your moustache to same width as that of the rectangle obtained and than try to find the starting coordinates from the diagram itself. and than place it.
for ele in nose : x,y,w,h=ele # write code for overlay the mustache on img offset=10 nose_section=img[y-offset:y+offset+h,x±offset:x+w+offset] cv2.rectangle(img,(x,y),(x+w,y+h),(0,255,255),2) for ele2 in eyes: x,y,w,h=ele2 #write code for overlay of the glasses offset=10 eye_section=img[y-offset:y+offset+h,x±offset:x+w+offset] cv2.rectangle(img,(x,y),(x+w,y+h),(0,255,255),2) cv2.imshow(“face”,img)
Share the ipynb file of your work, after saving it on google drive
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.