This submission contains:
1) A script (santaCam.m) that turns anyone in a live webcam into Santa Claus.
The script obtains live webcam feed, identifies human face features, tracks the position of the face, and adds images of a Santa hat and beard on top of it.
Minor modification to the code can turn this into a beard cam, face tattoo cam, wig cam, mask cam…The options are endless, and are only limited by your imagination.
2) A function (imoverlay.m) that overlays a second image on top of an original one.
The images can be RGB or grayscale, and the image on top will be automatically cropped if its region exceeds the original image.
Ye Cheng (2021). Face Tracking and Image Overlay (https://www.mathworks.com/matlabcentral/fileexchange/48910-face-tracking-and-image-overlay), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!