# US 2019/0172214 A1 · Measurement method and apparatus

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2019/0172214 A1
- Document ID: US20190172214A1
- Status: Published application
- Kind: A1
- Application number: 16/323,472
- Filed: 2017-05-31
- Published: 2019-06-06
- Earliest claimed: 2016-08-15
- Assignees: Hangzhou Hikvision Digital Technology Co., Ltd.
- Applicants: Hangzhou Hikvision Digital Technology Co., Ltd.
- Inventors: Xiaowang CAI; Fei XIAO; Hai YU; Meng FAN
- Web page: https://patentgrep.com/patent/US20190172214A1

## CPC

- G06T 7/70: Determining position or orientation of objects or cameras (camera calibration G06T7/80)
- G01C 3/12: with monocular observation at a single point, e.g. coincidence type (G01C3/20 takes precedence)
- G01C 11/30: by triangulation
- G06T 7/50: Depth or shape recovery
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G01C: MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY (measuring liquid level G01F; radio navigation, determining distance or velocity by use of propagation effects, e.g. Doppler effects, propagation time, of radio waves, analogous arrangements using other waves G01S)

## Abstract

A measurement method and apparatus are provided. The measurement method is applicable to an image acquisition device, and includes: acquiring image data to generate an image data file (S101); capturing an object to be measured in an image corresponding to the image data file (S102); obtaining a first distance between a horizontal line going through a lowest point of the object to be measured in the image and a horizontal line going through a center point of the image (S103); and calculating a second distance between the object to be measured and the image acquisition device based on the first distance, an installation height of the image acquisition device and a pitch angle of the image acquisition device (S104). Compared with the relevant art, the image acquisition device can measure the distance to an object to be measured while achieving relatively low production cost and easy installation. As a result, actual demands can be better satisfied.

## Claims

### Claim 1

A measurement method, applicable to an image acquisition device, comprising:
acquiring image data to generate an image data file;
capturing an object to be measured in an image corresponding to the image data file;
obtaining a first distance between a horizontal line going through a lowest point of the object to be measured in the image and a horizontal line going through a center point of the image; and
calculating a second distance between the object to be measured and the image acquisition device based on the first distance, an installation height of the image acquisition device and a pitch angle of the image acquisition device.

### Claim 2 (depends on 1)

The method according to claim 1, wherein, calculating a second distance between the object to be measured and the image acquisition device based on the first distance, an installation height of the image acquisition device and a pitch angle of the image acquisition device comprises:
calculating a third distance between a first target point and a center point of an imaging plane according to the first distance, wherein the first target point is on the imaging plane of an optical lens of the image acquisition device and corresponds to the lowest point;
calculating an angle between a first line and the ground according to the third distance and the pitch angle of the image acquisition device, wherein the first line goes through a physical position of the lowest point and an optical center of the optical lens; and
calculating the second distance between the object to be measured and the image acquisition device according to the angle between the first line and the ground, and the installation height of the image acquisition device.

### Claim 3 (depends on 1)

The method according to claim 1, wherein, after capturing an object to be measured in an image corresponding to the image data file, the method further comprises:
obtaining a fourth distance between a horizontal line going through a highest point of the object to be measured in the image and the horizontal line going through the center point of the image; and
after calculating the second distance between the object to be measured and the image acquisition device, the method further comprises:
calculating a height of the object to be measured based on the second distance, the fourth distance, the installation height of the image acquisition device, and the pitch angle of the image acquisition device.

### Claim 4 (depends on 3)

The method according to claim 3, wherein, calculating a height of the object to be measured based on the second distance, the fourth distance, the installation height of the image acquisition device, and the pitch angle of the image acquisition device comprises:
calculating a fifth distance between a second target point and a center point of an imaging plane according to the fourth distance, wherein the second target point is on the imaging plane of an optical lens of the image acquisition device and corresponds to the highest point;
calculating an angle between a third line and the ground according to the fifth distance and the pitch angle of the image acquisition device, wherein the third line goes through a physical position of the highest point and an optical center of the optical lens; and
calculating the height of the object to be measured according to the angle between the third line and the ground, the installation height of the image acquisition device, and the second distance.

### Claim 5 (depends on 3)

The method according to claim 3, wherein, obtaining a fourth distance between a horizontal line going through a highest point of the object to be measured in the image and the horizontal line going through the center point of the image comprises:
enclosing the object to be measured with a target rectangle, the target rectangle having a pair of sides parallel to the horizontal line going through the center point of the image, and being a rectangle with a minimum area among rectangles that can enclose the object to be measured; and
taking a distance between a side of the pair of sides that is farther from the ground and the horizontal line going through the center point of the image as the fourth distance.

### Claim 6 (depends on 5)

The method according to claim 5, wherein, before capturing an object to be measured in an image corresponding to the image data file, the method further comprises:
processing the image data file to change a bit width of the image data file to a set bit width.

### Claim 7 (depends on 3)

The method according to claim 3, wherein, calculating a height of the object to be measured based on the second distance, the fourth distance, the installation height of the image acquisition device, and the pitch angle of the image acquisition device comprises:
detecting whether the pitch angle of the image acquisition device changes;
if the pitch angle of the image acquisition device changes, correcting the pitch angle of the image acquisition device; and
calculating the height of the object to be measured based on the second distance, the fourth distance, the installation height of the image acquisition device, and the corrected pitch angle of the image acquisition device.

### Claim 8 (depends on 1)

The method according to claim 1, wherein, obtaining a first distance between a horizontal line going through the lowest point of the object to be measured in the image and a horizontal line going through a center point of the image comprises:
enclosing the object to be measured with a target rectangle, the target rectangle having a pair of sides parallel to the horizontal line going through the center point of the image and being a rectangle with a minimum area among rectangles that can enclose the object to be measured; and
taking a distance between a side of the pair of sides that is closer to the ground and the horizontal line going through the center point of the image as the first distance.

### Claim 9 (depends on 1)

The method according to claim 1, wherein, calculating a second distance between the object to be measured and the image acquisition device based on the first distance, an installation height of the image acquisition device and a pitch angle of the image acquisition device comprises:
detecting whether the pitch angle of the image acquisition device changes;
if the pitch angle of the image acquisition device changes, correcting the pitch angle of the image acquisition device; and
calculating the second distance between the object to be measured and the image acquisition device based on the first distance, the installation height of the image acquisition device, and the corrected pitch angle of the image acquisition device.

### Claim 10

A measurement apparatus, applicable to an image acquisition device, comprising:
an image acquisition module configured for acquiring image data to generate an image data file;
an image processing module configured for capturing an object to be measured in an image corresponding to the image data file;
a first measurement module configured for obtaining a first distance between a horizontal line going through a lowest point of the object to be measured in the image and a horizontal line going through a center point of the image; and
a second measurement module configured for calculating a second distance between the object to be measured and the image acquisition device based on the first distance, an installation height of the image acquisition device and a pitch angle of the image acquisition device.

### Claim 11 (depends on 10)

The apparatus according to claim 10, wherein, the second measurement module comprises:
a first calculating unit configured for calculating a third distance between a first target point and a center point of an imaging plane according to the first distance, wherein the first target point is on the imaging plane of an optical lens of the image acquisition device and corresponds to the lowest point;
a second calculating unit configured for calculating an angle between a first line and the ground according to the third distance and the pitch angle of the image acquisition device, wherein the first line goes through a physical position of the lowest point and an optical center of the optical lens; and
a third calculating unit configured for calculating the second distance between the object to be measured and the image acquisition device according to the angle between the first line and the ground, and the installation height of the image acquisition device.

### Claim 12 (depends on 10)

The apparatus according to claim 10, further comprising:
a third measurement module configured for obtaining, after the object to be measured in the image corresponding to the image data file is captured, a fourth distance between a horizontal line going through a highest point of the object to be measured in the image and the horizontal line going through the center point of the image; and
a fourth measurement module configured for calculating, after the second distance between the object to be measured and the image acquisition device is calculated, a height of the object to be measured based on the second distance, the fourth distance, the installation height of the image acquisition device, and the pitch angle of the image acquisition device.

### Claim 13 (depends on 12)

The apparatus according to claim 12, wherein, the fourth measurement module comprises:
a fourth calculating unit configured for calculating a fifth distance between a second target point and a center point of an imaging plane according to the fourth distance, wherein the second target point is on the imaging plane of an optical lens of the image acquisition device and corresponds to the highest point;
a fifth calculating unit configured for calculating an angle between a third line and the ground according to the fifth distance and the pitch angle of the image acquisition device, wherein the third line goes through a physical position of the highest point and an optical center of the optical lens; and
a sixth calculating unit configured for calculating the height of the object to be measured according to the angle between the third line and the ground, the installation height of the image acquisition device, and the second distance.

### Claim 14 (depends on 12)

The apparatus according to claim 12, wherein, the third measurement module comprises:
a first to-be-measured object processing unit configured for enclosing the object to be measured with a target rectangle, the target rectangle having a pair of sides parallel to the horizontal line going through the center point of the image, and being a rectangle with a minimum area among rectangles that can enclose the object to be measured; and
a first distance determining unit configured for taking a distance between a side of the pair of sides that is farther from the ground and the horizontal line going through the center point of the image as the fourth distance.

### Claim 15 (depends on 14)

The apparatus according to claim 14, further comprising:
a bit width change module configured for processing, before the object to be measured in the image corresponding to the image data file is captured, the image data file, so as to change a bit with of the image data file to a set bit width.

### Claim 16 (depends on 12)

The apparatus according to claim 12, wherein, the fourth measurement module comprises:
a first pitch angle detecting unit configured for detecting, before the height of the object to be measured is calculated, whether the pitch angle of the image acquisition device changes;
a first pitch angle correcting unit configured for correcting the pitch angle of the image acquisition device when the pitch angle of the image acquisition device changes; and
a height calculating unit configured for calculating the height of the object to be measured based on the second distance, the fourth distance, the installation height of the image acquisition device, and the corrected pitch angle of the image acquisition device.

### Claim 17 (depends on 10)

The apparatus according to claim 10, wherein, the first measurement module comprises:
a second to-be-measured object processing unit configured for enclosing the object to be measured with a target rectangle, the target rectangle having a pair of sides parallel to the horizontal line going through the center point of the image and being a rectangle with a minimum area among rectangles that can enclose the object to be measured; and
a second distance determining unit configured for taking a distance between a side of the pair of sides that is closer to the ground and the horizontal line going through the center point of the image as the first distance;
or, wherein, the second measurement module comprises:
a second pitch angle detecting unit configured for detecting, before the second distance between the object to be measured and the image acquisition device is calculated, whether the pitch angle of the image acquisition device changes;
a second pitch angle correcting unit configured for correcting the pitch angle of the image acquisition device when the pitch angle of the image acquisition device changes; and
a distance calculating unit configured for calculating the second distance between the object to be measured and the image acquisition device based on the first distance, the installation height of the image acquisition device, and the corrected pitch angle of the image acquisition device.

### Claim 18

(canceled)

### Claim 19 (depends on 10)

The apparatus according to claim 10, further comprising:
an alarm module configured for outputting an alarm signal when the second distance is smaller than a preset distance threshold, or
a display module configured for displaying, in the image, the second distance and the height of the object to be measured.

### Claim 20

(canceled)

### Claim 21 (depends on 1)

A non-transitory storage medium for storing an executable program code, which, when executed, performs the measurement method according to claim 1.

### Claim 22

(canceled)

### Claim 23

An image acquisition device, comprising:
a processor, a memory, a communication interface and a bus, wherein
the processor, the memory and the communication interface connect and communicate with each other via the bus;
the memory is configured for storing an executable program code;
the processor is configured for executing a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to perform the operations comprising:
acquiring image data to generate an image data file;
capturing an object to be measured in an image corresponding to the image data file;
obtaining a first distance between a horizontal line going through a lowest point of the object to be measured in the image and a horizontal line going through a center point of the image; and
calculating a second distance between the object to be measured and the image acquisition device based on the first distance, an installation height of the image acquisition device and a pitch angle of the image acquisition device.
