Object Recognition for Flexible Assembly Using Stereo Vision