This project uses two screens-
Screen1 uses a formula to estimate the distance between two locations on an object in the distance.
It needs to know how many normal steps there are between the camera and the object and the distance between points (in pixels) on a picture of that object.
PhotoTagSCR screen gets a picture returned by the device's camera and calculates the pixel distance between two points tagged by the user on a canvas containing the picture.
That value is returned to Screen1.



Screen1 blocks: use a formula to determine size based on the number of steps between the camera and an object and the object's relative size in pixels in a photo

PhotoTagSCR blocks: mark two points on a picture and determine the distance in pixels between them using the distance formula

Note that the project is designed so it can be tested with screen switching during development (data is shared between screens with TinyDB.)
Once the app is loaded into your device via the Companion app, you can test the app anywhere as long as you don't exit the app.
Possible enhancements you could add:
- user calibration option to allow for different walking step lengths
- using two GPS waypoints to mark the distance from camera to object
- maintaining a gallery of saved images which could be tagged again to measure other parts of the picture
- allowing the user to get distances for any number of objects in the current picture