CPC G06T 7/62 (2017.01) [G06T 2207/20224 (2013.01); G06T 2207/30204 (2013.01)] | 17 Claims |
1. A mobile terminal comprising:
a camera;
a processor configured to:
determine whether two markers attached, respectively, to two doors are present in an image captured through the camera;
when the two markers are determined to be present in the image, acquire center points of the two markers;
acquire a y-axis pixel distance difference between the acquired center points; and
estimate a height difference between the two doors based on the acquired y-axis pixel distance difference,
wherein the processor, when the two markers are determined to be not present in the image, is configured to:
extract upper edges of the two doors from the image;
extract a plurality of straight lines from the extracted upper edges;
extract a first matched straight line corresponding to a first door and a second matched straight line corresponding to a second door from the plurality of extracted straight lines; and
estimate, as the height difference, a y-axis distance difference between the first matched straight line and the second matched straight line.
|