# US 2021/0289135 A1 · Method and device for generating a panoramic image

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

- Number: US 2021/0289135 A1
- Document ID: US20210289135A1
- Status: Published application
- Kind: A1
- Application number: 17/200,659
- Filed: 2021-03-12
- Published: 2021-09-16
- Earliest claimed: 2020-03-16
- Assignees: Ke.com (Beijing) Technology Co., Ltd.
- Applicants: Ke.com (Beijing) Technology Co., Ltd.
- Inventors: Tong RAO; Yonglin YANG; Mingyuan WANG; Yutong CHEN
- Web page: https://patentgrep.com/patent/US20210289135A1

## CPC

- G06T 3/4038: Image mosaicing, e.g. composing plane images from plane sub-images
- H04N 23/698: for achieving an enlarged field of view, e.g. panoramic image capture
- G06T 15/10: Geometric effects
- G06T 15/503: {Blending, e.g. for anti-aliasing}
- H04N 5/265: Mixing
- H04N 23/84: for processing colour signals
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A method for generating a panoramic image is disclosed. The method includes receiving a three-dimensional model of a target space and an initial panoramic image of the target space, the initial panoramic image having a latitude span less than a preset latitude span; determining a first set of coordinate parameters of a camera associated with the initial panoramic image and with respect to a reference frame associated with the three-dimensional model; mapping, based on the first set of coordinate parameters of the camera, data points of the three-dimensional model to a camera coordinate system associated with the camera to obtain an intermediate panoramic image; and obtaining a final panoramic image by merging the initial panoramic image and the intermediate panoramic image, the final panoramic image having a latitude span greater than or equal to the preset latitude span.

## Claims

### Claim 1

A method for generating a panoramic image, the method comprising:
receiving a three-dimensional model of a target space and an initial panoramic image of the target space, the initial panoramic image having a latitude span less than a preset latitude span;
determining a first set of coordinate parameters of a camera associated with the initial panoramic image and with respect to a reference frame associated with the three-dimensional model;
mapping, based on the first set of coordinate parameters of the camera, data points of the three-dimensional model to a camera coordinate system associated with the camera to obtain an intermediate panoramic image;
determining a plurality of pixels in the intermediate panoramic image that correspond to the plurality of pixels in the initial panoramic image;
determining, based on a distance between the position of a pixel in the initial panoramic image and the center position of the initial panoramic image, a first weight;
determining, based on a distance between the position of a corresponding pixel in the intermediate panoramic image that corresponds to the pixel in the initial panoramic image and the center position of the intermediate panoramic image, a second weight;
based on the first weight and the second weight, obtaining fused color values of a plurality of pixels associated with a final panoramic image by performing a weighted summation on the color values of the plurality of pixels in the initial panoramic image and the color values of the corresponding plurality of pixels in the intermediate panoramic image that correspond to the plurality of pixels in the initial panoramic image; and
obtaining the final panoramic image by using the fused color values of the plurality of pixels associated with the final panoramic image, the final panoramic image having a latitude span greater than or equal to the preset latitude span.

### Claim 2

(canceled)

### Claim 3

(canceled)

### Claim 4

(Canceled)

### Claim 5

A method for generating a panoramic image, the method comprising:
receiving, a first and a second image sequences of the target space, each of the first and the second image sequences including a plurality of effective images;
determining a connection relationship between the effective images of each of the first and second image sequences;
determining a second set of coordinate parameters of the camera associated with the first and the second image sequences; and
obtaining a final panoramic image by mapping, based on the second set of coordinate parameters of the camera, the effective images of the first and the second image sequences to a mapping surface defined with respect to the second set of coordinate parameters of the camera.

### Claim 6 (depends on 5)

The method according to claim 5, wherein determining the connection relationship between the effective images of each of the first and second image sequences comprises:
in response to each of the first and second image sequences being taken in a laterally discrete manner, determining that each image of the each of the first and second image sequences is an effect image, and determining a connection relationship between images of the each of the first and second image sequences by performing feature extraction and feature matching.

### Claim 7 (depends on 6)

The method according to claim 6, wherein obtaining the final panoramic image by mapping, based on the second set of coordinate parameters of the camera, the effective images of the first and the second image sequences to the mapping surface defined with respect to the second set of coordinate parameters of the camera comprises:
adjusting yaw angles of images of the each of the first and second image sequences that array in a vertical direction to be identical;
obtaining a sub-panoramic image corresponding to the each of the first and second image sequences by mapping, based on a Euler angle of the camera derived from the adjusted yaw angles of the images of the each of the first and second image sequences, the each image of the each of the first and second image sequences to the mapping surface;
determining characteristics of each sub-panoramic image; and
obtaining the final panoramic image by merging, based on the characteristics of the each sub-panoramic image, the each sub-panoramic image.

### Claim 8 (depends on 7)

The method according to claim 7, wherein determining the connection relationship between the effective images of each of the first and second image sequences comprises:
in response to each of the first and second image sequences being taken in a longitudinally discrete manner, determining a mapping relationship between a target image and other images of the each of the first and second image sequences;
obtaining a fused image corresponding to the each of the first and second image sequences as an effective image by fusing, based on the mapping relationship, the other images into the target image of the each of the first and second image sequences; and
determining a connection relationship between each fused image corresponding to the each of the first and second image sequences by performing feature extraction and feature matching.

### Claim 9 (depends on 8)

The method according to claim of claim 8, wherein obtaining the final panoramic image by mapping, based on the second set of coordinate parameters of the camera, the effective images of the first and the second image sequences to the mapping surface defined with respect to the second set of coordinate parameters of the camera comprises:
obtaining a sub-panoramic image corresponding to each fused image by mapping the each fused image to the mapping surface;
obtaining characteristics of each sub-panoramic image; and
obtaining the final panoramic image by merging, based on the characteristics of the each sub-panoramic image, the each sub-panoramic image.

### Claim 10 (depends on 5)

The method according to claim 5, wherein determining the connection relationship between the effective images of each of the first and second image sequences comprises:
in response to the first image sequence being taken in a laterally discrete manner and other image sequences being taken in a laterally continuous manner, determining that each image of the first image sequence is an effective image, and determining a connection relationship between the each image of the first image sequence by performing feature extraction and feature matching; and
determining that a key frame image of each of the other image sequences is an effective image, and determining a connection relationship between each key frame image of each of the other image sequences and the each of the other image sequences by performing feature extraction and feature matching.

### Claim 11 (depends on 10)

The method according to claim 10, wherein obtaining the final panoramic image by mapping, based on the second set of coordinate parameters of the camera, the effective images of the first and the second image sequences to the mapping surface defined with respect to the second set of coordinate parameters of the camera comprises:
obtaining a sub-panoramic image corresponding to the first image sequence by mapping each image of the first image sequence to the mapping surface;
obtaining a mapping image by mapping the each key frame image of each of the other image sequences to the mapping surface;
determining characteristics of each mapping image and each sub-panoramic image; and
obtaining the final panoramic image by mapping, based on the characteristics of the each mapping image and the each sub-panoramic image, the each mapping image and the each sub-panoramic image.

### Claim 12

A device for generating a panoramic image, the device comprising:
a non-transitory memory storage comprising instructions; and
a processor coupled with the non-transitory memory storage, wherein the processor executes the instructions to:
receive a three-dimensional model of a target space and an initial panoramic image of the target space, the initial panoramic image having a latitude span less than a preset latitude span;
determine a first set of coordinate parameters of a camera associated with the initial panoramic image and with respect to a reference frame associated with the three-dimensional model;
map, based on the first set of coordinate parameters of the camera, data points of the three-dimensional model to a camera coordinate system associated with the camera to obtain an intermediate panoramic image;
determine a plurality of pixels in the intermediate panoramic image that correspond to the plurality of pixels in the initial panoramic image;
determine, based on a distance between the position of a pixel in the initial panoramic image and the center position of the initial panoramic image, a first weight;
determine, based on a distance between the position of a corresponding pixel in the intermediate panoramic image that corresponds to the pixel in the initial panoramic image and the center position of the intermediate panoramic image, a second weight;
based on the first weight and the second weight, obtain fused color values of a plurality of pixels associated with a final panoramic image by performing a weighted summation on the color values of the plurality of pixels in the initial panoramic image and the color values of the corresponding plurality of pixels in the intermediate panoramic image that correspond to the plurality of pixels in the initial panoramic image; and
obtain the final panoramic image by using the fused color values of the plurality of pixels associated with the final panoramic image, the final panoramic image having a latitude span greater than or equal to the preset latitude span.

### Claim 13

(canceled)

### Claim 14

(canceled)

### Claim 15

(Canceled)

### Claim 16 (depends on 12)

The device according to claim 12, wherein the initial panoramic image comprises a first and a second image sequences of the target space, each of the first and the second image sequences including a plurality of effective images, and
the processor further executes the instructions to:
determine a connection relationship between the effective images of each of the first and second image sequences;
determine a second set of coordinate parameters of the camera associated with the first and the second image sequences; and
obtain a second final panoramic image by mapping, based on the second set of coordinate parameters of the camera, the effective images of the first and the second image sequences to a mapping surface defined with respect to the second set of coordinate parameters of the camera.

### Claim 17 (depends on 16)

The device according to claim 16, wherein the processor further executes the instructions to:
in response to each of the first and second image sequences being taken in a laterally discrete manner, determine that each image of the each of the first and second image sequences is an effect image, and determine a connection relationship between images of the each of the first and second image sequences by performing feature extraction and feature matching.

### Claim 18 (depends on 17)

The device according to claim 17, wherein the processor further executes the instructions to:
adjust yaw angles of images of the each of the first and second image sequences that array in a vertical direction to be identical;
obtain a sub-panoramic image corresponding to the each of the first and second image sequences by mapping, based on a Euler angle of the camera derived from the adjusted yaw angles of the images of the each of the first and second image sequences, the each image of the each of the first and second image sequences to the mapping surface;
determine characteristics of each sub-panoramic image; and
obtain the second final panoramic image by merging, based on the characteristics of the each sub-panoramic image, the each sub-panoramic image.

### Claim 19 (depends on 18)

The device according to claim 18, wherein the processor further executes the instructions to:
in response to each of the first and second image sequences being taken in a longitudinally discrete manner, determine a mapping relationship between a target image and other images of the each of the first and second image sequences;
obtain a fused image corresponding to the each of the first and second image sequences as an effective image by fusing, based on the mapping relationship, the other images into the target image of the each of the first and second image sequences; and
determine a connection relationship between each fused image corresponding to the each of the first and second image sequences by performing feature extraction and feature matching.

### Claim 20 (depends on 19)

The device according to claim of claim 19, wherein the processor further executes the instructions to:
obtain a sub-panoramic image corresponding to each fused image by mapping the each fused image to the mapping surface;
obtain characteristics of each sub-panoramic image; and
obtain the second final panoramic image by merging, based on the characteristics of the each sub-panoramic image, the each sub-panoramic image.

### Claim 21 (depends on 16)

The device according to claim 16, wherein the processor further executes the instructions to:
in response to the first image sequence being taken in a laterally discrete manner and other image sequences being taken in a laterally continuous manner, determine that each image of the first image sequence is an effective image, and determine a connection relationship between the each image of the first image sequence by performing feature extraction and feature matching; and
determine that a key frame image of each of the other image sequences is an effective image, and determine a connection relationship between each key frame image of each of the other image sequences and the each of the other image sequences by performing feature extraction and feature matching.

### Claim 22 (depends on 21)

The device according to claim 21, wherein the processor further executes the instructions to:
obtain a sub-panoramic image corresponding to the first image sequence by mapping each image of the first image sequence to the mapping surface;
obtain a mapping image by mapping the each key frame image of each of the other image sequences to the mapping surface;
determine characteristics of each mapping image and each sub-panoramic image; and
obtain the second final panoramic image by mapping, based on the characteristics of the each mapping image and the each sub-panoramic image, the each mapping image and the each sub-panoramic image.

### Claim 23

A non-transitory computer-readable medium, having computer-executable instructions stored thereon, the computer-executable instructions, when executed by one or more processor, cause a processor to facilitate:
receiving a three-dimensional model of a target space and an initial panoramic image of the target space, the initial panoramic image having a latitude span less than a preset latitude span;
determining a first set of coordinate parameters of a camera associated with the initial panoramic image and with respect to a reference frame associated with the three-dimensional model;
mapping, based on the first set of coordinate parameters of the camera, data points of the three-dimensional model to a camera coordinate system associated with the camera to obtain an intermediate panoramic image;
determining a plurality of pixels in the intermediate panoramic image that correspond to the plurality of pixels in the initial panoramic image;
determining, based on a distance between the position of a pixel in the initial panoramic image and the center position of the initial panoramic image, a first weight;
determining, based on a distance between the position of a corresponding pixel in the intermediate panoramic image that corresponds to the pixel in the initial panoramic image and the center position of the intermediate panoramic image, a second weight;
based on the first weight and the second weight, obtaining fused color values of a plurality of pixels associated with a final panoramic image by performing a weighted summation on the color values of the plurality of pixels in the initial panoramic image and the color values of the corresponding plurality of pixels in the intermediate panoramic image that correspond to the plurality of pixels in the initial panoramic image; and
obtaining the final panoramic image by using the fused color values of the plurality of pixels associated with the final panoramic image, the final panoramic image having a latitude span greater than or equal to the preset latitude span.
