# US 2022/0044433 A1 · Method and system for distance measurement based on binocular camera, device and computer-readable storage medium

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

- Number: US 2022/0044433 A1
- Document ID: US20220044433A1
- Status: Published application
- Kind: A1
- Application number: 17/124,028
- Filed: 2020-12-16
- Published: 2022-02-10
- Earliest claimed: 2020-08-04
- Assignees: Beijing Smarter Eye Technology Co. Ltd.
- Applicants: Beijing Smarter Eye Technology Co. Ltd.
- Inventors: Feng CUI; Zhao SUN; Yongcai LIU; Shanshan PEI; Jian LI
- Web page: https://patentgrep.com/patent/US20220044433A1

## CPC

- G06T 7/593: from stereo images
- G06T 7/80: Analysis of captured images to determine intrinsic or extrinsic camera parameters, i.e. camera calibration
- H04N 13/204: using stereoscopic image cameras (stereoscopic photography G03B35/00)
- G06T 2207/10012: Stereo images
- G06T 2207/30204: Marker
- H04N 2013/0081: {Depth or disparity estimation from stereoscopic image signals}
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

The present disclosure provides a method for distance measurement based on a binocular camera, a system for distance measurement based on a binocular camera, a device and a computer-readable storage medium. The method includes: taking N images of a distance measurement marker placed at each of Z positions in a depth direction of the binocular camera; calculating an average disparity of the distance measurement marker at the middle position, the left side position and the right side position at each of the Z positions; calculating a distance measurement value at each of the Z positions in the depth direction; calculating a distance measurement error value at the middle position, the left side position and the right side position at each of the Z positions, and acquiring a total error cost function; and calculating extrinsic parameters, so as to acquire a distance measurement result in the depth direction.

## Claims

### Claim 1

A method for distance measurement based on a binocular camera, comprising:
taking N images of a distance measurement marker placed at each of Z positions in a depth direction of the binocular camera, the distance measurement marker being placed at a middle position, a left side position and a right side position of a horizontal width of the binocular camera, Z and N each being an integer greater than 1;
calculating an average disparity of the distance measurement marker at the middle position, the left side position and the right side position at each of the Z positions;
calculating a distance measurement value at each of the Z positions in the depth direction in accordance with a base line of the binocular camera, a focal length of the binocular camera, and the average disparity;
calculating a distance measurement error value at the middle position, the left side position and the right side position at each of the Z positions, and acquiring a total error cost function in accordance with the distance measurement error value at each of the Z positions; and
calculating extrinsic parameters, comprising translation matrix T and a rotation matrix R, in the case that the total error cost function has a minimum value, so as to acquire a distance measurement result in the depth direction.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the distance measurement value at each of the Z positions in the depth direction is calculated in accordance with the base line of the binocular camera, the focal length of the binocular camera, and the average disparity through a formula
z
=
b
⁢
f
d
,
where b represents the base line of the binocular camera, f represents the focal length of the binocular camera, d represents the average disparity, and z represents the distance measurement value in the depth direction.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the distance measurement error value at the middle position, the left side position and the right side position at each of the Z positions is calculated through a formula Ekz=Zkz−Zoz, where z represents a distance measurement value at each of the Z positions, k represents the middle position, the left side position and the right side position at each of the Z positions, Z0=D1, D2, D3, . . . , Dmax, and Z0 represents a standard distance measurement position.

### Claim 4 (depends on 1)

The method according to claim 1, wherein the extrinsic parameters, comprising the translation matrix T and the rotation matrix R, are calculated in the case that the total error cost function has a minimum value through a formula [R,T]=arg minR,TΣzΣkEkz, and the total error cost function is E(R,T)=ΣzΣkEkz.

### Claim 5

A system for distance measurement based on a binocular camera, comprising:
a photographing module configured to take N images of a distance measurement marker placed at each of Z positions in a depth direction of the binocular camera, the distance measurement marker being placed at a middle position, a left side position and a right side position of a horizontal width of the binocular camera, Z and N each being an integer greater than 1;
an average disparity calculation module configured to calculate an average disparity of the distance measurement marker at the middle position, the left side position and the right side position at each of the Z positions;
a depth direction distance measurement value calculation module configured to calculate a distance measurement value at each of the Z positions in the depth direction in accordance with a base line of the binocular camera, a focal length of the binocular camera, and the average disparity;
a total error cost calculation module configured to calculate a distance measurement error value at the middle position, the left side position and the right side position at each of the Z positions, and acquire a total error cost function in accordance with the distance measurement error value at each of the Z positions; and
an extrinsic parameter calculation module configured to calculate extrinsic parameters, comprising a translation matrix T and a rotation matrix R, in the case that the total error cost function has a minimum value, so as to acquire a distance measurement result in the depth direction.

### Claim 6 (depends on 5)

The system according to claim 5, wherein the depth direction distance measurement value calculation module is further configured to calculate the distance measurement value in the depth direction through a formula
z
=
b
⁢
f
d
,
where b represents the base line of the binocular camera, f represents the focal length of the binocular camera, d represents the average disparity, and z represents the distance measurement value in the depth direction.

### Claim 7 (depends on 5)

The system according to claim 5, wherein the total error cost calculation module is further configured to calculate the distance measurement error value through a formula Ekz=Zkz−Zoz, where z represents a distance measurement value at each of the Z positions, k represents the middle position, the left side position and the right side position at each of the Z positions, Z0=D1, D2, D3, . . . , Dmax, and Z0 represents a standard distance measurement position.

### Claim 8 (depends on 5)

The system according to claim 5, wherein the extrinsic parameter calculation module is further configured to calculate the extrinsic parameters, comprising the translation matrix T and the rotation matrix R, through a formula [R,T]=arg minR,TΣzΣkEkz, and the total error cost function is E(R,T)=ΣzΣkEkz.

### Claim 9

A device, comprising a data collection unit, a processor and a memory, wherein the data collection unit is configured to collect data, the memory is configured to store therein one or more program instructions, and the processor is configured to execute the one or more program instructions so as to implement the above-mentioned method.

### Claim 10 (depends on 1)

A computer-readable storage medium storing therein one or more program instructions for implementing the method for distance measurement based on a binocular camera according to claim 1.

### Claim 11 (depends on 2)

A computer-readable storage medium storing therein one or more program instructions for implementing the method for distance measurement based on a binocular camera according to claim 2.

### Claim 12 (depends on 3)

A computer-readable storage medium storing therein one or more program instructions for implementing the method for distance measurement based on a binocular camera according to claim 3.

### Claim 14 (depends on 4)

A computer-readable storage medium storing therein one or more program instructions for implementing the method for distance measurement based on a binocular camera according to claim 4.
