Quantcast
Channel: OpenCV Q&A Forum - Latest question feed
Viewing all articles
Browse latest Browse all 19555

opencv/C++: Place a saved image over a webcam stream with facial recognition

$
0
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!

Viewing all articles
Browse latest Browse all 19555

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>