SfM can reconstruct the 3D shape of an object with high accuracy if there are many feature points on the surface to be measured. However, in the field of architecture, there is a problem that building surfaces are beautifully preserved and the shape cannot be reconstructed because of the small number of feature points. In this study, we proposed a method to improve the measurement accuracy of SfM by projecting a random pattern on a wall surface and distributing a large number of feature points. Experiments confirmed that the measurement accuracy was as good as that of a laser scanner.