sir plz explain the portion of code in this link-https://ide.codingblocks.com/s/311289
Line no. 17 to 25 in the whole code-:
Whole code is in this link-https://ide.codingblocks.com/s/308142
Snapchat filters challenge
Hey @pandeyaman461,
When your read glasses image using this statement
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 bgra. 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.