Unfortunately, without (perhaps a lot) more specification, I don't think we'll be able to give you a simple approach that works. For example, what distance range are you anticipating being from the walls? (Too close, and there are no 'lines' as you're just staring at the wall, not the corners it forms with other walls, the ceiling and floor.) Are the walls solid colors or could there be posters, wallpaper, patterns, etc? Do closed doors and/or windows count as part of the 'wall'? What are the lighting conditions? Specular highlights, dim areas, etc. can cause colors to appear quite different.
And so on. I guess what I'm saying is: computer-vision is extremely hard in the general case. If your problem has specific settings that reduce the space of "all indoors" to something a little easier to make some assumptions about, we'll need to know them. If not, there probably is no 'simple' approach.