How to turn a camera into a depth camera?


I want to build a depth camera that finds out any image from particular distance. I have already read the following link.


But couldn't understand clearly which hardware requirements need & how to integrated into all together?


Certainly, a depth sensor needs an IR sensor, just like in Kinect or Asus Xtion and other cameras available that provides the depth or range image. However, Microsoft came up with machine learning techniques and using algorithmic modification and research which you can find here. Also here is a video link which shows the mobile camera that has been modified to get depth rendering. But some hardware changes might be necessary if you make a standalone 2D camera into a new performing device. So I would suggest you to see the hardware design of the existing market devices as well.