Neat. This set me off on a search of what people are doing with automated Lego brick recognition and sorting. Apparently it is a diverse field with no solid solutions yet, as predictably, the 3D image recognition challenge is the largest. It is pretty cool to see someone's solution that involves building the robotics side of their solution entirely out of Mindstorms NXT parts [1].
[1] http://forum.kerbalspaceprogram.com/index.php?/topic/8580-a-...