can you just please tell how the glasses are overlayed on the image in this snippet–>
for i in range(glass.shape[0]):
for j in range(glass.shape[1]):
if(glass[i,j,3]>0):
img[y+i,x+j,:]=glass[i,j,:-1]
i checked out some blog over it but all they said was the meaning,and to implement it using addweighted function, please explain about this also