I wonder if it would be possible to know the size of a room using image, I don't see anything about this subject, do you have some idea how it could be done?

  • $\begingroup$ Producing a floor plan (that's essentially what you want to do) using images is possible even if somewhat difficult, there are apps which do that. However, they work from collections of images taken from defined viewpoints, I don't think that working from just one image can work as there always are hidden areas that could have totally different geometry from the visible part of the room. $\endgroup$ – Hans-Martin Mosner Mar 12 '19 at 14:06

Welcome to AI.SE Hadrien!

A possible approach is:

  1. Gather many example images of rooms for which you know the square footage. Record the square footage of each room together with each image.
  2. Pick a machine learning model that is well suited to learning relationships between images and numerical outputs, like a Convolutional Neural Network.
  3. Train a machine learning model using an optimisation algorithm, like gradient decent. In the case of training a CNN, this algorithm starts by setting up the network with randomly chosen connection strengths between different 'simulated' neurons. It then exposes the network to an input image, and observes the number the network outputs in response. The algorithm then makes small adjustments to the strengths of the connections in the network, so that if the network were exposed to the image a second time, it would output a number that was less wrong (i.e. closer to the correct square footage). By repeating this process many thousands of times, and with many images, the network eventually becomes quite good at guessing the square footage of new images that it hasn't seen before.

In practice, the network is quite likely to pick up on any patterns in the images that correlate with square footage, not necessarily the ones you want. For example, it might pick up on, say, the fact that humans in the picture are usually a good object to guess at the scale of the rest of the room.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.