April 2017
Beginner to intermediate
250 pages
6h 28m
English
You could potentially add a command-line based method that processes input files and saves them to the disk, or even perform face detection, face preprocessing and/or face recognition as a web service, and so on. For these types of projects, it is quite easy to add the desired functionality by using the save and load functions of the FaceRecognizer class. You may also want to save the trained data and then load it on the program's start up.
Saving the trained model to an XML or YML file is very easy:
model->save("trainedModel.yml");
You may also want to save the array of preprocessed faces and labels, if you want to add more data to the training set later.
For example, here is some sample code ...
Read now
Unlock full access