R – Creating 3D Model then determine dimensions


Are there any libraries that can take a few digital pictures of an object and create a 3d model of it.

For instance, I'd ideally like to let a user upload n pictures of an object and feed the pictures into something like photosynth to construct a model, then determine dimensions of said object.


Best Solution

What you're talking about is depth mapping, or 'disparity mapping', which is the basis of stereoscopic computer vision. The OpenCV project has libraries which do this. I don't know if they directly convert into a rotatable 3D object, which may be what you are looking for, but they probably come close.


The dimension part is a little harder. The libraries can identify objects, but that would just give you 'common' dimension. If you were using stereoscopic imaging with two cameras, you could determine real depth, and therefore dimensions, from multiple samples.

The problem is difficult, really difficult, otherwise (i.e., impossible.)

Related Question