# US 2024/0177330 A1 · Camera calibration and distance measurement using parallel lines

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

- Number: US 2024/0177330 A1
- Document ID: US20240177330A1
- Status: Published application
- Kind: A1
- Application number: 18/516,070
- Filed: 2023-11-21
- Published: 2024-05-30
- Earliest claimed: 2022-11-23
- Assignees: Johnson Controls Tyco IP Holdings LLP
- Applicants: Johnson Controls Tyco IP Holdings LLP
- Inventors: Amit ROZNER; Yohai Falik; Calanit Dotan
- Web page: https://patentgrep.com/patent/US20240177330A1

## CPC

- G06T 7/60: Analysis of geometric attributes
- G06T 7/50: Depth or shape recovery
- G06T 7/536: from perspective effects, e.g. by using vanishing points
- G06T 7/73: using feature-based methods
- G06T 7/80: Analysis of captured images to determine intrinsic or extrinsic camera parameters, i.e. camera calibration
- H04N 17/002: {for television cameras}
- G06T 2207/30196: Human being; Person
- G06T 2207/30204: Marker
- G06T 2207/30232: Surveillance
- G06T 2207/30244: Camera pose
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

Example implementations include a method, apparatus and computer-readable medium for estimating a real world distance in an image, comprising obtaining an image from a camera installed in an environment and identifying, in the image, a first set of parallel lines on a real world ground plane and a second set of parallel lines on the real world ground plane. The implementations include determining a first intersection point of the first set of parallel lines and a second intersection point of the second set of parallel lines, identifying a ground line connecting the first intersection point and the second intersection point, and estimating an internal camera matrix based on a focal length and an image size associated with the camera. The implementations include calibrating the camera for real world distance measurement by determining a perpendicular vector to the ground line based on the internal camera matrix.

## Claims

### Claim 1

A method for estimating a real world distance in an image, comprising:
obtaining an image from a camera installed in an environment;
identifying, in the image, a first set of parallel lines on a real world ground plane and a second set of parallel lines on the real world ground plane;
determining a first intersection point of the first set of parallel lines mapped on an image plane and a second intersection point of the second set of parallel lines mapped on the image plane;
identifying a ground line connecting the first intersection point and the second intersection point;
estimating an internal camera matrix based on a focal length and an image size associated with the camera; and
calibrating the camera for real world distance measurement by determining a perpendicular vector to the ground line based on the internal camera matrix.

### Claim 2 (depends on 1)

The method of claim 1, wherein the image or a subsequent image from the camera of the environment includes a first object having a known height and a second object having an unknown height, further comprising:
determining a height metric of the second object using the perpendicular vector to the ground line and the known height of the first object.

### Claim 3 (depends on 2)

The method of claim 2, wherein determining the height metric of the second object comprises:
determining an intersection between the ground line and a vector passing through a first ground point on the first object and a second ground point on the second object;
calculating a virtual line in a plane comprising the first object and the second object that is perpendicular to the ground line and includes the intersection;
determining a homography matrix that transforms the virtual line to a canonical form;
calculating a first rectified top point on the first object and second rectified top point on the second object using the homography matrix; and
calculating the height metric of the second object based on the first rectified top point and the first ground point of the first object and the second rectified top point and the second ground point of the second object.

### Claim 4 (depends on 2)

The method of claim 2, wherein the height metric of the second object is proportional to the known height of the first object.

### Claim 5 (depends on 2)

The method of claim 2, wherein the first object is a stationary object in the environment.

### Claim 6 (depends on 1)

The method of claim 1, wherein the first set of parallel lines intersect with the second set of parallel lines.

### Claim 7 (depends on 1)

The method of claim 1, wherein the first set of parallel lines are perpendicular to the second set of parallel lines in the real world ground plane.

### Claim 8

An apparatus for estimating a real world distance in an image, comprising:
one or more memories; and
one or more processors coupled with the one or more memories, wherein the one or more processors are configured, individually or in combination, to:
obtain an image from a camera installed in an environment;
identify, in the image, a first set of parallel lines on a real world ground plane and a second set of parallel lines on the real world ground plane;
determine a first intersection point of the first set of parallel lines and a second intersection point of the second set of parallel lines;
identify a ground line connecting the first intersection point and the second intersection point;
estimate an internal camera matrix based on a focal length and an image size associated with the camera; and
calibrate the camera for real world distance measurement by determining a perpendicular vector to the ground line based on the internal camera matrix.

### Claim 9 (depends on 8)

The apparatus of claim 8, wherein the image or a subsequent image from the camera of the environment includes a first object having a known height and a second object having an unknown height, wherein the processor is further configured to:
determine a height metric of the second object using the perpendicular vector to the ground line and the known height of the first object.

### Claim 10 (depends on 9)

The apparatus of claim 9, wherein to determine the height metric of the second object comprises to:
determine an intersection between the ground line and a vector through a first ground point on the first object and a second ground point on the second object;
calculate a virtual line in a plane comprising the first object and the second object that is perpendicular to the ground line and includes the intersection;
determine a homography matrix that transforms the virtual line to a canonical form;
calculate a first rectified top point on the first object and second rectified top point on the second object using the homography matrix; and
calculate the height metric of the second object based on the first rectified top point and the first ground point of the first object and the second rectified top point and the second ground point of the second object.

### Claim 11 (depends on 9)

The apparatus of claim 9, wherein the height metric of the second object is proportional to the known height of the first object.

### Claim 12 (depends on 9)

The apparatus of claim 9, wherein the first object is a stationary object in the environment.

### Claim 13 (depends on 8)

The apparatus of claim 8, wherein the first set of parallel lines intersect with the second set of parallel lines.

### Claim 14 (depends on 8)

The apparatus of claim 8, wherein the first set of parallel lines are perpendicular to the second set of parallel lines in the real world ground plane.

### Claim 15

An computer-readable medium storing instructions for estimating a real world distance in an image, wherein the instructions are executable by one or more processors to:
obtain an image from a camera installed in an environment;
identify, in the image, a first set of parallel lines on a real world ground plane and a second set of parallel lines on the real world ground plane;
determine a first intersection point of the first set of parallel lines and a second intersection point of the second set of parallel lines;
identify a ground line connecting the first intersection point and the second intersection point;
estimate an internal camera matrix based on a focal length and an image size associated with the camera; and
calibrate the camera for real world distance measurement by determining a perpendicular vector to the ground line based on the internal camera matrix.

### Claim 16 (depends on 15)

The computer-readable medium of claim 15, wherein the image or a subsequent image from the camera of the environment includes a first object having a known height and a second object having an unknown height, further comprising instructions executable by the one or more processors to:
determine a height metric of the second object using the perpendicular vector to the ground line and the known height of the first object.

### Claim 17 (depends on 16)

The computer-readable medium of claim 16, wherein an instruction to determine the height metric of the second object comprises instructions executable by the one or more processors to:
determine an intersection between the ground line and a vector through a first ground point on the first object and a second ground point on the second object;
calculate a virtual line in a plane comprising the first object and the second object that is perpendicular to the ground line and includes the intersection;
determine a homography matrix that transforms the virtual line to a canonical form;
calculate a first rectified top point on the first object and second rectified top point on the second object using the homography matrix; and
calculate the height metric of the second object based on the first rectified top point and the first ground point of the first object and the second rectified top point and the second ground point of the second object.

### Claim 18 (depends on 16)

The computer-readable medium of claim 16, wherein the height metric of the second object is proportional to the known height of the first object.

### Claim 19 (depends on 16)

The computer-readable medium of claim 16, wherein the first object is a stationary object in the environment.
