0

I am trying to figure out how to place a saved image over a webcam stream in C++.

The trick is that I want to place the image over a face and whenever the face moves, the image will move. I was able to draw a circle over a face with my code here:

Point center = Point(faces[i].x + faces[i].width*0.5, faces[i].y + faces[i].height*0.45);
circle(captureFrame, center, faces[i].width / 1.65, cvScalar(0, 0, 255, 0), 50, 8, 0);
imshow("outputCapture", captureFrame);  

However, I would like to display an image (test_image.jpg) over my captured webcam frame (captureFrame) on the person's face using the Point function to always find the center of the face.

Thank you very much for any help!

Ryan_L
  • 1

1 Answers1

0

Have a look at the Sikuki library by MIT:

http://sikulix-2014.readthedocs.io/en/latest/devs/system-design.html

Chris Halcrow
  • 28,994
  • 18
  • 176
  • 206
  • I would rather have all my functionality remain inside opencv, preferably using the ROI/Mat functionality somehow.. I am just not sure how – Ryan_L Nov 15 '16 at 20:56