OBJECT RECOGNITION BASED ON SHAPE AND FUNCTION