# US 2021/0343087 A1 · Cross reality system for large scale environments

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

- Number: US 2021/0343087 A1
- Document ID: US20210343087A1
- Status: Published application
- Kind: A1
- Application number: 17/242,763
- Filed: 2021-04-28
- Published: 2021-11-04
- Earliest claimed: 2020-04-29
- Assignees: Magic Leap, Inc.
- Applicants: Magic Leap, Inc.
- Inventors: Javier Victorio Gomez Gonzalez; Miguel Andres Granados Velasquez; Mukta Prasad; Dominik Michael Kasper; Eran Guendelman; Keng-Sheng Lin
- Web page: https://patentgrep.com/patent/US20210343087A1

## CPC

- G06T 19/006: {Mixed reality (object pose determination, tracking or camera calibration for mixed reality G06T7/00)}
- G06F 3/011: {Arrangements for interaction with the human body, e.g. for user immersion in virtual reality (blind teaching G09B21/00)}
- G06F 3/012: {Head tracking input arrangements}
- G06F 3/013: {Eye tracking input arrangements (G06F3/015 takes precedence)}
- G06F 16/332: Query formulation
- G06F 16/338: Presentation of query results
- G06V 10/753: {Transform-based matching, e.g. Hough transform}
- G06V 20/20: in augmented reality scenes
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

A cross reality system enables portable devices to access stored maps and efficiently and accurately render virtual content specified in relation to those maps. The system may process images acquired with a portable device to quickly and accurately localize the portable device to the persisted maps by constraining the result of localization based on the estimated direction of gravity of a persisted map and the coordinate frame in which data in a localization request is posed. The system may actively align the data in the localization request with an estimated direction of gravity during the localization processing, and/or a portable device may establish a coordinate frame in which the data in the localization request is posed aligned with an estimated direction of gravity such that the subsequently acquired data for inclusion in a localization request, when posed in that coordinate frame, is passively aligned with the estimated direction of gravity.

## Claims

### Claim 1

An XR system that supports specification of a position of virtual content relative to one or more persisted maps in a database of persisted maps, the XR system comprising a localization service comprising:
a communication component configured to receive from a portable electronic device information about a plurality of collections of features in images of a three-dimensional (3D) environment, the information comprising positions for the features of the plurality of collections of features expressed in a coordinate frame; and
at least one processor configured to execute computer-executable instructions, the computer-executable instructions implementing a localization component, connected to the communication component, the localization component configured to:
associate an orientation of the coordinate frame with respect to an estimated direction of gravity;
compute a plurality of candidate localizations for the plurality of collection of features by, for each of the plurality of collections of features, performing a process to determine as a candidate localization a transformation between the collection of features and a portion of a persisted map in the database of persisted maps, wherein:
the portion of the persisted map has an associated estimated direction of gravity; and
the process of determining is constrained, based on the orientation of the coordinate frame, to determine transformations that align the coordinate frame with the associated estimated direction of gravity; and
generate a localization of the portable electronic device based on consensus among the plurality of candidate localizations.

### Claim 2 (depends on 1)

The XR system of claim 1, wherein associating the orientation of the coordinate frame with respect to an estimated direction of gravity comprises receiving the orientation from the portable electronic device.

### Claim 3 (depends on 1)

The XR system of claim 1, wherein associating the orientation of the coordinate frame with respect to an estimated direction of gravity comprises:
receiving a tracking map from the portable electronic device;
computing an orientation of the tracking map with respect to a persisted map oriented with respect to an estimate of gravity;
storing the computed orientation in persistent storage as an orientation for the portable electronic device; and
subsequently, based on receiving from the portable electronic device the information about a plurality of collections of features, accessing the stored, computed orientation.

### Claim 4 (depends on 1)

The XR system of claim 1, wherein the orientations of the coordinate frames for the plurality of collections of features with respect to the estimated directions of gravity comprise vectors indicating the estimated directions of gravity.

### Claim 5 (depends on 1)

The XR system of claim 1, wherein the process of determining the transformation a collection of features is constrained by:
fixing two rotational degrees of freedom based, at least in part, on the orientation of the respective coordinate frame with respect to an estimated direction of gravity, and
computing one rotational degree of freedom and three translational degrees of freedom based, at least in part, on the fixed two rotational degrees of freedom.

### Claim 6 (depends on 1)

The XR system of claim 1, wherein computing a candidate localization for a collection of features comprises:
performing rough localization of the collection of features with respect to the persisted maps in the database of persisted maps, wherein rough localization comprises computing a rough transformation of the portable electronic device with respect to a persisted map in the database of persisted maps, and
performing refined localization of the collection of features with respect to the persisted map, wherein refined localization of the collection of features comprises computing a candidate localization of the portable electronic device based on the rough transformation.

### Claim 7 (depends on 6)

The XR system of claim 6, wherein computing the rough transformation of the portable electronic device with respect to the persisted map in the database of persisted maps comprises
fixing two rotational degrees of freedom based, at least in part, on the orientation of the respective coordinate frame with respect to a corresponding estimated direction of gravity, and
computing one rotational degree of freedom and three translational degrees of freedom based, at least in part, on the fixed two rotational degrees of freedom.

### Claim 8 (depends on 1)

The XR system of claim 1, the communication component is further configured to:
send the localization to the portable electronic device.

### Claim 9 (depends on 1)

The XR system of claim 1, wherein positions of the features of the plurality of collections of features are expressed in a coordinate frame of the portable electronic device.

### Claim 10

An XR system that supports specification of a position of virtual content relative to persisted maps in a database of persisted maps, the XR system comprising a localization service comprising:
a communication component configured to receive from a portable electronic device information about a plurality of collections of features in images of a three-dimensional (3D) environment, the information comprising positions for the features of the plurality of collections of features expressed in a coordinate frame having a dimension aligned with respect to an estimated direction of gravity; and
at least one processor configured to execute computer-executable instructions, the computer-executable instructions implementing a localization component, connected to the communication component, the localization component configured to:
compute a plurality of candidate localizations for the plurality of collections of features by, for each of the plurality of collections of features, performing a process to determine as a candidate localization a transformation between the collection of features and a portion of a persisted map in the database of persisted maps, wherein:
the portion of the persisted map has an associated estimated direction of gravity; and
the process of determining is constrained to determine transformations that align the direction of gravity for the collection of features with the associated estimated direction of gravity of the portion of the persisted map; and
generate a localization of the portable electronic device based on consensus among the plurality of candidate localizations.

### Claim 11 (depends on 10)

The XR system of claim 10, further comprising a map merge service comprising:
a map alignment component configured to determine an alignment between a tracking map of the portable electronic device and a persisted map in the database of persisted maps, the tracking map comprising at least a portion of the plurality of collections of features; and
a gravity estimate component configured to compute an estimated direction of gravity for the tracking map of the portable device based, at least in part, on an estimate of a direction of gravity with respect to the persisted map and the determined alignment between the tracking map and the persisted map,
wherein the estimated direction of gravity for the tracking map is sent to the portable electronic device.

### Claim 12 (depends on 10)

The XR system of claim 10, wherein the process of determining the transformation a collection of features is constrained by:
fixing two rotational degrees of freedom based, at least in part, on the orientation of the respective coordinate frame with respect to an estimated direction of gravity, and
computing one rotational degree of freedom and three translational degrees of freedom based, at least in part, on the fixed two rotational degrees of freedom.

### Claim 13 (depends on 10)

The XR system of claim 10, wherein computing a candidate localization for a collection of features comprises:
performing rough localization of the collection of features with respect to the persisted maps in the database of persisted maps, wherein rough localization comprises computing a rough transformation of the portable electronic device with respect to a persisted map in the database of persisted maps, and
performing refined localization of the collection of features with respect to the persisted map, wherein refined localization of the collection of features comprises computing a candidate localization of the portable electronic device based on the rough transformation.

### Claim 14

An electronic device configured to operate within a cross reality system, the electronic device comprising:
one or more sensors configured to capture information about a three-dimensional (3D) environment, the captured information comprising a plurality of images; and
at least one processor configured to execute computer executable instructions, wherein the computer executable instructions comprise instructions for:
extracting a plurality of collections of features from the plurality of images of the 3D environment;
determining an estimated direction of gravity with respect to a coordinate frame local to the electronic device;
expressing positions of the features of the plurality of collections of features in the coordinate frame;
sending to a localization service of the cross reality system information about the plurality of collections of features, the information indicating the positions of the features of the plurality of collections of features and the estimated direction of gravity with respect to the coordinate frame; and
receiving from the localization service a pose of the electronic device with respect to a persisted map in a database of persisted maps, wherein the pose of the electronic device is received in less than 10 seconds after the sending to the localization service.

### Claim 15 (depends on 14)

The electronic device of claim 14, wherein
the one or more sensors comprise at least one inertial measurement unit, and
the estimated directions of gravity is determined based on an output of the at least one inertial measurement unit.

### Claim 16 (depends on 14)

The electronic device of claim 14, wherein determining the estimated direction of gravity comprises
receiving the estimated direction of gravity from a map merge service of the cross reality system.

### Claim 17 (depends on 14)

The electronic device of claim 14, wherein the information about the plurality of collections of features comprises descriptors for individual features.

### Claim 18 (depends on 14)

The electronic device of claim 14, wherein the relationships for the plurality of collections of features with respect to the estimated directions of gravity comprise vectors indicating the estimated directions of gravity for individual collections of features.

### Claim 19 (depends on 14)

The electronic device of claim 14, wherein the information about the plurality of collections of features comprises poses of the features of the plurality of collections of features.

### Claim 20 (depends on 14)

The electronic device of claim 14, wherein the features of the plurality of collections of features are extracted from a plurality of images captured by at least two sensors of the electronic device.
