Overlaying images over eyes

Can u please suggest some resource where we can refer to for guidance regarding this assignment. I googled but was not able to find anything of much use. Please reply fast I tried a lot

Hi,
Please share your code cb.lk/ide . I would look if we you are not doing any mistake.
If you just want code overlaying part. Here it is :

x,y,w,h=eyes[0]

overlay=cv2.resize(overlay,(h,w))

for i in range(overlay.shape[0]):
    for j in range(overlay.shape[1]):
        if(overlay[i,j,3]>0):
            fullimg[y+i,x+j,:]=overlay[i,j,:-1]

Here is my code

Hey,
Everything is fine just some minor changes.

  1. No need to detect face.
  2. No need to convert BGR to BGRA

Rest everything is same.
I am adding a code for specs, it would help you to do mustache on your own.

Hope this help.
Thanks :slight_smile:

this error pops up again and again. I even downloaded a different frontalEyes XML file but still, the error remained.
Please do something I don’t know what the problem is

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.