| CPC G01C 11/04 (2013.01) [G06T 3/4038 (2013.01); G06T 7/62 (2017.01); G06V 10/761 (2022.01)] | 6 Claims |

|
1. An electronic apparatus for performing a method of calculating an actual distance between coordinates in an image, the electronic apparatus comprising:
a memory configured to store a program that calculates an actual distance between coordinates in an image; and
a processor configured to execute the program
wherein the processor is configured to:
generate a regular image for an original image captured by a camera based on an intrinsic parameter of the camera and pose information of the camera;
calculate, based on first coordinates in the regular image, first world coordinates corresponding to the first coordinates in a preset world coordinate system;
calculate, based on second coordinates in the regular image, second world coordinates corresponding to the second coordinates in the world coordinate system; and
calculate a distance between the first world coordinates and the second world coordinates,
wherein the processor is further configured to:
receive reference coordinates on the regular image together with a bottom surface shift input from the user,
calculate reference world coordinates in the world coordinate system corresponding to the reference coordinates when the bottom surface shift input and the reference coordinates are received,
output a user interface (UI) for receiving height information about the reference world coordinates,
receive the second coordinate representing the height information from the user through the UI, and
calculate the second world coordinate corresponding to the second coordinate,
wherein the reference world coordinates and the second world coordinates have a same plane position and different heights in the world coordinate system.
|