I've never actually worked with a camera, but I have a feeling identifying WALLS would be hard. I mean, identifying brightly colored things in front of a wall is (relatively) easy, but I don't think you'd be able to calculate distance with the camera (unless you had stereo vision). And even then it'd be a bunch of trig to figure it out.
A sharp IR would tell you IF there is an object, and how far away it is (assuming it's in the sharp IR's range). It's MUCH more simple.