I am trying to obtain the distance between mobile and object for an application where I want to convert a 2D photograph to 3D object, I have the following doubts:
- Is there a way to get the distance between the lens of the mobile phone and the object that is being photographed?
- We can determine the focal length of the lens present inside the mobile in a similar way do we have depth sensor present inside the mobile-phone?
- Is the depth sensor present in all mobile-phones?
Stuff like direction and orientation of mobile-phone can be obtained using sensors present inside the phone. If there's no depth sensor present, how to measure distance using a phone itself?