OpenCV, combining the image with another image at the given coordinates

I wrote a face and eye detection code, the next step is placing the image in the coordinates of the detected eye (for example: eye patch, glasses) I could not find a function for combining the original frame and the image I want to add

any suggestions

thanks

+3
source share
1 answer

For this you can use cvCopy with a mask . If the images do not have the same height and width, set the ROI of the target image before using cvCopy.

See the OpenCV documentation:

+4
source

Source: https://habr.com/ru/post/1720063/


All Articles