Jetson Xavier NX Lesson 15: Training the Face Recognition Program to Recognize People

In this video lesson we should you a simple method to train our face recognizer on larger data sets. We use the python os.walk command to step through, and train automatically on all the training images in our folder. We then show how to store our training set to our SD card using the pickle utility. This allows us to train once, and use the trained model over and over.

For your convenience, the code below is what we developed to allow training our face recognition model.

Then this is a simple program that loads the trained model, and uses it to recognize people in unknown images.