how to measure real height and width of object and distance of object from camera using android

i have refered many of the links i'm not getting  how to do ,i need get the real height ,width and distance of object from camera like how face detection 'll work ,lf i put mark on object on image while taking picture i need to get all the values on the screen of camera of android phone

please let me know how i can do this exactly
shruti Aweb developerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David Johnson, CD, MVPOwnerCommented:
The Simple answer is that you can't.  You need a depth sensing camera to get distance.   A ruler/tape measure that is at the same depth as the object to be measured for size will give you the size of the object.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jackie ManIT ManagerCommented:
I have tried many apps which claim to be able to do what you want, but no apps can do measurements accurately which can be accepted.

Theoretically, it is possible if  you are taking a photo vertically above the object (and you know the vertical distance between your Android phone and the object) but there are many different cameras in different Android phones and no app developers will be able to develop an app which can work for different Android phones.

If an app developer design such app just for you, will you pay? I guess not.
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
To get the height and width you would need to have a known distance, the focal length of the lens and the size of the image in pixels (the size of the sensor).

If you are creating an app to do the math, you would need to extract all of the information from the device to create the calculation. It is not going to be easy, but it can be done if you can get your users to take a picture from either a) a preset distance or b) input the distance in your app.  

It will be in interesting puzzle for you to complete and as you can see, the ground work is there for you to work out the final app.
Bootstrap 4: Exploring New Features

Learn how to use and navigate the new features included in Bootstrap 4, the most popular HTML, CSS, and JavaScript framework for developing responsive, mobile-first websites.

David Johnson, CD, MVPOwnerCommented:
another complication will be the zoom factor of the camera,
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
If this is an app you are building, you can get the information about the camera David brings up a good point as there are lens add-ons you can buy. You would want your app to alert users to avoid adding the clip on lenses.
shruti Aweb developerAuthor Commented:
thanks to all of you for your more precious suggestions and responses .I ll try to do :)
David Johnson, CD, MVPOwnerCommented:
enough information to confirm an answer
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.