hi i wrote a face & eye detection code next step is put an image to the coordinates of the detected eye (for ex: eye patch, eye glasses) i couldn't find the function to combine the source frame and the image I want to add
any suggestions
thanks
hi i wrote a face & eye detection code next step is put an image to the coordinates of the detected eye (for ex: eye patch, eye glasses) i couldn't find the function to combine the source frame and the image I want to add
any suggestions
thanks
You can use cvCopy with a mask to do this. If the the images do not have the same height and width set the ROI of the destination image before using cvCopy.
See OpenCV documentation: