Face Tracking and Image Overlay
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.
Cite As
Ye Cheng (2024). Face Tracking and Image Overlay (https://www.mathworks.com/matlabcentral/fileexchange/48910-face-tracking-and-image-overlay), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Image Processing and Computer Vision > Computer Vision Toolbox > Recognition, Object Detection, and Semantic Segmentation > Object Detection Using Features > Face Detection >
- Gaming > Holidays / Seasons > Christmas / Winter >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.