Recognition of Planar Object in Stack via Local Prediction Consistency