
ColdFusion

ColdFusion
Introduction
Thanks to a blog post by Todd Sharp I found out about a Java library that could be used in ColdFusion for facial recognition. Which is just plain cool on its own and I’m sure several web applications would make use of it. Todd had only got as far as face detection and hadn’t made it as far as storing the data in a database and using it for recognition of new faces.
I’ve managed to cobble together with some really rough code a ColdFusion component that makes using the Java library a little easier. Plus some even rougher code as an example of using it.
Project page and download
When I get time I’ll try and tidy up the example and improve the component. But for now it’s more of a proof of concept. Enjoy.

I don’t have time to check out your code at the moment but I’ll be sure to check later. Just curious though – have you gotten the recognition bits working?
Yeah, recognition is working. The example I’ve got will allow you to upload an image, it’ll detect faces, save them to the database (Faint’s) and then attempt to recognise them. You end up with a list of named faces that you’ve entered before and a score out of 100 for each.
I’m sure you’ll spot plenty of places it could be improved. It was a rush job of trial and error as I was going along.
Sounds really cool. I think someone is gonna be demoing some of Todd’s code at our next CFUG (it’s a show n’ tell session). cfcFaint sounds pretty awesome.
Thanks Ben. It’s very rough at the moment but it does work. I’ll tidy it up when I get chance and I need to find a better way of assigning names to matched faces as I have to store the unknown matches in the database initially.
I’m the guy that will be demoing Todd’s proof of concept at the NYCFUG meeting tomorrow. It’s a little too late to work in your cfc but I’ll mention that they can go to RIAForge to grab it. Very cool stuff, Dave.
Shame I couldn’t release it sooner. Glad to get a mention though and hope it goes well.
By the way, if anyone at the usergroup has compiled java code before, point them here. I need a hand with faint since the database save location is hardcoded.