How to measure the distance between the phone camera and an object?

Follow the full discussion on Reddit.
Guys please help me out, I'm working on my final year project which has a lot of components and one of these is to measure the distance between the camera(which records the surrounding) and the objects present in the surrounding, I looked up for YouTube videos using Python tensorflow and OpenCv but those don't seem to work and generate errors or maybe I just haven't found the right video yet.

Comments

There's unfortunately not much to read here yet...

Discover the Best of Machine Learning.

Ever having issues keeping up with everything that's going on in Machine Learning? That's where we help. We're sending out a weekly digest, highlighting the Best of Machine Learning.

Join over 900 Machine Learning Engineers receiving our weekly digest.

Best of Machine LearningBest of Machine Learning

Discover the best guides, books, papers and news in Machine Learning, once per week.

Twitter