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:
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?
here's something that I found useful. Not sure about android devices but ios can do it with truedepth https://developer.apple.com/documentation/avfoundation/cameras_and_media_capture/streaming_depth_data_from_the_truedepth_camera