Welcome to the forum!
You can use ImageJ for image comparison by calculation features. But I don’t know if anyone has tried it for face-recognition. I would suggest to look at Eigenfaces. This is a good way to do face recognition.
Since you are a computer science student you could even try to implement it as an imagej-command and add this functionality to ImageJ. Then you can use ImageJ for face recognition