I followed a tutorial to put a rectangle around a detected face on the webcam. It works really good, but I want to draw an image like this: over the face. How can I do this? Code (I am running the opencv3 version)
Asked
Active
Viewed 899 times
-1

Noah Christopher
- 166
- 1
- 13

Noah Cristino
- 757
- 8
- 29
-
Check [this answer](http://stackoverflow.com/a/37198079/3962537) out for inspiration. – Dan Mašek Nov 19 '16 at 19:02
1 Answers
3
Solved. I used this where frame was the webcam and x_offset and y_offset were the offsets from the face track function.
s_img = cv2.imread("iron.jpg")
l_img = frame
l_img[y_offset:y_offset+s_img.shape[0], x_offset:x_offset+s_img.shape[1]] = s_img

Noah Cristino
- 757
- 8
- 29