Streaming Face Detection, Training, Recognition
Just connect a webcam to your computer and run "streamingFaceRecognition." This demo program:
• Initializes the webcam and starts a streaming preview of the audience;
• automatically detects faces;
• captures a specified number of qualified face images;
• writes them to an auto-created, labeled subdirectory;
• asks (in a while loop) if you want to capture another face;
• prompts one to (optionally) provide names for the faces;
• automatically and quickly trains a recognizer.
With no downtime, continue to point the camera at the audience and detected faces will be AUTOMATICALLY LABELED!!!
Cite As
Brett Shoelson (2024). Streaming Face Detection, Training, Recognition (https://www.mathworks.com/matlabcentral/fileexchange/49914-streaming-face-detection-training-recognition), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Image Processing and Computer Vision > Computer Vision Toolbox > Camera Calibration >
- Test and Measurement > Image Acquisition Toolbox > Device Connection >
- Image Processing and Computer Vision > Image Acquisition Toolbox > Device Connection >
- Test and Measurement > Image Acquisition Toolbox > Image Acquisition Toolbox Supported Hardware >
- Image Processing and Computer Vision > Image Acquisition Toolbox > Image Acquisition Toolbox Supported Hardware >
- Image Processing and Computer Vision > Computer Vision Toolbox > Recognition, Object Detection, and Semantic Segmentation > Object Detection Using Features > Face Detection >
- Image Processing and Computer Vision > Computer Vision Toolbox > Computer Vision Toolbox Supported Hardware >
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.
Version | Published | Release Notes | |
---|---|---|---|
2.1.0.0 | The files are the same; I simply added a "README" Doc that explains the algorithm behind the functionality herein. |
||
2.0.0.0 | I changed preprocessing and capture defaults to improve performance in a wider range of settings. Now captures 8 images per person (by default), and gives you an opportunity to discard bad captures. Should be faster and better. |
||
1.4.0.0 | Fixes an occasional error-triggering problem with mismatched image sizes. Should be more robust now. |
||
1.3.0.0 | Based on some of the comments I received, I modified some of the default parameters and fixed a couple of minor bugs. I believe that this version will be faster, and may even give better performance, than the first version. |
||
1.1.0.0 | Omits an unnecessary file. |