I was trying to do face recognition with ColdFusion and JJIL Java library last week. Today I gave Jviolajones library a stab and it turn out quite well. It misses some faces, occasionally returns false positive results, but overall it did a sweet job. My final goal is to create thumbnails of images cropped around faces, not extremely crucial face detection. Jviolajones seems to be a good candidate for that.
Jviolajones uses OpenCV Haar cascade files, but unlike JJIL you can use OpenCV Haar xml files without any minification. The main face detection function getFaces() takes few parameters in, with that you can change the face detection sensitivity. That is bit less than optimal feature in a production environment, but we can set it to a reasonable value and forget it.
I compiled the source code in GitHub and you can download all the CF files and Jar files at the end of this post. Jviolajones jar file in Google Code seems to be an older version. Here is my Railo code. Update CreateObject() function in line 1, copy jar files into your CF server or load it with JavaLoader if you are using Adobe ColdFusion.
Unlike with my JJIL experiment, this detected all three faces.
This misses few faces, but it is fine.
Here is a false positive detection and it misses a face. You can change this with getFaces() parameters, but it can effect different size images. Also better trained Hass file do a better detection. Try different hass files, if you have one, share.
Jviolajones speed is quite good.