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.