Compatible with Android 11.
The distance to the object is understood only from the input of the size of the object, and suitable of the line on the screen. Both width and height are possible.