A distance measurement method, wherein the method comprises: receiving, by an electronic device (100; 1100; 1200), a first operation, wherein the first operation is used to start distance measurement on a measured target; displaying, by the electronic device (100; 1100; 1200), a first user interface on a display screen (132; 1230) in response to the first operation, wherein the first user interface is configured to display an image captured by a camera (131; 1240), and the image is captured by the camera (131; 1240) at any angle; receiving, by the electronic device (100; 1100; 1200), a second operation, wherein the second operation is an operation performed by a user based on the image; adding and displaying, by the electronic device (100; 1100; 1200), a first locating point on the first user interface in response to the second operation; performing, by the electronic device (100; 1100; 1200), distance measurement on the measured target based on the first locating point, to obtain a measurement result of the measured target; and displaying, by the electronic device (100; 1100; 1200), the measurement result, characterized in that the measured target is a person; the first locating point is used to indicate a location of a sole of the measured target; and the performing, by the electronic device (100; 1100; 1200), distance measurement on the measured target based on the first locating point, to obtain a measurement result of the measured target comprises: performing, by the electronic device (100; 1100; 1200), facial recognition on the image captured by the camera (131; 1240), and determining a second locating point by using said facial recognition, wherein the second locating point is used to indicate a location of the top of the head of the measured target; and performing, by the electronic device (100; 1100; 1200), distance measurement on the measured target based on the first locating point and the second locating point, to obtain the measurement result, wherein the measurement result is used to indicate a height of the measured target. receiving, by an electronic device (100; 1100; 1200), a first operation, wherein the first operation is used to start distance measurement on a measured target; displaying, by the electronic device (100; 1100; 1200), a first user interface on a display screen (132; 1230) in response to the first operation, wherein the first user interface is configured to display an image captured by a camera (131; 1240), and the image is captured by the camera (131; 1240) at any angle; receiving, by the electronic device (100; 1100; 1200), a second operation, wherein the second operation is an operation performed by a user based on the image; adding and displaying, by the electronic device (100; 1100; 1200), a first locating point on the first user interface in response to the second operation; performing, by the electronic device (100; 1100; 1200), distance measurement on the measured target based on the first locating point, to obtain a measurement result of the measured target; and displaying, by the electronic device (100; 1100; 1200), the measurement result, characterized in that the measured target is a person; the first locating point is used to indicate a location of a sole of the measured target; and the performing, by the electronic device (100; 1100; 1200), distance measurement on the measured target based on the first locating point, to obtain a measurement result of the measured target comprises: performing, by the electronic device (100; 1100; 1200), facial recognition on the image captured by the camera (131; 1240), and determining a second locating point by using said facial recognition, wherein the second locating point is used to indicate a location of the top of the head of the measured target; and performing, by the electronic device (100; 1100; 1200), distance measurement on the measured target based on the first locating point and the second locating point, to obtain the measurement result, wherein the measurement result is used to indicate a height of the measured target. performing, by the electronic device (100; 1100; 1200), facial recognition on the image captured by the camera (131; 1240), and determining a second locating point by using said facial recognition, wherein the second locating point is used to indicate a location of the top of the head of the measured target; and performing, by the electronic device (100; 1100; 1200), distance measurement on the measured target based on the first locating point and the second locating point, to obtain the measurement result, wherein the measurement result is used to indicate a height of the measured target.