×

Electronic device and method for measuring distance using image thereof

  • US 10,605,597 B1
  • Filed: 03/27/2019
  • Issued: 03/31/2020
  • Est. Priority Date: 12/24/2018
  • Status: Active Grant
First Claim
Patent Images

1. An electronic device, comprising:

  • an inertial-measurement unit, configured to detect a pitch angle of the electronic device;

    a camera device, configured to focus on a target object to capture an object image, wherein the camera device has a focusing-distance range, the focusing-distance range comprising an upper focusing distance and a lower focusing distance;

    a storage device, configured to store an operating system and an image-distance-measuring program; and

    a processor, configured to perform the image-distance-measuring program to perform the steps of;

    obtaining a lens-focal-length parameter corresponding to the object image from the operating system performed by the processor;

    calculating a plurality of terminal parameters corresponding to the pitch angle according to the lens-focal-length parameter and the pitch angle of the electronic device;

    converting the terminal parameters corresponding to the pitch angle to a plurality of linear parameters corresponding to the pitch angle; and

    calculating an object distance between the target object and the camera device according to a linear equation of the linear parameters, the upper focusing distance, and the lower focusing distance.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×