Journal / Engineering
How we measure a room from one photo
A phone camera has no idea how big your living room is. Here is how Roomcast works it out anyway, and where it still needs your tape measure.
Every room plan starts with the same problem. A photo is flat, and flat things lie about size. A small chair close to the lens looks bigger than a sofa across the room. So before Roomcast draws anything, it needs one thing it can trust.
Start with what never changes
Doors are our ruler. Most interior doors in Europe sit between 198 and 204 centimetres tall, and their frames are easy to find in a photo. Once we know the door, we know the scale of the wall it sits in.
No door in the shot? We fall back to light switches, skirting boards and floor tiles, each with its own typical size. The app tells you which one it used, so you can check it.
A good plan is honest about what it guessed. Ours marks every guessed number in violet until you confirm it.
Corners do the heavy lifting
A corner gives three edges meeting at one point: two walls and the floor. From their angles we find the floor plane and the camera height. With the scale from the door, every other edge in the photo turns into a length.
We run this on the phone, not on a server. The model is small, about 18 MB, and finishes in under two seconds on a three-year-old handset. Your photos never leave the device unless you share the plan.
Where you still need a tape
Kitchens. A worktop that is two centimetres too long does not fit at all, so for fitted furniture we ask you to type the key sizes in. Roomcast then snaps the rest of the plan around your numbers, using locked edges that photo capture never moves.
We are working on a second pass that uses your phone's depth sensor where it has one. Early tests bring the typical error down to under a centimetre. We will write about it here when it ships.