Ask Your Question

ryanluf's profile - activity

2016-11-16 09:24:00 -0500 commented answer Displaying an image (in a specified location) over a video stream

Yes, so I am using the Haar Cascades to display a circle over the video stream. However, I want to replace the circle with a photoshopped image and that's where I am having trouble. Thank you

2016-11-16 08:47:08 -0500 commented answer Displaying an image (in a specified location) over a video stream

Hi Balaji, I actually want to place an image over a webcam stream (video).. This seems to be harder. I have a captureFrame that constantly updates but I am not sure how to apply the image on top of the video..

2016-11-15 15:31:14 -0500 asked a question opencv/C++: Place a saved image over a webcam stream with facial recognition

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].width0.5, faces[i].y + faces[i].height0.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!

2016-11-15 15:31:14 -0500 asked a question Displaying an image (in a specified location) over a video stream

Hi I am having trouble figuring out what function to use to display an image (test_image.jpg) over my webcam stream, sort of like a filter over the users face.

I have already figured out how to implement facial detection and I am able to display a circle over the face and as the face moves the image moves as well, but I want to know how to put an image over the face instead of the circle.

This is what I have to display a circle over the face:

Point center = Point(faces[i].x + faces[i].width0.5, faces[i].y + faces[i].height0.45);

circle(captureFrame, center, faces[i].width / 1.65, cvScalar(255, 0, 0, 0), 50, 8, 0);

imshow("outputFrame", captureFrame);

Thank you so much for the help!!