Streaming Face Detection, Training, Recognition

Demonstrates live acquisition, detection, training, and recognition of faces!
10.8K Downloads
Updated 25 Aug 2016

View License

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
Created with R2014b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
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.