Generic object recognition engine.