# US 2022/0277479 A1 · Method and apparatus for simultaneous localization and mapping, 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/0277479 A1
- Document ID: US20220277479A1
- Status: Published application
- Kind: A1
- Application number: 17/681,179
- Filed: 2022-02-25
- Published: 2022-09-01
- Earliest claimed: 2021-02-26
- Assignees: Samsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: Xiongfeng PENG; Zhihua LIU; Qiang WANG; Yuntae KIM; Hongseok LEE
- Web page: https://patentgrep.com/patent/US20220277479A1

## CPC

- G06T 7/246: using feature-based methods, e.g. the tracking of corners or segments
- G06T 7/74: {involving reference images or patches}
- G06T 7/248: {involving reference images or patches}
- G06T 7/579: from motion
- G06T 2207/30244: Camera pose
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

Provided is a method of simultaneous localization and mapping (SLAM), the method including obtaining a structure of a current image frame, obtaining a structure re-identification constraint based on the structure of the current image frame, and obtaining a SLAM result based on the structure re-identification constraint. By introducing the structure re-identification constraint in a bundle adjustment process to obtain the SLAM result, error accumulation may be more easily controlled, and accuracy and robustness in obtaining the SLAM result may be improved.

## Claims

### Claim 1

A method of simultaneous localization and mapping (SLAM), the method comprising:
obtaining a structure of a current image frame;
obtaining a structure re-identification constraint based on the structure of the current image frame; and
obtaining a SLAM result based on the structure re-identification constraint.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
obtaining points of the current image frame and lines of the current image frame; and
re-identifying points of the current image frame and lines of the current image frame to obtain a point-line re-identification constraint,
wherein the obtaining of the SLAM result based on the structure re-identification constraint comprises obtaining the SLAM result based on the point-line re-identification constraint and the structure re-identification constraint.

### Claim 3 (depends on 1)

The method of claim 1, wherein the obtaining of the structure of the current image frame comprises:
obtaining a primary structure of the current image frame based on the lines of the current image frame; and
optimizing the primary structure based on the lines that satisfy preset conditions in the current image frame, to obtain the structure.

### Claim 4 (depends on 1)

The method of claim 1, wherein the obtaining of the structure re-identification constraint according to the structure of the current image frame comprises:
obtaining a global sub map based on the current image frame and a key image frame; and
re-identifying the structure based on the global sub map to obtain the structure re-identification constraint.

### Claim 5 (depends on 4)

The method of claim 4, wherein the obtaining of the global sub map based on the current image frame and the key image frame comprises:
obtaining the global sub map based on a time sequence relationship between the current image frame and the key image frame; and
obtaining a spatial relationship between three-dimensional maps respectively corresponding to the current image frame and the key image frame.

### Claim 6 (depends on 5)

The method of claim 5, wherein the obtaining of the global sub map, based on the time sequence relationship between the current image frame and the key image frame and the spatial relationship between three-dimensional maps respectively corresponding to the current image frame and the key image frame comprises:
obtaining a reference key image frame of the current image frame based on the time sequence relationship between the current image frame and the key image frame;
determining the key image frame, which has an area overlapping with the reference key image frame on a spatial distribution, as a key image frame having a spatial common view with the current image frame, based on the spatial relationship between a three-dimensional map corresponding to the current image frame and the three-dimensional map corresponding to the key image frame; and
obtaining the global sub map based on the key image frame having the spatial common view.

### Claim 7 (depends on 4)

The method of claim 4, wherein the re-identifying of the structure based on the global sub map comprises:
obtaining the key image frame having a spatial common view with the current image frame based on the global sub map; and
re-identifying the structure based on a common view correlation structure of the key image frame having the spatial common view.

### Claim 8 (depends on 7)

The method of claim 7, wherein the re-identifying of the structure based on the common view correlation structure of a spatial common view key image frame comprises:
performing a time consistency test on the structure based on the structure of the current image frame and a time correlation structure of a first preset time sequence sliding window corresponding to the structure of the current image frame;
matching structures based on the time correlation structure of an image frame in a second preset time sequence sliding window corresponding to the current image frame and a spatial common view correlation structure of a frame in a third preset time sequence sliding window corresponding to the key image frame having the spatial common view based on the time consistency test on the structure having passed; and
performing a time-space consistency test on the structure based on the time correlation structure and the key image frame having the spatial common view corresponding to the time correlation structure.

### Claim 9 (depends on 8)

The method of claim 8, wherein the performing of the time consistency test on the structure, based on the structure of the current image frame and the time correlation structure of the first preset time sequence sliding window corresponding to the structure of the current image frame, comprises:
obtaining a relative rotation error between the structure of the current image frame and the time correlation structure of the image frame in the first preset time sequence sliding window corresponding to the structure of the current image frame; and
performing the time consistency test on the structure based on every relative rotation error corresponding to the first preset time sequence sliding window.

### Claim 10 (depends on 8)

The method of claim 8, wherein the performing of the time-space consistency test on the structure, based on the time correlation structure and the key image frame having the spatial common view corresponding to the time correlation structure, comprises:
obtaining a relative rotation drift error between the time correlation structure and the key image frame having the spatial common view corresponding to the time correlation structure;
obtaining relative rotation drift errors corresponding to the second preset time sliding window and the third preset time sequence sliding window; and
performing the time-space consistency test based on the relative rotation drift errors corresponding to the second preset time sequence sliding window and the third preset time sequence sliding window.

### Claim 11 (depends on 2)

The method of claim 2, wherein the obtaining of the SLAM result, based on the point-line re-identification constraint and the structure re-identification constraint, comprises:
obtaining a SLAM result after global bundle adjustment based on the point-line re-identification constraint and the structure re-identification constraint; and
obtaining the SLAM result by performing local bundle adjustment on the SLAM result after the global bundle adjustment based on a point-line re-identification constraint of all image frames in a fourth preset time sequence sliding window corresponding to the current image frame.

### Claim 12

An apparatus for simultaneous localization and mapping (SLAM), the apparatus comprising:
at least one processor configured to:
obtain a structure of a current image frame;
obtain a structure re-identification constraint based on the structure of the current image frame; and
obtain a SLAM result based on the structure re-identification constraint.

### Claim 13

An electronic device comprising:
a memory configured to store a computer program; and
a processor configured to execute the computer program to implement a method comprising:
obtaining a structure of a current image frame;
obtaining a structure re-identification constraint based on the structure of the current image frame; and
obtaining a SLAM result based on the structure re-identification constraint.

### Claim 14

A computer-readable storage medium having stored thereon a computer program which, when executed, implements a method comprising:
obtaining a structure of a current image frame;
obtaining a structure re-identification constraint based on the structure of the current image frame; and
obtaining a SLAM result based on the structure re-identification constraint.

### Claim 15 (depends on 13)

The electronic device of claim 13, wherein the processor is further configured to:
obtain points of the current image frame and lines of the current image frame; and
re-identify the points of the current image frame and lines of the current image frame to obtain a point-line re-identification constraint,
wherein the obtaining of the SLAM result based on the structure re-identification constraint, comprises obtaining the SLAM result based on the point-line re-identification constraint and the structure re-identification constraint.

### Claim 16 (depends on 13)

The electronic device of claim 13, wherein the obtaining of the structure of the current image frame comprises:
obtaining a primary structure of the current image frame based on the lines of the current image frame; and
optimizing the primary structure based on the lines that satisfy preset conditions in the current image frame, to obtain the structure.

### Claim 17 (depends on 13)

The electronic device of claim 13, wherein the obtaining of the structure re-identification constraint according to the structure of the current image frame comprises:
obtaining a global sub map based on the current image frame and a key image frame; and
re-identifying the structure based on the global sub map to obtain the structure re-identification constraint.

### Claim 18 (depends on 17)

The electronic device of claim 17, wherein the obtaining of the global sub map based on the current image frame and the key image frame comprises:
obtaining the global sub map based on a time sequence relationship between the current image frame and the key image frame; and
obtaining a spatial relationship between three-dimensional maps respectively corresponding to the current image frame and the key image frame.

### Claim 19 (depends on 18)

The electronic device of claim 18, wherein the obtaining of the global sub map, based on the time sequence relationship between the current image frame and the key image frame and the spatial relationship between three-dimensional maps respectively corresponding to the current image frame and the key image frame comprises:
obtaining a reference key image frame of the current image frame based on the time sequence relationship between the current image frame and the key image frame;
determining the key image frame, which has an area overlapping with the reference key image frame on a spatial distribution, as a key image frame having a spatial common view with the current image frame, based on the spatial relationship between a three-dimensional map corresponding to the current image frame and the three-dimensional map corresponding to the key image frame; and
obtaining the global sub map based on the key image frame having the spatial common view.

### Claim 20 (depends on 17)

The electronic device of claim 17, wherein the re-identifying of the structure based on the global sub map comprises:
obtaining the key image frame having a spatial common view with the current image frame based on the global sub map; and
re-identifying the structure based on a common view correlation structure of the key image frame having the spatial common view.
