How to overlay the images in this challenge?
I am able to detect the face, eyes and nose. What has to be done after that?
Got Snapchat FIlter Challenge
Hey @icoder18, While reading moustache and glasses image use,
img=cv2.imread(“Train/glasses.png”,cv2.IMREAD_UNCHANGED))
print(img.shape)
You will notice that img has 4 channels and not 3. These channels are rgba. Where ‘a’ channel stores the opacity of channel. It will be greater than 0 if there is some opacity otherwise zero.
Next step is to resize this image, to the one having same width and height to that of nose/eyes detected.
Than you need to iterate on every pixels value on actual image from x to x+w and from y to y+h. And replace the pixel values to that of moustache/glasses image if ‘a’ channel value i.e. opacity value is greater than 0.
Hope this resolved your doubt.
Plz mark the doubt as resolved in my doubts 
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.
iterating pixel by pixel seems very expensive is there a way to do that using numpy conditionals?