Fast 3D reconstruction using depth information

The method for fast 3D reconstruction in XR systems addresses the challenge of resource-intensive environment mapping by using sensor data to determine valid and invalid pixels, enabling efficient and accurate updates of 3D representations.

JP7573017B2Active Publication Date: 2024-10-24MAGIC LEAP INC
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2022506610
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2019-08-07
Filing Date
2020-08-06
Publication Date
2024-10-24
Estimated Expiration
2040-08-06

AI Technical Summary

Technical Problem

Existing XR systems face challenges in creating and updating 3D representations of environments quickly and efficiently, requiring significant computational resources and struggling with incomplete or ambiguous depth information from sensors.

Method used

A method for fast 3D reconstruction using depth information, involving a depth sensor to capture the physical world, a processor to compute a 3D representation, and techniques to determine valid and invalid pixels based on confidence levels, updating the 3D representation by adding or removing objects based on sensor data, and using a 3D reconstruction system to maintain a map of objects with selective updates.

Benefits of technology

Enables rapid and resource-efficient creation and updating of 3D representations, reducing computational burden and improving accuracy by selectively removing objects based on confidence levels and sensor range, thus enhancing the realism of XR environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007573017000001
    Figure 0007573017000001
  • Figure 0007573017000002
    Figure 0007573017000002
  • Figure 0007573017000003
    Figure 0007573017000003
Patent Text Reader

Abstract

A method for reconstructing an environment using depth information is provided. The method makes fresh and accurate 3D reconstruction data of an environment available to various XR applications with short processing times and low usage of computational resources and storage space. The method includes capturing depth information about the environment in response to changes in a user's field of view caused by, for example, head pose movement, user location, and / or objects, and updating a representation of the environment based on depths associated with different confidence levels according to the captured depth information. The method may include updating the geometry of the environment based on depths associated with a confidence level higher than a threshold. The method may also include inferring removal of surfaces in the environment in response to changes in the 3D environment based on depths associated with a confidence level lower than a threshold.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] This application relates generally to cross-reality systems that render scenes using three-dimensional (3D) world reconstruction. [Background technology]

[0002] A computer may control a human user interface and create an X-reality (XR or cross-reality) environment in which some or all of the XR environment is generated by the computer as it is perceived by the user. These XR environments may be virtual reality (VR), augmented reality (AR), and mixed reality (MR) environments in which some or all of the XR environment may be generated by the computer, in part, using data that describes the environment. This data may describe virtual objects, for example, that may be rendered so that a user can sense or perceive and interact with the virtual objects as part of the physical world. The user may experience these virtual objects as a result of data being rendered and presented through a user interface device, such as a head-mounted display device. The data may control audio that may be displayed to the user for viewing or played to the user for hearing, or may control a tactile (or haptic) interface, allowing the user to experience touch sensations that the user senses or perceives as they feel the virtual objects.

[0003] XR systems can be useful for many applications ranging from scientific visualization, medical training, engineering design and prototyping, remote manipulation and telepresence, and personal entertainment. AR and MR, in contrast to VR, involve one or more objects in association with real objects in the physical world. The experience of virtual objects interacting with real objects greatly enhances the user's enjoyment when using XR systems and also opens up possibilities for a variety of applications that present realistic and easily understandable information about how the physical world can be altered.

[0004] An XR system may represent the physical surface of the world around a user of the system as a "mesh." The mesh may be represented by a number of interconnected triangles. Each triangle has edges that join points on the surface of an object in the physical world such that each triangle represents a portion of the surface. Information about portions of the surface, such as color, texture, or other properties, may be associated and stored within the triangles. In operation, the XR system may process image information and detect points and surfaces to create or update a mesh. Summary of the Invention

[0005] Aspects of the present application relate to methods and apparatus for fast 3D reconstruction using depth information. The techniques described herein may be used together, separately, or in any suitable combination.

[0006] Some embodiments relate to a portable electronic system. The portable electronic system includes a depth sensor configured to capture information about the physical world, and at least one processor configured to execute computer-executable instructions for calculating a three-dimensional (3D) representation of a portion of the physical world based at least in part on the captured information about the physical world. The computer-executable instructions include instructions for calculating a depth image from the captured information, the depth image comprising a plurality of pixels, each pixel indicating a distance to a surface in the physical world, determining valid pixels and invalid pixels within the plurality of pixels of the depth image based at least in part on the captured information, updating the 3D representation of the portion of the physical world with the valid pixels, and updating the 3D representation of the portion of the physical world with the invalid pixels.

[0007] In some embodiments, calculating the depth image includes calculating a confidence level for a distance indicated by the plurality of pixels, and determining valid and invalid pixels includes, for each of the plurality of pixels, determining whether a corresponding confidence level is below a predetermined value, and assigning the pixel as an invalid pixel when the corresponding confidence level is below the predetermined value.

[0008] In some embodiments, updating the 3D representation of the portion of the physical world with the valid pixels comprises modifying a geometry of the 3D representation of the portion of the physical world with a distance indicated by the valid pixels.

[0009] In some embodiments, updating the 3D representation of the portion of the physical world with valid pixels comprises adding the object to an object map.

[0010] In some embodiments, updating the 3D representation of the portion of the physical world with invalid pixels comprises removing the object from the object map.

[0011] In some embodiments, updating the 3D representation of the portion of the physical world with the invalid pixels includes removing one or more reconstructed surfaces from the 3D representation of the portion of the physical world based, at least in part, on distances indicated by the invalid pixels.

[0012] In some embodiments, one or more reconstructed surfaces are removed from the 3D representation of a portion of the physical world when the distance indicated by the corresponding invalid pixels is outside the operating range of the sensor.

[0013] In some embodiments, the sensor comprises a light source configured to emit light modulated at a frequency, a pixel array comprising a plurality of pixel circuits and configured to detect light at a frequency reflected by the object, and a mixer circuit configured to calculate an amplitude image of the reflected light indicative of the amplitude of the reflected light detected by the plurality of pixel circuits in the pixel array, and a phase image of the reflected light indicative of a phase shift between the reflected light detected by the plurality of pixel circuits in the pixel array and the emitted light. A depth image is calculated at least in part based on the phase image.

[0014] In some embodiments, determining valid and invalid pixels includes determining, for each of a plurality of pixels of the depth image, whether a corresponding amplitude in the amplitude image is below a predetermined value, and assigning the pixel as an invalid pixel when the corresponding amplitude is below the predetermined value.

[0015] Some embodiments relate to at least one non-transitory computer-readable medium encoded with a plurality of computer-executable instructions that, when executed by at least one processor, implements a method for providing a three-dimensional (3D) representation of a portion of a physical world. The 3D representation of the portion of the physical world includes a plurality of voxels corresponding to a plurality of volumes of the portion of the physical world. The plurality of voxels store signed distances and weights. The method includes capturing information about the portion of the physical world in response to changes in a user's field of view, calculating a depth image based on the captured information, the depth image comprising a plurality of pixels, each pixel indicating a distance to a surface in the portion of the physical world, determining valid and invalid pixels among the plurality of pixels of the depth image based at least in part on the captured information, updating the 3D representation of the portion of the physical world with the valid pixels, and updating the 3D representation of the portion of the physical world with the invalid pixels.

[0016] In some embodiments, the captured information comprises a confidence level for the distance indicated by the plurality of pixels, and determining valid and invalid pixels includes determining, for each of the plurality of pixels, whether a corresponding confidence level is below a predetermined value, and assigning the pixel as an invalid pixel when the corresponding confidence level is below the predetermined value.

[0017] In some embodiments, updating the 3D representation of the portion of the physical world with effective pixels includes calculating a signed distance and a weighting based at least in part on the effective pixels of the depth image, combining the calculated weighting with the individual stored weightings in the voxel and storing the combined weighting as the stored weighting, and combining the calculated signed distance with the individual stored signed distances in the voxel and storing the combined signed distance as the stored signed distance.

[0018] In some embodiments, updating the 3D representation of the portion of the physical world with invalid pixels includes calculating signed distances and weights based at least in part on the invalid pixels of the depth image, the calculating includes modifying the calculated weights based on a time the depth image was captured, combining the modified weights with the individual stored weights in the voxel, and for each combined weight, determining whether the combined weight exceeds a predetermined value.

[0019] In some embodiments, modifying the calculated weightings includes determining, for each calculated weighting, whether a discrepancy exists between the calculated signed distance corresponding to the calculated weighting and a respective stored signed distance.

[0020] In some embodiments, modifying the calculated weightings comprises decreasing the calculated weightings when a discrepancy is determined to exist.

[0021] In some embodiments, modifying the calculated weights includes assigning the calculated weights as modified weights upon determining that no discrepancies exist.

[0022] In some embodiments, updating the 3D representation of the portion of the physical world with invalid pixels includes, when it is determined that the combined weightings exceed a predetermined value, further modifying the calculated weightings based on the time the depth image was captured.

[0023] In some embodiments, updating the 3D representation of the portion of the physical world with invalid pixels includes, when the combined weighting is determined to be below a predetermined value, storing the combined weighting as a stored weighting, combining the corresponding calculated signed distance with the individual stored signed distance, and storing the combined signed distance as a stored signed distance.

[0024] Some embodiments relate to a method of operating a cross reality (XR) system for reconstructing a three-dimensional (3D) environment. The XR system includes a processor configured to process image information in communication with a sensor worn by a user that captures information about a distinct region within a field of view of the sensor. The image information includes captured information calculated from a depth image. The depth image includes a plurality of pixels. Each pixel indicates a distance to a surface in the 3D environment. The method includes determining, at least in part, pixels of the depth image as valid pixels and invalid pixels based on the captured information, updating a representation of the 3D environment with the valid pixels, and updating the representation of the 3D environment with the invalid pixels.

[0025] In some embodiments, updating the representation of the 3D environment with the valid pixels includes modifying a geometry of the representation of the 3D environment based at least in part on the valid pixels.

[0026] In some embodiments, updating the representation of the 3D environment with the invalid pixels includes removing surfaces from the representation of the 3D environment based at least in part on the invalid pixels.

[0027] The above description is provided by way of illustration and is not intended to be limiting. The present invention provides, for example, the following: (Item 1) 1. A portable electronic system comprising: a depth sensor configured to capture information about the physical world; at least one processor configured to execute computer-executable instructions for computing a three-dimensional (3D) representation of a portion of the physical world based, at least in part, on captured information about the physical world, the computer-executable instructions comprising: calculating from the captured information a depth image comprising a plurality of pixels, each pixel indicating a distance to a surface in the physical world; determining valid and invalid pixels within the plurality of pixels of the depth image based at least in part on the captured information; updating a 3D representation of the portion of the physical world with the valid pixels; and updating a 3D representation of the portion of the physical world with the invalid pixels; at least one processor having instructions for A portable electronic system comprising: (Item 2) calculating the depth image includes calculating a confidence level for a distance represented by the plurality of pixels; Determining the valid pixels and the invalid pixels comprises, for each of the plurality of pixels: determining whether the corresponding confidence level is below a predetermined value; assigning said pixel as an invalid pixel when said corresponding confidence level is below said predetermined value; 2. The portable electronic system of claim 1, comprising: (Item 3) 2. The portable electronic system of claim 1, wherein updating the 3D representation of the portion of the physical world with the effective pixels includes modifying a geometry of the 3D representation of the portion of the physical world at a distance indicated by the effective pixels. (Item 4) 2. The portable electronic system of claim 1, wherein updating the 3D representation of the portion of the physical world with the valid pixels includes adding an object to an object map. (Item 5) 5. The portable electronic system of claim 4, wherein updating the 3D representation of the portion of the physical world with the invalid pixels includes removing an object from the object map. (Item 6) 2. The portable electronic system of claim 1, wherein updating the 3D representation of the portion of the physical world with the invalid pixels comprises removing one or more reconstructed surfaces from the 3D representation of the portion of the physical world based, at least in part, on distances indicated by the invalid pixels. (Item 7) 2. The portable electronic system of claim 1, wherein the one or more reconstructed surfaces are removed from the 3D representation of a portion of the physical world when a distance indicated by the corresponding invalid pixel is outside an operating range of the sensor. (Item 8) 2. The portable electronic system of claim 1, wherein the one or more reconstructed surfaces are removed from the 3D representation of the portion of the physical world when the distance indicated by the corresponding invalid pixels indicates that the one or more reconstructed surfaces move farther away from the sensor. (Item 9) The sensor includes: a light source configured to emit light modulated at a frequency; a pixel array comprising a plurality of pixel circuits and configured to detect light at the certain frequency reflected by an object; and a mixer circuit configured to calculate an amplitude image of the reflected light indicative of an amplitude of the reflected light detected by a plurality of pixel circuits in the pixel array, and a phase image of the reflected light indicative of a phase shift between the reflected light detected by a plurality of pixel circuits in the pixel array and the emitted light; Equipped with Item 10. The portable electronic system of item 1, wherein the depth image is calculated at least in part based on the phase image. (Item 10) Determining the valid pixels and the invalid pixels includes, for each of a plurality of pixels of the depth image, determining whether a corresponding amplitude in the amplitude image is below a predetermined value; assigning said pixel as an invalid pixel when said corresponding amplitude is below said predetermined value; 10. The portable electronic system of item 9, comprising: (Item 11) At least one non-transitory computer readable medium encoded with a plurality of computer-executable instructions, which when executed by at least one processor, performs a method for providing a three-dimensional (3D) representation of a portion of a physical world, the 3D representation of the portion of the physical world comprising a plurality of voxels corresponding to a plurality of volumes of the portion of the physical world, the plurality of voxels storing signed distances and weights, the method comprising: capturing information about a portion of the physical world in response to changes in a user's field of view; calculating a depth image based on the captured information, the depth image comprising a plurality of pixels, each pixel indicating a distance to a surface within the portion of the physical world; determining valid and invalid pixels within the plurality of pixels of the depth image based at least in part on the captured information; updating a 3D representation of the portion of the physical world with the valid pixels; and updating a 3D representation of the portion of the physical world with the invalid pixels; At least one non-transitory computer readable medium comprising: (Item 12) the captured information comprises a confidence level for a distance represented by the plurality of pixels; The determining of the valid pixels and the invalid pixels comprises, for each of the plurality of pixels: determining whether the corresponding confidence level is below a predetermined value; assigning said pixel as an invalid pixel when said corresponding confidence level is below said predetermined value; Item 12. The portable electronic system of item 11, comprising: (Item 13) Updating the 3D representation of the portion of the physical world with the valid pixels comprises: calculating a signed distance and a weight based at least in part on valid pixels of the depth image; combining the calculated weights with individual stored weights within the voxel and storing the combined weights as the stored weights; combining the calculated signed distance with the individual stored signed distances within the voxel and storing the combined signed distance as the stored signed distance; Item 12. The portable electronic system of item 11, comprising: (Item 14) Updating the 3D representation of the portion of the physical world with the invalid pixels comprises: calculating a signed distance and a weight based at least in part on invalid pixels of the depth image; wherein the calculating step comprises: modifying the calculated weights based on the time the depth image was captured; and combining the modified weights with the individual stored weights within the voxel; and for each of the combined weights, determining whether the combined weights exceed a predetermined value; Item 12. The portable electronic system of item 11, comprising: (Item 15) Item 15. The portable electronic system of item 14, wherein modifying the calculated weightings includes determining, for each calculated weighting, whether a discrepancy exists between a calculated signed distance corresponding to the calculated weighting and a respective stored signed distance. (Item 16) Item 16. The portable electronic system of item 15, wherein modifying the calculated weightings includes decreasing the calculated weightings when it is determined that the discrepancy exists. (Item 17) Item 16. The portable electronic system of item 15, wherein modifying the calculated weights includes assigning the calculated weights as the modified weights if it is determined that the difference does not exist. (Item 18) 15. The portable electronic system of claim 14, wherein updating the 3D representation of the portion of the physical world with the invalid pixels further comprises modifying the calculated weightings based on the time the depth image was captured when it is determined that the combined weightings exceed the predetermined value. (Item 19) 15. The portable electronic system of claim 14, wherein updating the 3D representation of the portion of the physical world with the invalid pixels includes, when the combined weighting is determined to be below the predetermined value, storing the combined weighting as the stored weighting, combining a corresponding calculated signed distance with an individual stored signed distance, and storing the combined signed distance as the stored signed distance. (Item 20) 1. A method of operating a cross reality (XR) system for reconstructing a three dimensional (3D) environment, the XR system comprising a processor configured to process image information in communication with a sensor worn by a user that captures information about distinct regions within a field of view of the sensor, the image information comprising a depth image calculated from the captured information, the depth image comprising a plurality of pixels, each pixel indicative of a distance to a surface within the 3D environment, the method comprising: determining a plurality of pixels of the depth image as valid pixels and invalid pixels based at least in part on the captured information; updating a representation of the 3D environment with the valid pixels; and updating a representation of the 3D environment with the invalid pixels; and A method comprising: (Item 21) 21. The method of claim 20, wherein updating the representation of the 3D environment with the effective pixels comprises modifying a geometry of the representation of the 3D environment based, at least in part, on the effective pixels. (Item 22) 21. The method of claim 20, wherein updating the representation of the 3D environment with the invalid pixels comprises removing surfaces from the representation of the 3D environment based at least in part on the invalid pixels. [Brief description of the drawings]

[0028] The accompanying drawings are not intended to be drawn to scale. In the drawings, each identical or nearly identical component that is illustrated in various figures is represented by a like numeral. For purposes of clarity, not every component is labeled in every figure.

[0029] [Figure 1] FIG. 1 is a sketch illustrating an example of a simplified augmented reality (AR) scene, according to some embodiments.

[0030] [Diagram 2] FIG. 2 is a sketch of an example simplified AR scene illustrating an example 3D reconstruction use case including visual occlusion, physics-based interaction, and environmental inference, according to some embodiments.

[0031] [Diagram 3]FIG. 3 is a schematic diagram illustrating data flow within an AR system configured to provide an experience of AR content that interacts with the physical world, according to some embodiments.

[0032] [Figure 4] FIG. 4 is a schematic diagram illustrating an example of an AR display system, according to some embodiments.

[0033] [Figure 5A] FIG. 5A is a schematic diagram illustrating a user wearing an AR display system that renders AR content as the user moves through a physical world environment, according to some embodiments.

[0034] [Figure 5B] FIG. 5B is a schematic diagram illustrating a viewing optics assembly and associated components, according to some embodiments.

[0035] [Figure 6] FIG. 6 is a schematic diagram illustrating an AR system using a 3D reconstruction system, according to some embodiments.

[0036] [Figure 7A] FIG. 7A is a schematic diagram illustrating a 3D space discretized into voxels, according to some embodiments.

[0037] [Figure 7B] FIG. 7B is a schematic diagram illustrating the reconstruction range for a single viewpoint, according to some embodiments.

[0038] [Figure 7C] FIG. 7C is a schematic diagram illustrating the perception range versus the reconstruction range at a single point, according to some embodiments.

[0039] [Figure 8]8A-F are schematic diagrams illustrating the reconstruction of a surface in the physical world into a voxel model by an image sensor viewing the surface from multiple positions and viewpoints, according to some embodiments.

[0040] [Figure 9A] FIG. 9A is a schematic diagram illustrating a scene represented by voxels, surfaces within the scene, and a depth sensor that captures the surfaces in a depth image, according to some embodiments.

[0041] [Figure 9B] FIG. 9B is a schematic diagram illustrating a truncated signed distance function (TSDF) that relates the truncated signed distances and weights assigned to the voxels of FIG. 9A based on their distance from the surface.

[0042] [Figure 10] FIG. 10 is a schematic diagram illustrating an example depth sensor, according to some embodiments.

[0043] [Figure 11] FIG. 11 is a flowchart illustrating an exemplary method of operating an XR system and reconstructing a 3D environment, according to some embodiments.

[0044] [Figure 12] FIG. 12 is a flowchart illustrating an example method for determining valid and invalid pixels in the depth image in FIG. 11 according to some embodiments.

[0045] [Figure 13] FIG. 13 is a flowchart illustrating an example method for updating the 3D reconstruction with the valid pixels in FIG. 11 according to some embodiments.

[0046] [Figure 14A] FIG. 14A is an example depth image showing valid and invalid pixels in accordance with some embodiments.

[0047] [Figure 14B] FIG. 14B is the example depth image of FIG. 14A without the invalid pixels.

[0048] [Figure 15] FIG. 15 is a flowchart illustrating an example method for updating the 3D reconstruction with the invalid pixels in FIG. 11 according to some embodiments.

[0049] [Figure 16] FIG. 16 is a flowchart illustrating an example method of modifying the calculated weights in FIG. 15 according to some embodiments. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0050] Described herein are methods and apparatus for providing a three-dimensional (3D) representation of an X-reality (XR or cross-reality) environment within an XR system. In order to provide a user with a realistic XR experience, the XR system must understand the user's physical surroundings in order to properly correlate the location of virtual objects in relation to real objects.

[0051] However, providing a 3D representation of an environment constitutes a significant challenge. Substantial processing may be required to compute the 3D representation. The XR system must figure out how to render virtual objects so that they are correctly positioned relative to the user's head, body, etc., and that they appear to interact realistically with physical objects. Virtual objects may, for example, be occluded by physical objects between the user and where the virtual objects should appear. As the user's position changes relative to the environment, relevant parts of the environment may also change, which may require further processing. Furthermore, the 3D representation is often required to be updated as objects are moved within the environment (e.g., removing a cushion from a sofa). The step of updating the 3D representation of the environment experienced by the user must be performed quickly, without using too many of the computing resources of the XR system generating the XR environment, since the computing resources of the XR system when used to update the 3D representation of the environment are not capable of performing other functions.

[0052] The inventors have recognized and understood techniques for accelerating the creation and updating of 3D representations of XR environments with low usage of computational resources by using information captured by sensors. Depth, which represents the distance from the sensor to objects in the environment, may be measured by the sensor.

[0053] Using the measured depth, the XR system may maintain a map of objects in the environment. The map may be updated relatively frequently, such that a depth sensor may output measurements at a rate of tens of times per second. Furthermore, because relatively little processing may be required to identify objects from depth, the map created with depth may be updated frequently with low computational burden to identify new objects in the user's vicinity, or conversely, to identify that an object that was previously in the user's vicinity has moved.

[0054] However, the inventors also recognize that depth may provide incomplete or ambiguous information about whether a map of objects in the user's vicinity should be revised. Objects previously detected from depth may not be detected for a variety of reasons, such as, for example, the surface disappears, the surface is viewed at a different angle and / or under different lighting conditions, an intervening object is not found by the sensor, and / or the surface is outside the range of the sensor.

[0055] In some embodiments, a more accurate map of objects may be maintained by selectively removing from the map objects that are not detected within the current depth. Objects may be removed, for example, based on detecting a surface within a depth that is farther from the user than the object's previous location along a line of sight through the object's previous location.

[0056] In some embodiments, depths may be associated with different confidence levels based on the sensor capture information, e.g., the amplitude of light reflected by the surface. A smaller amplitude may indicate a lower confidence level for the associated depth, while a larger amplitude may indicate a higher confidence level. Various reasons may result in a sensor measurement being assigned a low confidence level. For example, the surface closest to the sensor may be outside the operating range of the sensor such that accurate information about the surfaces in the environment is not gathered. Alternatively, or in addition, the surface may have poor reflective properties such that the depth sensor does not detect much radiation from the surface, and all measurements are made with a relatively low signal-to-noise ratio. Alternatively, or in addition, the surface may be obscured by another surface such that the sensor does not obtain information about the surface.

[0057] In some embodiments, the confidence level of the depth in the depth image may be used to selectively update the map of the object. For example, if one or more depth pixels have a value that indicates, with high confidence, that a surface has been detected by the depth sensor behind a location where the object map indicates that an object is present, the object map may be updated to indicate that the object is no longer present in that location. The object map may then be updated to indicate that the object has been removed from the environment or moved to a different location.

[0058] In some embodiments, the confidence threshold for identifying an object in a new location may be different from the threshold for removing an object from a location where it was previously detected. The threshold for removing an object may be lower than that for adding an object. For example, low confidence measurements may provide information about the location of a surface that is noisy enough that a surface added based on those measurements would have an imprecise location that may introduce more error than if the surface was not added. However, a noisy surface may be eligible for removing an object from the map of the environment if the surface is behind the object's location, regardless of its location within the confidence level. Similarly, some depth sensors operate based on physical principles that may result in ambiguous depth measurements for depths beyond their operating range. When using depths from those sensors, measurements beyond the sensor's operating range may be discarded as invalid. However, when all ambiguous locations of a surface correspond to locations behind an object's location in the map, those measurements that would otherwise be treated as invalid for other reasons may nevertheless be used to determine that the object should be removed from the map.

[0059] In some embodiments, the 3D reconstruction may be in a format that facilitates selectively updating the map of the object. The 3D reconstruction may have a number of voxels, each representing a volume of the environment represented by the 3D reconstruction. Each voxel may be assigned a value of a signed distance function that indicates the distance from the voxel to a detected surface at its respective angle. In embodiments where the signed distance function is a truncated signed distance function, the maximum absolute value for the distance within a voxel may be truncated to some maximum value T such that the signed distance will be in the interval -T to T. Additionally, each voxel may include a weight that indicates the certainty that the distance for the voxel accurately reflects the distance to the surface.

[0060] In some embodiments, objects may be added to or removed from an object map, which is part of the 3D representation of the environment, based on voxels with weights higher than a threshold. For example, if there is a high certainty, above a certain threshold, that a surface recognized as part of an object is at a particular location, the map may be updated to indicate that the object is currently within that location or that the object is moving into that location. Conversely, if there is a high certainty that a surface has been detected behind a location shown in the map as containing the object, the map may be updated to indicate that the object has been removed or moved to another location.

[0061] In some embodiments, objects may be added or removed from the map based on a sequence of depth measurements. The weights stored in each voxel may be updated over time. As a surface is repeatedly detected within a location, the weights stored in voxels having a value defined for that surface may be increased. Conversely, the weights of voxels indicating that a previously detected surface is still present may be reduced based on new measurements indicating that a surface is no longer present within the location or a difference in the measurements such that the presence of a surface cannot be confirmed.

[0062] The techniques as described herein may be used with or separately from many types of devices, including wearable or portable devices with limited computing resources, that provide cross-reality scenes, and for many types of scenes. In some embodiments, the techniques may be implemented by a service that forms part of an XR system.

[0063] Figures 1-2 illustrate such a scene. For illustrative purposes, an AR system is used as an example of an XR system. Figures 3-8 illustrate an example AR system including one or more processors, memory, sensors, and a user interface that can operate in accordance with the techniques described herein.

[0064] With reference to Figure 1, an outdoor AR scene 4 is depicted in which a user of the AR technology sees a physical world park-like setting 6 featuring people, trees, buildings in the background, and a concrete platform 8. In addition to these items, the user of the AR technology also perceives that they "see" a robot figure 10 standing on the physical world concrete platform 8, and a flying cartoon-like avatar character 2 that appears to be an anthropomorphic bumblebee, although these elements (e.g., the avatar character 2 and the robot figure 10) do not exist in the physical world. Due to the extreme complexity of the human visual perception and nervous system, it is difficult to produce AR technology that facilitates a comfortable, natural-feeling, and rich presentation of virtual image elements among other virtual or physical world image elements.

[0065] Such AR scenes can be achieved using a system that includes a 3D reconstruction component that can build and update a representation of the physical world surfaces around the user. This representation can be used for occluding rendering, placing virtual objects into physics-based interaction states, and for virtual character path planning and navigation, or other operations where information about the physical world is used. Figure 2 depicts another example of an indoor AR scene 200 showing an example 3D reconstruction use case including visual occlusion 202, physics-based interaction 204, and environment inference 206, according to some embodiments.

[0066] The exemplary scene 200 is a living room with a wall, a bookcase on one side of the wall, a floor lamp in the corner of the room, a floor, a sofa, and a coffee table on the floor. In addition to these physical items, the user of the AR technology also perceives virtual objects such as an image on the wall behind the sofa, a bird that flew in through the door, a deer peeking out of the bookcase, and an ornament in the form of a windmill placed on the coffee table. For the image on the wall, the AR technology requires information not only about the surface of the wall, but also about the objects and surfaces in the room, such as the lamp shape, which occludes the image and renders the virtual object correctly. For the bird that flew in, the AR technology requires information about all objects and surfaces around the room to render the bird with realistic physics and avoid bouncing off the objects and surfaces or the bird in case of collision. For the deer, the AR technology requires information about the surfaces, such as the floor or the coffee table, and calculates where the deer should be placed. For the windmill, the system may identify it as a separate object from the table and may infer that it is movable, while the corner of the shelf or the corner of the wall may be inferred to be stationary. Such specificity can be used in inferences regarding the parts of the scene that are used or updated in each of the various operations.

[0067] The scene may be presented to the user via a system that includes multiple components, including a user interface that may stimulate one or more user senses, including sight, sound, and / or touch. In addition, the system may include one or more sensors that may measure parameters of the physical portion of the scene, including the user's position and / or movement within the physical portion of the scene. Furthermore, the system may include one or more computing devices with associated computer hardware, such as memory. These components may be integrated into a single device or distributed across multiple interconnected devices. In some embodiments, some or all of these components may be integrated into a wearable device.

[0068] 3 depicts an AR system 302 configured to provide an experience of AR content that interacts with a physical world 306, according to some embodiments. The AR system 302 may include a display 308. In the illustrated embodiment, the display 308 may be worn by a user as part of a headset such that the user may wear the display over their eyes like a pair of goggles or glasses. At least a portion of the display may be transparent such that the user may observe a see-through reality 310. The see-through reality 310 may correspond to a portion of the physical world 306 within a current perspective of the AR system 302, which may correspond to the user's perspective when the user is wearing a headset that incorporates both the display and sensors of the AR system and obtains information about the physical world.

[0069] The AR content may also be presented on the display 308, overlaid on the see-through reality 310. To provide accurate interaction between the AR content and the see-through reality 310 on the display 308, the AR system 302 may include a sensor 322 configured to capture information about the physical world 306.

[0070] The sensor 322 may include one or more depth sensors that output depth images 312. Each depth image 312 may have multiple pixels, each of which may represent a distance to a surface in the physical world 306 in a particular direction relative to the depth sensor. Raw depth data may come from the depth sensors to create depth images. Such depth images may be updated as fast as the depth sensors can form new images, which may be hundreds or thousands of times per second. However, the data may be noisy and incomplete and have holes, which are shown on the depth image illustrated as black pixels. In some embodiments, holes may be pixels that have no value assigned to them or have a low confidence such that any value falls below a threshold and is ignored.

[0071] The system may include other sensors, such as image sensors. The image sensors may obtain information that may be processed to represent the physical world in other ways. For example, images may be processed in the 3D reconstruction component 316 to create a mesh that represents connected portions of objects in the physical world. Metadata about such objects, including, for example, color and surface texture, may also be obtained using the sensors and stored as part of the 3D reconstruction.

[0072] The system may also obtain information about the user's head pose relative to the physical world. In some embodiments, the sensor 310 may include an inertial measurement unit, which may be used to calculate and / or determine the head pose 314. The head pose 314 for a depth image may indicate the current viewpoint of the sensor capturing the depth image, for example with six degrees of freedom (6DoF), but the head pose 314 may be used for other purposes, such as to relate image information to a particular part of the physical world or to relate the position of a display worn on the user's head to the physical world. In some embodiments, the head pose information may be derived in a manner other than from an IMU, such as from analyzing objects in an image.

[0073] The 3D reconstruction component 316 may receive the depth images 312 and head pose 314 and any other data from the sensors and integrate the data into a reconstruction 318, which may at least appear to be a single combined reconstruction. The reconstruction 318 may be more complete and less noisy than the sensor data. The 3D reconstruction component 316 may update the reconstruction 318 using spatial and temporal averaging over time of the sensor data from multiple viewpoints.

[0074] Reconstruction 318 may include a representation of the physical world in one or more data formats, including, for example, voxels, meshes, planes, etc. Different formats may represent alternative representations of the same portion of the physical world or may represent different portions of the physical world. In the illustrated example, on the left side of reconstruction 318, a portion of the physical world is presented as a global surface, and on the right side of reconstruction 318, a portion of the physical world is presented as a mesh.

[0075] Reconstruction 318 may be used for AR functions, such as producing a surface representation of the physical world for occlusion handling or physics-based processing. This surface representation may change as the user moves or objects in the physical world change. Aspects of reconstruction 318 may be used by component 320, for example, to produce a changing global surface representation in world coordinates, which may be used by other components.

[0076] AR content may be generated, such as by an AR application 304, based on this information. The AR application 304 may be, for example, a game program that performs one or more functions based on information about the physical world, such as visual occlusion, physics-based interactions, and environmental inference. These functions may be performed by querying data in different formats from the reconstruction 318 produced by the 3D reconstruction component 316. In some embodiments, the component 320 may be configured to output updates as the representation in the region of interest of the physical world changes. The region of interest may be set to approximate a portion of the physical world in the vicinity of the user of the system, such as a portion in the user's field of view, or projected (predicted / determined) to occur in the user's field of view.

[0077] The AR application 304 may use this information to generate and update AR content, the virtual portions of which may be presented on the display 308 in combination with the see-through reality 310 to create a realistic user experience.

[0078] In some embodiments, the AR experience may be provided to the user through a wearable display system. FIG. 4 illustrates an example of a wearable display system 80 (hereinafter referred to as "system 80"). System 80 includes a head-mounted display device 62 (hereinafter referred to as "display device 62") and various mechanical and electronic modules and systems to support the functionality of display device 62. Display device 62 may be coupled to a frame 64, which is wearable by a display system user or viewer 60 (hereinafter referred to as "user 60") and configured to position display device 62 in front of the eyes of user 60. According to various embodiments, display device 62 may be a sequential display. Display device 62 may be monocular or binocular. In some embodiments, display device 62 may be an example of display 308 in FIG. 3.

[0079] In some embodiments, a speaker 66 is coupled to the frame 64 and positioned proximate the ear canal of the user 60. In some embodiments, another speaker, not shown, is positioned adjacent another ear canal of the user 60 to provide stereo / adjustable sound control. The display device 62 is operatively coupled, such as by wired leads or wireless connectivity 68, to a local data processing module 70, which may be mounted in a variety of configurations, such as fixedly attached to the frame 64, fixedly attached to a helmet or hat worn by the user 60, built into headphones, or otherwise removably attached to the user 60 (e.g., in a backpack configuration, in a belt-coupled configuration).

[0080] The local data processing module 70 may include a processor and digital memory, such as non-volatile memory (e.g., flash memory), both of which may be utilized to aid in processing, caching, and storing data. The data includes a) data captured from sensors (e.g., which may be operatively coupled to the frame 64 or otherwise attached to the user 60), such as image capture devices (such as cameras), microphones, inertial measurement units, accelerometers, compasses, GPS units, wireless devices, and / or gyroscopes, and / or b) data obtained and / or processed using the remote processing module 72 and / or remote data repository 74, possibly for passing to the display device 62 after processing or reading. The local data processing module 70 may be operatively coupled to the remote processing module 72 and the remote data repository 74 by communication links 76, 78, via wired or wireless communication links, etc., respectively, such that these remote modules 72, 74 are operatively coupled to each other and available as resources to the local processing and data module 70. 3 may be implemented, at least in part, within the local data processing module 70. For example, the local data processing module 70 may be configured to execute computer-executable instructions to generate, at least in part, a physical world representation based on at least a portion of the data.

[0081] In some embodiments, the local data processing module 70 may include one or more processors (e.g., a graphics processing unit (GPU)) configured to analyze and process the data and / or image information. In some embodiments, the local data processing module 70 may include a single processor (e.g., a single-core or multi-core ARM processor), which would limit the computational budget of the module 70 but allow for smaller devices. In some embodiments, the 3D reconstruction component 316 may generate the physical world representation in real time over a non-predetermined space using a computational budget of less than a single ARM core, such that the remaining computational budget of the single ARM core may be accessed for other uses, such as, for example, extracting meshes.

[0082] In some embodiments, the remote data repository 74 may include a digital data storage facility, which may be available through the Internet or other networking arrangement in a "cloud" resource arrangement. In some embodiments, all data is stored and all calculations are performed in the local data processing module 70, allowing fully autonomous use from remote modules. The 3D reconstructions may, for example, be stored in whole or in part in this repository 74.

[0083] In some embodiments, the local data processing module 70 is operably coupled to a battery 82. In some embodiments, the battery 82 is a removable power source, such as a commercially available battery. In other embodiments, the battery 82 is a lithium ion battery. In some embodiments, the battery 82 includes both an internal lithium ion battery that is rechargeable by the user 60 during periods of non-operation of the system 80, and a removable battery, so that the user 60 may operate the system 80 for longer periods of time without having to plug in a power source and charge the lithium ion battery, or without having to shut off the system 80 and replace the battery.

[0084] 5A illustrates a user 30 wearing an AR display system that renders AR content as the user 30 moves through a physical world environment 32 (hereafter referred to as "environment 32"). The user 30 positions the AR display system at a location 34, and the AR display system records ambient information of the passable world (e.g., digital representations of real objects in the physical world that may be stored and updated with changes to the real objects in the physical world) for the location 34, such as pose relationships to mapped features or directional audio input. The location 34 is aggregated to a data input 36 and processed by at least a passable world module 38, which may be implemented by, for example, processing on the remote processing module 72 of FIG. 4. In some embodiments, the passable world module 38 may include a 3D reconstruction component 316.

[0085] The passable world module 38 determines where and how the AR content 40 may be placed in the physical world as determined from the data input 36. The AR content is "placed" in the physical world by presenting, via the user interface, both a representation of the physical world and the AR content, the AR content is rendered as if it were interacting with objects in the physical world, and the objects in the physical world are presented as if the AR content were obscuring the user's view of those objects, when appropriate. In some embodiments, the AR content may be placed by appropriately selecting a portion of a fixed element 42 (e.g., a table) from the reconstruction (e.g., reconstruction 318) and determining the shape and position of the AR content 40. As an example, the fixed element may be a table, and the virtual content may be positioned to appear as if it were on the table. In some embodiments, the AR content may be placed within a structure in the field of view 44, which may be the current field of view or an estimated future field of view. In some embodiments, the AR content may be placed relative to a mapped mesh model 46 of the physical world.

[0086] As depicted, the fixed elements 42 serve as a substitute for any fixed elements in the physical world, which may be stored in the passable world module 38 such that the user 30 may perceive content on the fixed elements 42 without the system having to map to the fixed elements 42 each time it is visible to the user 30. The fixed elements 42 may thus be mapped mesh models from a previous modeling session or determined from a separate user, but stored on the passable world module 38 for future reference by multiple users. Thus, the passable world module 38 may allow the device of the user 30 to recognize the environment 32 from the previously mapped environment and display AR content without first mapping the environment 32, saving computational processes and cycles and avoiding latency of any rendered AR content.

[0087] A mapped mesh model 46 of the physical world may be created by the AR display system, and appropriate surfaces and metrics for interacting with and displaying the AR content 40 can be mapped and stored in the passable world module 38 for future retrieval by the user 30 or other users without the need for remapping or modeling. In some embodiments, the data inputs 36 are inputs such as geographic location, user identification, and current activity that indicate to the passable world module 38 the fixed elements 42 of one or more available fixed elements, the AR content 40 last placed on the fixed elements 42, and whether that same content should be displayed (such AR content is "persistent" content regardless of whether the user is viewing a particular passable world model).

[0088] Even in embodiments where objects are considered fixed, the passable world module 38 may be updated from time to time to account for possible changes in the physical world. Models of fixed objects may be updated at a very low frequency. Other objects in the physical world may be moving or otherwise not considered fixed. To render the AR scene with a sense of realism, the AR system may update the positions of these non-fixed objects at a much higher frequency than the frequency used to update fixed objects. To enable accurate tracking of all of the objects in the physical world, the AR system may draw information from multiple sensors, including one or more image sensors.

[0089] FIG. 5B is a schematic diagram of the viewing optics assembly 48 and associated components. In some embodiments, two eye tracking cameras 50, directed at the user's eye 49, detect metrics of the user's eye 49, such as eye shape, eyelid occlusion, pupil direction, and phosphenes on the user's eye 49. In some embodiments, one of the sensors may be a depth sensor 51, such as a time-of-flight sensor, that emits signals into the world and detects reflections of those signals from nearby objects to determine the distance to a given object. The depth sensor may, for example, quickly determine whether objects are entering the user's field of view, either as a result of the objects' motion or a change in the user's posture. However, information about the location of objects in the user's field of view may alternatively or additionally be collected using other sensors. Depth information may be obtained, for example, from a stereoscopic image sensor or a plenoptic sensor.

[0090] In some embodiments, the world camera 52 records a view beyond the peripheral vision, maps the environment 32, and detects inputs that may affect the AR content. In some embodiments, the world camera 52 and / or the camera 53 may be grayscale and / or color image sensors that may output grayscale and / or color image frames at fixed time intervals. The camera 53 may also capture a physical world image within the user's field of view at a specific time. The pixels of a frame-based image sensor may be repeatedly sampled even if their values ​​are invariant. The world camera 52, the camera 53, and the depth sensor 51 each have a separate field of view 54, 55, and 56, respectively, and collect and record data from a physical world scene, such as the physical world environment 32 depicted in FIG. 5A.

[0091] The inertial measurement unit 57 may determine the movement and orientation of the viewing optics assembly 48. In some embodiments, each component is operably coupled to at least one other component. For example, the depth sensor 51 is operably coupled to the eye tracking camera 50 as a check of accommodation measured against the actual distance the user's eyes 49 are looking at.

[0092] It should be understood that the viewing optics assembly 48 may include some of the components illustrated in FIG. 5B, or may include components instead of or in addition to the components illustrated. In some embodiments, for example, the viewing optics assembly 48 may include two world cameras 52 instead of four. Alternatively, or in addition, the cameras 52 and 53 need not capture visible light images of their full field of view. The viewing optics assembly 48 may include other types of components. In some embodiments, the viewing optics assembly 48 may include one or more dynamic visual sensors (DVS), whose pixels may respond asynchronously to relative changes in light intensity above a threshold.

[0093] In some embodiments, the viewing optics assembly 48 may not include a depth sensor 51 based on time-of-flight information. In some embodiments, for example, the viewing optics assembly 48 may include one or more plenoptic cameras, the pixels of which may capture the light intensity and angle of incident light, from which depth information can be determined. For example, the plenoptic camera may include an image sensor overlaid with a transmissive diffractive mask (TDM). Alternatively, or in addition, the plenoptic camera may include an image sensor containing angle-sensing pixels and / or phase-detection autofocus pixels (PDAF) and / or a microlens array (MLA). Such sensors may serve as a source of depth information instead of, or in addition to, the depth sensor 51.

[0094] It should also be understood that the configuration of components in FIG. 5B is illustrated as an example. Viewing optics assembly 48 may include components with any suitable configuration, which may be configured to provide the user with the maximum field of view practical for a particular set of components. For example, if viewing optics assembly 48 has one world camera 52, the world camera may be located in a central region of the viewing optics assembly instead of on the side.

[0095] Information from sensors in the viewing optics assembly 48 may be coupled to one or more of the processors in the system. The processors may generate data that may be rendered to cause the user to perceive virtual content interacting with objects in the physical world. The rendering may be implemented in any suitable manner, including generating image data that depicts both physical and virtual objects. In other embodiments, the physical and virtual content may be depicted in a scene by modulating the opacity of a display device through which the user sees the physical world. The opacity may be controlled to create the appearance of virtual objects and also block objects in the physical world that are occluded by the virtual objects from being seen by the user. In some embodiments, the image data may include only the virtual content, which may be modified (e.g., clipping the content to account for occlusion) so that when viewed through the user interface, the virtual content is perceived by the user as interacting realistically with the physical world. Regardless of how the content is presented to the user, a model of the physical world is required so that properties of the virtual objects that may be affected by the physical objects, including the shape, position, motion, and visibility of the virtual objects, may be correctly calculated. In some embodiments, the model may include a reconstruction of the physical world, e.g., reconstruction 318.

[0096] The model may be created from data collected from sensors on the user's wearable device, although in some embodiments the model may be created from data collected by multiple users, which may be aggregated in a computing device remote from all users (and may be "in the cloud").

[0097] The model may be created, at least in part, by a 3D reconstruction system, such as the 3D reconstruction component 316 of FIG. 3, depicted in further detail in FIG. 6. The 3D reconstruction component 316 may include a perception module 160, which may generate, update, and store representations for portions of the physical world. In some embodiments, the perception module 160 may represent a portion of the physical world within the reconstruction range of a sensor as a plurality of voxels. Each voxel corresponds to a 3D cube of a given volume within the physical world and may include surface information indicating whether a surface exists within the volume represented by the voxel. A voxel may be assigned a value indicating whether its corresponding volume has been determined to include a surface of a physical object, has been determined to be empty, or has not yet been measured with a sensor and therefore its value is unknown. It should be understood that the value indicates that voxels determined to be empty or unknown need not be explicitly stored, and that the value of a voxel may be stored in computer memory in any suitable manner, including not storing information regarding voxels determined to be empty or unknown. In some embodiments, a portion of the computer memory of the XR system may be mapped to represent a grid of voxels and store the values ​​of individual voxels.

[0098] 7A depicts an example of a 3D space 100 that is discretized into voxels 102. In some embodiments, the perception module 160 may set the volume of voxels to determine objects of interest, capture features of the objects of interest, and avoid redundant information. For example, the perception module 160 may be configured to identify larger objects and surfaces, such as walls, ceilings, floors, and large furniture. Thus, the volume of voxels may be relatively large in size, e.g., 4 cm 3 may be set to a cube.

[0099] The reconstruction of the physical world, including the voxels, may be referred to as a solid model. Information for creating the solid model may be created over time as the sensor moves about the physical world. Such motion may occur as a user of a wearable device, including the sensor, moves around. Figures 8A-F depict an example of reconstructing the physical world into a solid model. In the illustrated example, the physical world includes a portion of a surface 180, which is shown in Figure 8A. In Figure 8A, a sensor 182 at a first location may have a field of view 184 in which the portion of the surface 180 is visible.

[0100] The sensor 182 may be of any suitable type, such as a depth sensor. However, the depth data may be derived from an image sensor or in other ways. The perception module 160 may receive the data from the sensor 182 and then set values ​​of a number of voxels 186, as shown in FIG. 8B, to represent a portion 180 of a surface visible by the sensor 182 within a field of view 184.

[0101] In Figure 8C, the sensor 182 may move to a second location and have a field of view 188. As shown in Figure 8D, an additional group of voxels becomes visible, and the values ​​of these voxels may be set to indicate the location of the portion of the surface that has entered the field of view 188 of the sensor 182. The values ​​of these voxels may be added to a solid model for the surface.

[0102] In FIG. 8E, the sensor 182 may further move to a third location and have a field of view 190. In the illustrated embodiment, an additional portion of the surface becomes visible within the field of view 190. As shown in FIG. 8F, an additional group of voxels may become visible and the values ​​of these voxels may be set to indicate the location of the portion of the surface that entered the field of view 190 of the sensor 182. The values ​​of these voxels may be added to a solid model for the surface. As shown in FIG. 6, this information may be stored as solid information 162a as part of the persisted world. Information about the surface, such as color or texture, may also be stored. Such information may be stored, for example, as solid metadata 162b.

[0103] In addition to generating information for the persisted world representation, perception module 160 may identify and output indications of changes in the area surrounding a user of the AR system. Such indications of changes may trigger updates to volumetric data stored as part of the persisted world, or trigger other functionality, such as triggering generate AR content, update AR content, component 304.

[0104] In some embodiments, the perception module 160 may identify changes based on a signed distance function (SDF) model. The perception module 160 may be configured to receive sensor data, such as, for example, depth images 160a and head poses 160b, and then fuse the sensor data into an SDF model 160c. The depth images 160a may provide SDF information directly, or the images may be processed to become SDF information. The SDF information represents distances from sensors used to capture that information. Because those sensors may be part of the wearable unit, the SDF information may represent the physical world from the line of sight of the wearable unit, and therefore the user. The head pose 160b may enable the SDF information to be related to voxels in the physical world.

[0105] Referring back to FIG. 6, in some embodiments, perception module 160 may generate, update, and store representations for portions of the physical world within a perception range. The perception range may be determined, at least in part, based on the reconstruction range of the sensor, which may be determined, at least in part, based on the limits of the observation range of the sensor. As a specific example, an active depth sensor operating using active IR pulses may operate reliably over a range of distances, creating an observation range for the sensor, which may be a few centimeters or tens of centimeters to several meters.

[0106] FIG. 7B depicts a reconstruction range for a sensor 104 having a viewpoint 106. A reconstruction of a 3D space within the viewpoint 106 may be constructed based on data captured by the sensor 104. In the illustrated example, the sensor 104 has an observation range of 40 cm to 5 m. In some embodiments, the reconstruction range of the sensor may be determined to be smaller than the observation range of the sensor, since the sensor output closer to its observation limit may be noisier, incomplete, and inaccurate. For example, in the illustrated example of 40 cm to 5 m, the corresponding reconstruction range may be set to 1 to 3 m, and data collected with the sensor showing surfaces outside this range may not be used.

[0107] In some embodiments, the perception range may be larger than the reconstruction range of the sensor. If the component 164 that uses data about the physical world requests data about an area in the perception range outside the portion of the physical world in the current reconstruction range, that information may be provided from the persisted world 162. Thus, information about the physical world may be easily accessible by query. In some embodiments, an API may be provided to respond to such queries and provide information about the user's current perception range. Such techniques may reduce the time required to access an existing reconstruction and provide an improved user experience.

[0108] In some embodiments, the perception range may be a 3D space corresponding to a bounding box centered around the user location. As the user moves, the portion of the physical world within the perception range that may be queriable by component 164 may also move with the user. FIG. 7C depicts a bounding box 110 centered around location 112. It should be understood that the size of the bounding box 110 may be set to enclose the observation range of the sensor with a reasonable extension since a user may not move at an unreasonable speed. In the illustrated example, the sensor worn by the user has an observation limit of 5 m. The bounding box 110 is centered around a ... 3 It is set as a cube of .

[0109] 6, the 3D reconstruction component 316 may include additional modules that may interact with the perception module 160. In some embodiments, the persisted world module 162 may receive a representation for the physical world based on data obtained by the perception module 160. The persisted world module 162 may also include various formats of the representation of the physical world. For example, volumetric metadata 162b, such as voxels, may be stored along with the meshes 162c and planes 162d. In some embodiments, other information, such as depth images, may also be saved.

[0110] In some embodiments, the perception module 160 may include modules that generate representations for the physical world in various formats, including, for example, meshes 160d, planes, and semantics 160e. These modules may generate the representations based on data within the perception range of one or more sensors at the time the representations are generated and data captured at previous times and information within the persisted world 162. In some embodiments, these components may operate on depth information captured using a depth sensor. However, the AR system may also include a vision sensor and generate such representations by analyzing monocular or binocular visual information.

[0111] In some embodiments, these modules may operate on regions of the physical world. They may be triggered to update a subregion of the physical world when perception module 160 detects a change in the physical world in that subregion. Such a change may be detected by other criteria, such as, for example, detecting a new surface in SDF model 160c, or by a change in value of a sufficient number of voxels representing the subregion.

[0112] The 3D reconstruction components 316 may include components 164 that may receive a representation of the physical world from the perception module 160. Information about the physical world may be pulled by these components, for example, according to usage requests from applications. In some embodiments, information may be pushed to the usage components, such as via indications of changes in pre-identified areas or changes in the physical world representation within a perception range. Components 164 may include, for example, game programs and other components that perform processing for visual occlusion, physics-based interactions, and environmental inference.

[0113] In response to a query from component 164, perception module 160 may transmit a representation for the physical world in one or more formats. For example, when component 164 indicates that the use is for visual occlusion or physics-based interaction, perception module 160 may transmit a representation of a surface. When component 164 indicates that the use is for environmental inference, perception module 160 may transmit meshes, planes, and semantics of the physical world.

[0114] In some embodiments, perception module 160 may include a component that formats information and provides it to component 164. An example of such a component may be ray casting component 160f. A usage component (e.g., component 164) may, for example, query information about the physical world from a particular viewpoint. Ray casting component 160f may select from one or more representations of the physical world data within a field of view from that viewpoint.

[0115] As should be understood from the foregoing description, the perception module 160 or another component of the AR system may process data and create a 3D representation of a portion of the physical world. The data to be processed may be reduced, at least in part, by thinning portions of the 3D reconstruction volume based on the camera frustum and / or depth image, extracting and persisting planar data, capturing, persisting, and updating the 3D reconstruction data on a block-by-block basis to enable local updates while maintaining neighborhood consistency, providing occlusion data to an application, generating such scenes in which the occlusion data is derived from a combination of one or more depth data sources, and / or performing multi-stage mesh simplification.

[0116] The 3D reconstruction system may integrate sensor data from multiple viewpoints of the physical world over time. The pose (e.g., position and orientation) of the sensor may be tracked as the device containing the sensor is moved. As the frame pose of the sensor and other pose-related methods are understood, each of these multiple viewpoints of the physical world may be fused together into a single combined reconstruction. The reconstruction may be more complete and less noisy than the original sensor data by using spatial and temporal averaging (i.e., averaging data from multiple viewpoints over time). The reconstruction may contain data of different levels of sophistication, including, for example, raw data such as live depth data, fused volumetric data such as voxels, and calculated data such as meshes.

[0117] 9A depicts a cross-sectional view of a scene 900 along a plane parallel to the y- and z-coordinates, according to some embodiments. Surfaces in the scene may be represented using a Truncated Signed Distance Function (TSDF), which may map each 3D point in the scene to its distance to the nearest surface. Voxels that represent positions on the surface may be assigned a zero depth. Surfaces in the scene may accommodate a range of uncertainty, such as because an XR system may take multiple depth measurements, e.g., scan a surface twice, from two different angles, or by two different users. Each measurement may result in a depth that is slightly different from the other measured depths.

[0118] Based on the range of uncertainty of the measured location of the surface, the XR system may assign weights associated with voxels within that range of uncertainty. In some embodiments, voxels beyond a certain distance T from the surface may not be useful at all except with a high confidence. Those voxels may correspond to locations in front of or behind the surface. Those voxels may simply be assigned a magnitude of T to simplify processing. Thus, voxels may be assigned values ​​within a cutoff band [-T, T] from the estimated surface, with negative values ​​indicating locations in front of the surface and positive values ​​indicating locations behind the surface. The XR system may calculate a weight to represent the certainty about the calculated signed distance to the surface. In the illustrated embodiment, the weights range from "1" to "0", with "1" representing most certain and "0" representing least certain. The weighting may be determined based on the technique used to measure depth, due to the different accuracy provided by different techniques, including, for example, stereoscopic imaging, structured light projection, time-of-flight cameras, sonar imaging, and the like. In some embodiments, voxels corresponding to distances for which no accurate measurement can be made may be assigned a weighting of zero. In such cases, the magnitude of the voxel may be set to any value, such as T.

[0119] The XR system may represent the scene 900 by a grid of voxels 902. As explained above, each voxel may represent a volume of the scene 900. Each voxel may store a signed distance from the voxel's center point to its nearest surface. A positive sign may indicate the back of the surface, while a negative sign may indicate the front of the surface. The signed distance may be calculated as a weighted combination of distances obtained from multiple measurements. Each voxel may store a weight that corresponds to the stored signed distance.

[0120] In the illustrated example, the scene 900 includes a surface 904 that is captured in a depth image (not shown) by a depth sensor 906. The depth image may be stored in computer memory in any convenient manner that captures the distance between a reference point in the scene 900 and the surface. In some embodiments, the depth image may be represented as values ​​in a plane parallel to x- and y-coordinates, as illustrated in FIG. 9A, where the reference point is the origin of the coordinate system. Locations in the XY plane may correspond to directions relative to the reference point. Values ​​at those pixel locations may indicate the distance from the reference point to the nearest surface in the direction indicated by the coordinates in the plane. Such a depth image may include a grid of pixels (not shown) in a plane parallel to the x- and y-coordinates. Each pixel may indicate the distance in a particular direction from the image sensor 906 to the surface 904.

[0121] The XR system may update the grid of voxels based on the image captured by the depth sensor 906. The TSDF stored in the grid of voxels may be calculated based on the depth image and the corresponding pose of the depth sensor 906. A voxel in the grid may be updated based on one or more pixels in the depth image, for example, depending on whether a silhouette of the voxel overlaps with one or more pixels.

[0122] In the illustrated example, voxels in front of the surface 904 but outside the cutoff distance -T are assigned a signed distance of the cutoff distance -T and a weight of "1" since it is certain that everything between the sensor and the surface is empty. Voxels between the cutoff distance -T and the surface 904 are assigned a signed distance of the cutoff distance -T~0 and a weight of "1" since it is certain that they are outside the object. Voxels between the surface 904 and a given depth behind the surface 904 are assigned a signed distance of 0~cutoff distance T and a weight of "1"~"0" since the further a voxel is behind the surface, the less certain it is that it represents the inside of an object or void. After the given depth, all voxels behind the surface receive a zero update. FIG. 9B depicts the TSDF stored within the row of voxels of FIG. 9A. Additionally, some of the grid of voxels may not be updated for the present depth image, which reduces latency and saves computational power. For example, all voxels that do not fall within the camera frustum 908 are not updated for the present depth image. U.S. Patent Application No. 16 / 229,799 (incorporated herein in its entirety) describes thinning out some of the grid of voxels for fast volumetric reconstruction.

[0123] In some embodiments, depth images may contain ambiguous data, which makes the XR system uncertain about whether to update corresponding voxels. In some embodiments, these ambiguous data may be used to accelerate the creation and updating of the 3D representation of the XR environment, instead of discarding the ambiguous data and / or requesting new depth images. These techniques described herein enable the creation and updating of the 3D representation of the XR environment with low usage of computational resources. In some embodiments, these techniques may reduce artifacts in the output of the XR system due to latency, for example, caused by delays until update information is available or caused by delays associated with large amounts of computation.

[0124] FIG. 10 depicts an example depth sensor 1202 that may be used to capture depth information of an object 1204, according to some embodiments. The sensor 1202 may include a modulator 1206 configured to modulate a signal, for example, with a periodic pattern of detectable frequencies. For example, an IR light signal may be modulated with one or more periodic signals at frequencies between 1 MHz and 100 MHz. The light source 1208 may be controlled by the modulator 1206 to emit light 1210 modulated with a pattern of one or more desired frequencies. Reflected light 1212 that is reflected by the object 1204 may be collected by a lens 1214 and sensed by a pixel array 1216. The pixel array 1216 may include one or more pixel circuits 1218. Each pixel circuit 1218 may produce data for a pixel of an image output from the sensor 1202 that corresponds to light reflected from the object in a direction relative to the sensor 1202.

[0125] The mixer 1220 may receive the signal output from the modulator 1206 so that it may act as a downconverter. The mixer 1220 may output one or more phase images 1222 based on, for example, the phase shift between the reflected light 1212 and the emitted light 1210. Each image pixel of the one or more phase images 1222 may have a phase based on the time it takes the emitted light 1210 to travel from the light source to the surface of the object and back to the sensor 1202. The phase of the light signal may be measured by comparison of the transmitted and reflected light at four points, which may correspond to multiple locations, such as four, over a cycle of the signal from the modulator 1206. The average phase difference at these points may be calculated. The depth from the sensor to the point on the object surface that reflected the light wave may be calculated based on the phase shift of the reflected light and the wavelength of the light.

[0126] The output of the mixer 1220 may be formed into one or more amplitude images 1224 based on, for example, one or more peak amplitudes of the reflected light 1212 as measured at each of the pixels in the array 1216. Some pixels may measure the reflected light 1212 with low peak amplitudes, below a predefined threshold, which may be correlated with, for example, large noise. The low peak amplitudes may be caused by one or more of a variety of reasons, including, for example, poor surface reflectivity, a long distance between the sensor and the object 1204, and the like. Thus, low amplitudes in the amplitude images may indicate a low confidence level of the depth indicated by the corresponding pixel of the depth image. In some embodiments, those pixels of the depth image that are associated with a low confidence level may be determined as invalid. Other criteria may also be used as an indication of low confidence instead of or in addition to low amplitude. In some embodiments, asymmetry of the four points for the phase measurements may indicate low confidence. The asymmetry may be measured, for example, by a standard deviation of one or more phase measurements over a period. Other criteria that may be used to assign a low confidence level may include oversaturation and / or undersaturation of the pixel circuitry. On the other hand, pixels of a depth image having depth values ​​associated with a confidence level higher than a threshold may be assigned as valid pixels.

[0127] FIG. 11 depicts a method 1000 of operating an XR system and reconstructing a 3D environment, according to some embodiments. The method 1000 may begin by determining valid and invalid pixels in a depth image (act 1002). Invalid pixels may be selectively defined, for example, using heuristic criteria to encompass ambiguous data in the depth image or otherwise assign a low confidence to a distance assigned to a voxel such that the voxel may not be used in some or all processing operations. In some embodiments, invalid pixels may be caused by one or more of a variety of reasons, including, for example, bright surfaces, measurements made on surfaces outside the operating range of the sensor, calculation errors due to asymmetries in the captured data, over- or under-saturation of the sensor, and the like. Any or all of the above or other criteria may be used to invalidate pixels in the depth image.

[0128] 12 depicts a method 1002 for determining valid and invalid pixels in a depth image, according to some embodiments. Method 1002 may include capturing depth information (e.g., an infrared intensity image) in response to changes in a user's field of view, e.g., caused by head pose movements, user location, and / or physical objects in the environment (act 1102). Method 1002 may calculate one or more amplitude images and one or more phase images based on the captured depth information (act 1104). Method 1002 may calculate a depth image based on the calculated one or more amplitude images and one or more phase images (act 1106), such that each pixel of the depth image has an associated amplitude that may indicate a confidence level of the depth represented by the pixel of the depth image.

[0129] Returning to FIG. 11, processing may be based on valid and invalid pixels. In some embodiments, pixels that have a confidence level below a threshold or that otherwise fail the validity criteria and / or meet the invalidity criteria may be set as invalid pixels. Other pixels may be considered valid. In some embodiments, pixels that have a confidence level above a threshold or that otherwise pass the validity criteria and / or meet the validity criteria may be set as valid pixels. Other pixels may be considered invalid. Method 1000 may update the 3D reconstruction of the XR environment based on the valid and / or invalid pixels (act 1004). A grid of voxels, such as that shown in FIG. 9A, may be calculated from the pixels. Surfaces in the environment may be calculated from the grid of voxels, for example, using a marching cubes algorithm. These surfaces may be processed to identify foreground objects and other objects. Foreground objects may be stored to allow them to be processed and updated relatively quickly. For example, foreground objects may be stored in an object map, as described above.

[0130] In some embodiments, the foreground object map may be updated using different data that adds objects to the map rather than removing them from the map. For example, only valid pixels may be used to add objects while some invalid pixels may be used to remove objects. FIG. 13 depicts a method 1004 of updating a grid of voxels with valid pixels of a depth image measured by a sensor, according to some embodiments. In the example of FIG. 13, the signed distance and weight assigned to each voxel may be calculated as each new depth sensor measurement is made, for example based on a moving average. The average may be weighted to favor more recent measurements over earlier measurements and / or to favor measurements with a higher confidence. Additionally, in some embodiments, measurements that are deemed invalid may not be used for updating at all. The method 1004 may include calculating a signed distance and a weight based on the effective pixels of the depth image (act 1302), combining the calculated weight with the individual stored weight of the voxel (act 1304), and combining the calculated signed distance with the individual stored signed distance of the voxel (act 1306). In some embodiments, act 1306 may be performed after act 1304 based on the combined weight of act 1304. In some embodiments, act 1306 may be performed before act 1304. Referring back to FIG. 11, in some embodiments, after updating the 3D reconstruction with the effective pixels, the method 1000 may update a representation of the 3D reconstruction (act 1008). As a result of the update, the representation of the world structure may have a different geometry, including, for example, a different mesh model and a global surface with a different shape. In some embodiments, the updating step may include removing the object from the object map, with the updated voxels indicating that the previously detected object is no longer present or has moved, e.g. because a new object has been detected and / or a surface behind the previously detected location of the object has been detected with sufficient confidence.

[0131] Some or all of the invalid voxels may also be used in the process to remove previously detected objects. An example depth image 1400A is depicted in FIG. 14A, showing both valid and invalid pixels. FIG. 14B depicts an example depth image 1400B, which is the depth image 1400A with the invalid pixels removed. A comparison of FIGS. 14A and 14B shows that the image with invalid pixels has more data than the image with the invalid pixels removed. The data may be noisy, but may be adequate to identify whether an object is present, or conversely, not present, as more distant surfaces are observed. Thus, data such as depicted in FIG. 14A may be used to update the object map and remove the object. Such an updating step is done with more data and therefore may occur more quickly if only data such as depicted in FIG. 14B is present. Because an update to remove an object does not involve inaccurately locating the object in the map, faster update times may be achieved without the risk of introducing errors.

[0132] The invalid pixels may be used in any suitable manner to remove objects from the object map. For example, separate grids of voxels calculated using only valid pixels and using both valid and invalid pixels may be maintained. Alternatively, the invalid pixels may be processed separately to detect surfaces, which are then used in a separate step to identify objects in the object map that are no longer present.

[0133] In some embodiments, to update the grid of voxels representing the room 1402 shown in the depth image 1400A, each valid pixel in the depth image 1400B may be used to calculate a value for one or more voxels in the grid. For one or more voxels, a signed distance and a weighting may be calculated based on the depth image. The signed distance stored in association with the voxel may be updated with, for example, a weighted combination of the calculated signed distance and the signed distance previously stored in association with the voxel. The weighting stored in association with the voxel may be updated with the voxel. Although an example is described for updating a voxel per pixel of the depth image, in some embodiments, a voxel may be updated based on multiple pixels of the depth image. In some embodiments, for each voxel in the grid, the XR system may first identify one or more pixels in the depth image that correspond to the voxel, and then update the voxel based on the identified pixels.

[0134] 11A , regardless of how the invalid pixels are processed, in act 1006, method 1000 may update the 3D reconstruction of the XR environment with the invalid pixels. In the illustrated example, before depth image 1400A is captured, the representation of room 1402 includes a surface of a cushion on the couch. In depth image 1400A, the group of pixels 1404 that correspond to the cushion may be determined as invalid for a variety of possible reasons. For example, the cushion may have poor reflectance because it is covered in sequins. Act 1006 may update voxels based on the invalid pixels such that the cushion surface is removed from the representation of room 1402 and remains within the representation of room 1402 if it is still on the couch but with poor reflectance if it is removed because processing of only valid pixels would not indicate that the cushion is no longer present, or would not indicate so quickly or with a high degree of confidence. In some embodiments, act 1006 may include inferring the status of a surface based on the depth indicated by the invalid pixels, and removing the cushion from the object map when a surface is detected behind a location where a cushion was previously indicated to be present.

[0135] 15 depicts a method 1006 of updating a grid of voxels as new depth images are obtained, according to some embodiments. The method 1006 may begin by calculating signed distances and weights based on invalid pixels of the depth image (act 1502). The method 1006 may include modifying the calculated weights (act 1504). In some embodiments, the calculated weights may be adjusted based on the time the depth image was captured. For example, a larger weight may be assigned to a more recently captured depth image.

[0136] FIG. 16 depicts a method 1504 of modifying the calculated weights according to some embodiments. The method 1504 may include determining whether, for each calculated weight, a discrepancy exists between the corresponding calculated signed distance and the respective stored signed distance (act 1602). When a discrepancy is observed, the method 1504 may decrease the calculated weight (act 1604). When a discrepancy is not observed, the method 1504 may assign the calculated weight as the modified weight (act 1606). For example, if the cushion is removed too quickly, the invalid pixels in the depth image may include a depth greater than the previously captured depth of the cushion surface, which may indicate that the cushion has been removed. On the other hand, if the cushion is still on the couch but with poor reflectivity, the invalid pixels in the depth image may include a depth comparable to the previously captured depth of the cushion surface, which may indicate that the cushion is still on the couch.

[0137] In act 1506, the method 1006 may combine the modified weights with the individual previously stored weights in the voxel. In some embodiments, for each voxel, the combined weights may be the sum of the previously stored weights and the modified weights calculated from the depth image. In act 1508, the method 1006 may determine whether each of the combined weights exceeds a predetermined value. The predetermined value may be selected based on the confidence level of the invalid pixels, such that pixels with lower confidence levels have less weights. When the combined weights exceed the predetermined value, the method 1006 may further modify the calculated weights. When the combined weights fall below the predetermined value, the method may proceed to combining the individual stored signed distances with the corresponding calculated signed distances (act 1510). In some embodiments, act 1510 may be omitted if the combined weights alone indicate that the surface corresponding to the pixel should be removed.

[0138] In some embodiments, each voxel in the grid of voxels may have a running average of weights stored as new depth images are collected, with each new value being weighted to more quickly indicate a change that should justify adding or removing an object from the object map.

[0139] In some embodiments, after updating the 3D reconstruction with invalid pixels, method 1000 may update the representation of the world structure (act 1008). In some embodiments, act 1008 may remove surfaces from the 3D representation of the environment based on signed distances and weights in the updated pixels. In some embodiments, act 1008 may add previously removed surfaces back to the 3D representation of the environment based on signed distances and weights in the updated pixels.

[0140] In some embodiments, the methods described in relation to Figures 11-16 may be implemented within one or more processors of an XR system.

[0141] While several aspects of several embodiments have been described above, it will be appreciated that various alterations, modifications, and improvements will readily occur to those skilled in the art.

[0142] As an example, the embodiments are described in relation to an augmented (AR) environment, it being understood that some or all of the techniques described herein may be applied in MR environments, or more generally, in other XR and VR environments.

[0143] As another example, embodiments are described in connection with devices, such as wearable devices. It should be understood that some or all of the techniques described herein may be implemented via a network (such as the cloud), a discrete application, and / or any suitable combination of devices, networks, and discrete applications.

[0144] As a further example, the embodiments are described in the context of sensors based on time-of-flight technology, it being understood that some or all of the techniques described herein may be implemented via other sensors based on any suitable technology, including, for example, stereoscopic imaging, structured light projection, and plenoptic cameras.

[0145] Such alterations, modifications, and improvements are intended to be part of this disclosure and are intended to be within the spirit and scope of this disclosure. Additionally, advantages of the disclosure are set forth, but it should be understood that not all embodiments of the disclosure include all described advantages. Some embodiments may not implement any feature described herein as advantageous, and in some instances. Thus, the foregoing description and drawings are by way of example only.

[0146] The foregoing embodiments of the present disclosure can be implemented in any of a number of ways. For example, the embodiments may be implemented using hardware, software, or a combination thereof. When implemented in software, the software code can be executed on any suitable processor or collection of processors, whether provided in a single computer or distributed among multiple computers. Such a processor may be implemented as an integrated circuit, with one or more processors in an integrated circuit component, including commercially available integrated circuit components known in the art, such as a CPU chip, a GPU chip, a microprocessor, a microcontroller, or a coprocessor, to name a few. In some embodiments, the processor may be implemented in a custom circuit, such as an ASIC, or in a semi-custom circuit resulting from configuring a programmable logic device. As a further alternative, the processor may be part of a larger circuit or semiconductor device, whether commercially available, semi-custom, or custom. As a specific example, some commercially available microprocessors have multiple cores, such that one or a subset of those cores may constitute a processor. However, the processor may be implemented using a circuit in any suitable format.

[0147] Further, it should be understood that a computer may be embodied in any of a number of forms, such as a rack-mounted computer, a desktop computer, a laptop computer, or a tablet computer, etc. In addition, a computer may be embodied in devices not generally considered computers but with suitable processing capabilities, including a personal digital assistant (PDA), a smart phone, or any suitable portable or fixed electronic device.

[0148] A computer may also have one or more input and output devices. These devices can be used, among other things, to present a user interface. Examples of output devices that may be used to provide a user interface include a printer or display screen for visual presentation of output, or a speaker or other sound generating device for audible presentation of output. Examples of input devices that may be used for a user interface include keyboards and pointing devices such as mice, touchpads, and digitizing tablets. As another example, a computer may receive input information through speech recognition or in other audible formats. In the illustrated embodiment, the input / output devices are illustrated as physically separate from the computing device. However, in some embodiments, the input and / or output devices may be physically integrated into the same unit as the processor or other elements of the computing device. For example, the keyboard may be implemented as a soft keyboard on a touch screen. In some embodiments, the input / output devices may be completely disconnected from the computing device and functionally integrated through a wireless connection.

[0149] Such computers may be interconnected by one or more networks in any suitable form, including as a local area network or a wide area network, such as an enterprise network or the Internet. Such networks may be based on any suitable technology and operate according to any suitable protocol, and may include wireless networks, wired networks, or fiber optic networks.

[0150] Also, the various methods and processes outlined herein may be coded as software that is executable on one or more processors employing any one of a variety of operating systems or platforms. In addition, such software may be written using any of a number of suitable programming languages ​​and / or programming or scripting tools, and may be compiled as executable machine language code or intermediate code that runs on a framework or virtual machine.

[0151] In this aspect, the present disclosure may be embodied as a computer-readable storage medium (or multiple computer-readable media) (e.g., a computer memory, one or more floppy disks, compact disks (CDs), optical disks, digital video disks (DVDs), magnetic tapes, flash memories, circuitry in field programmable gate arrays or other semiconductor devices, or other tangible computer storage media) encoded with one or more programs that, when executed on one or more computers or other processors, perform methods implementing various embodiments of the present disclosure discussed above. As is evident from the foregoing examples, a computer-readable storage medium may retain information for a sufficient time to provide computer-executable instructions in a non-transitory form. Such a computer-readable storage medium or media may be transportable such that one or more programs stored thereon may be loaded onto one or more different computers or other processors to implement various aspects of the present disclosure, as described above. As used herein, the term "computer-readable storage medium" encompasses only computer-readable media that may be considered a manufacture (i.e., an article of manufacture) or machine. In some embodiments, the present disclosure may be embodied as a computer-readable medium other than a computer-readable storage medium, such as a propagated signal.

[0152] The term "program" or "software" is used herein in a general sense to refer to any type of computer code or set of computer executable instructions that can be employed to program a computer or other processor to implement various aspects of the present disclosure, as described above. In addition, according to one aspect of the present embodiment, it should be understood that one or more computer programs that, when executed, perform the methods of the present disclosure need not reside on a single computer or processor, but can be distributed in a modular manner among several different computers or processors to implement various aspects of the present disclosure.

[0153] Computer-executable instructions may be in many forms, such as program modules, executed by one or more computers or other devices. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. Typically the functionality of the program modules may be combined or distributed as desired in various embodiments.

[0154] Also, the data structures may be stored in the computer-readable medium in any suitable form. For ease of illustration, the data structures may be shown to have fields that are related through locations within the data structure. Such relationships may be achieved by allocating storage for the fields with locations in the computer-readable medium that similarly convey the relationship between the fields. However, any suitable mechanism may be used to establish relationships between information in the fields of the data structures, including through the use of pointers, tags, or other mechanisms that establish relationships between data elements.

[0155] Various aspects of the disclosure may be used alone, in combination, or in various arrangements not specifically discussed in the foregoing embodiments, and therefore, its application is not limited to the details and arrangements of components set forth in the foregoing description or illustrated in the drawings. For example, aspects described in one embodiment may be combined in any manner with aspects described in other embodiments.

[0156] The present disclosure may also be embodied as a method, examples of which are provided. The acts performed as part of the method may be ordered in any suitable manner. Thus, while the illustrative embodiments are shown as sequential acts, embodiments may be constructed in which acts are performed in an order different from that shown, which may include performing some acts simultaneously.

[0157] The use of ordinal terms such as "first," "second," "third," etc. in the claims to modify claim elements does not, by itself, imply any priority, precedence, or ordering of one claim element relative to another element, or the temporal order in which acts of a method are performed, but rather the ordinal terms are used solely as markers to distinguish one claim element having a certain name from another element having the same name (due to the use of the ordinal terms) to distinguish between claim elements.

[0158] Also, the phraseology and terminology used herein is for the purpose of description and should not be regarded as limiting. The use of "including," "comprising," "having," "containing," "with," and variations thereof herein is meant to encompass the items listed thereafter and equivalents and additional items.

Claims

1. 1. A portable electronic system, comprising: a depth sensor configured to capture information about the physical world; at least one processor configured to execute computer-executable instructions to calculate a three-dimensional (3D) representation of a portion of the physical world based at least in part on the captured information about the physical world; Equipped with The computer executable instructions include: calculating from the captured information a depth image comprising a plurality of pixels, each pixel indicating a distance to a surface in the physical world; determining valid and invalid pixels within the plurality of pixels of the depth image based at least in part on the captured information; updating the 3D representation of the portion of the physical world with the valid pixels; updating the 3D representation of the portion of the physical world with the invalid pixels, where updating the 3D representation of the portion of the physical world with the invalid pixels includes updating a portion of the 3D representation that corresponds to the invalid pixels based on a distance to the surface in the physical world indicated by the invalid pixels; 16. A portable electronic system comprising instructions for performing

2. calculating the depth image includes calculating a confidence level for a distance represented by the plurality of pixels; Determining the valid pixels and the invalid pixels includes, for each of the plurality of pixels: determining whether the corresponding confidence level is below a predetermined value; assigning said pixel as an invalid pixel when said corresponding confidence level is below said predetermined value; 10. The portable electronic system of claim 1, comprising:

3. 3. The portable electronic system of claim 1 or claim 2, wherein updating the 3D representation of the portion of the physical world with the effective pixels comprises modifying a geometry of the 3D representation of the portion of the physical world with the distance indicated by the effective pixels.

4. The portable electronic system of claim 1 , wherein updating the 3D representation of the portion of the physical world with the valid pixels comprises adding an object to an object map.

5. The portable electronic system of claim 4 , wherein updating the 3D representation of the portion of the physical world with the invalid pixels comprises removing an object from the object map.

6. 3. The portable electronic system of claim 1 or claim 2, wherein updating the 3D representation of the portion of the physical world with the invalid pixels comprises removing one or more reconstructed surfaces from the 3D representation of the portion of the physical world based at least in part on the distance indicated by the invalid pixels.

7. 7. The portable electronic system of claim 6, wherein the one or more reconstructed surfaces are removed from the 3D representation of the portion of the physical world when a distance indicated by the corresponding invalid pixel is outside an operating range of the sensor.

8. 7. The portable electronic system of claim 6, wherein the one or more reconstructed surfaces are removed from the 3D representation of the portion of the physical world when a distance indicated by the corresponding invalid pixels indicates that the one or more reconstructed surfaces move farther away from the sensor.

9. The portable electronic system of claim 1 , wherein the 3D representation of the portion of the physical world comprises information of the invalid pixels.

10. 2. The portable electronic system of claim 1, wherein confidence information is associated with pixels of the depth image, the confidence information indicating a confidence in the distance to the surface in the physical world represented by an individual pixel, the invalid pixels having a lower confidence than the valid pixels.

11. updating the 3D representation of the portion of the physical world with the valid pixels includes adding and removing surfaces within the 3D representation; The portable electronic system of claim 1 , wherein updating the 3D representation of the portion of the physical world with the invalid pixels comprises selectively removing surfaces within the 3D representation.

12. The portable electronic system of claim 9 , wherein the invalid pixel information indicates a distance from the sensor to a surface within the portion of the physical world that has a confidence level below a threshold.

13. The sensor includes: a light source configured to emit light modulated at a frequency; a pixel array comprising a plurality of pixel circuits, the pixel array configured to detect light at the certain frequency reflected by an object; a mixer circuit configured to calculate an amplitude image of the reflected light indicative of an amplitude of the reflected light detected by the plurality of pixel circuits in the pixel array, and a phase image of the reflected light indicative of a phase shift between the reflected light detected by the plurality of pixel circuits in the pixel array and the emitted light; Equipped with A portable electronic system according to any preceding claim, wherein the depth image is calculated based at least in part on the phase image.

14. Determining the valid pixels and the invalid pixels includes, for each of the plurality of pixels of the depth image: determining whether a corresponding amplitude in the amplitude image is below a predetermined value; assigning said pixel as an invalid pixel when said corresponding amplitude is below said predetermined value; 14. The portable electronic system of claim 13, comprising:

15. At least one non-transitory computer-readable medium encoded with a plurality of computer-executable instructions, which when executed by at least one processor, performs a method for providing a three-dimensional (3D) representation of a portion of a physical world, the 3D representation of the portion of the physical world comprising a plurality of voxels corresponding to a plurality of volumes of the portion of the physical world, the plurality of voxels storing signed distances and weights, the method comprising: capturing information about the portion of the physical world in response to changes in a user's field of view; calculating a depth image based on the captured information, the depth image comprising a plurality of pixels, each pixel indicating a distance to a surface within the portion of the physical world; determining valid and invalid pixels within the plurality of pixels of the depth image based at least in part on the captured information; updating the 3D representation of the portion of the physical world with the valid pixels; updating the 3D representation of the portion of the physical world with the invalid pixels, where updating the 3D representation of the portion of the physical world with the invalid pixels includes updating a portion of the 3D representation that corresponds to the invalid pixels based on a distance to the surface in the physical world indicated by the invalid pixels; At least one non-transitory computer readable medium comprising:

16. the captured information comprises a confidence level for the distance represented by the plurality of pixels; Determining the valid and invalid pixels includes, for each of the plurality of pixels: determining whether the corresponding confidence level is below a predetermined value; assigning said pixel as an invalid pixel when said corresponding confidence level is below said predetermined value; 20. At least one non-transitory computer readable medium according to claim 15, comprising:

17. Updating the 3D representation of the portion of the physical world with the valid pixels comprises: calculating a signed distance and a weight based at least in part on the valid pixels of the depth image; combining the calculated weights with individual stored weights within the voxel and storing the combined weights as the stored weights; combining the calculated signed distance with an individual stored signed distance within the voxel and storing the combined signed distance as the stored signed distance; 17. At least one non-transitory computer readable medium according to claim 15 or claim 16, comprising:

18. Updating the 3D representation of the portion of the physical world with the invalid pixels comprises: calculating a signed distance and a weight based at least in part on the invalid pixels of the depth image; Including, The calculating step comprises: modifying the calculated weights based on the time the depth image was captured; and combining the modified weights with the individual stored weights within the voxel; and for each of the combined weights, determining whether the combined weights exceed a predetermined value; 17. At least one non-transitory computer readable medium according to claim 15 or claim 16, comprising:

19. 20. The at least one non-transitory computer-readable medium of claim 18, wherein modifying the calculated weightings includes determining, for each of the calculated weightings, whether a discrepancy exists between a calculated signed distance corresponding to the calculated weighting and a respective stored signed distance.

20. 20. The at least one non-transitory computer-readable medium of claim 19, wherein modifying the calculated weightings comprises decreasing the calculated weightings when the discrepancy is determined to exist.

21. 20. The at least one non-transitory computer-readable medium of claim 19, wherein modifying the calculated weights includes assigning the calculated weights as the modified weights if it is determined that the discrepancy does not exist.

22. 20. The at least one non-transitory computer-readable medium of claim 18, wherein updating the 3D representation of the portion of the physical world with the invalid pixels further comprises modifying the calculated weightings based on a time the depth image was captured when it is determined that the combined weightings exceed the predetermined value.

23. 20. The at least one non-transitory computer-readable medium of claim 18, wherein updating the 3D representation of the portion of the physical world with the invalid pixels comprises, when the combined weighting is determined to be below the predetermined value, storing the combined weighting as the stored weighting, combining a corresponding calculated signed distance with an individual stored signed distance, and storing the combined signed distance as the stored signed distance.

24. 20. The at least one non-transitory computer-readable medium of claim 15, wherein the 3D representation of the portion of the physical world comprises information of the invalid pixels.

25. 16. At least one non-transitory computer-readable medium as described in claim 15, wherein confidence information is associated with pixels of the depth image, the confidence information indicating a confidence in the distance to the surface in the physical world represented by an individual pixel, the invalid pixels having a lower confidence than the valid pixels.

26. updating the 3D representation of the portion of the physical world with the valid pixels includes adding and removing surfaces within the 3D representation; 16. The at least one non-transitory computer-readable medium of claim 15, wherein updating the 3D representation of the portion of the physical world with the invalid pixels comprises selectively removing surfaces within the 3D representation.

27. 25. At least one non-transitory computer readable medium as described in claim 24, wherein the invalid pixel information indicates a distance from a sensor capturing the information about the portion of the physical world to a surface within the portion of the physical world that has a confidence level below a threshold.

28. 1. A method of operating a cross reality (XR) system for reconstructing a three dimensional (3D) environment, the XR system comprising: a processor configured to process image information communicated to a sensor worn by a user that captures information about distinct regions within a field of view of the sensor, the image information comprising a depth image calculated from the captured information, the depth image comprising a plurality of pixels, each pixel indicating a distance to a surface within the 3D environment, the method comprising: determining the pixels of the depth image as valid pixels and invalid pixels based at least in part on the captured information; updating a representation of the 3D environment with the valid pixels; and updating the representation of the 3D environment with the invalid pixels, where updating the representation of the 3D environment with the invalid pixels includes updating a portion of the representation of the 3D environment that corresponds to the invalid pixels based on a distance to the surface in the 3D environment indicated by the invalid pixels; A method comprising:

29. 30. The method of claim 28, wherein updating the representation of the 3D environment with the effective pixels comprises modifying a geometry of the representation of the 3D environment based at least in part on the effective pixels.

30. 30. The method of claim 28 or claim 29, wherein updating the representation of the 3D environment with the invalid pixels comprises removing surfaces from the representation of the 3D environment based at least in part on the invalid pixels.

31. The method of claim 28 , wherein the representation of the 3D environment comprises information about the invalid pixels.

32. 29. The method of claim 28, wherein confidence information is associated with pixels of the depth image, the confidence information indicating a confidence in the distance to the surface in the 3D environment represented by an individual pixel, the invalid pixels having a lower confidence than the valid pixels.

33. Updating the representation of the 3D environment with the effective pixels includes adding and removing surfaces within the 3D representation; 30. The method of claim 28, wherein updating the representation of the 3D environment with the invalid pixels comprises selectively removing surfaces in the 3D representation.

34. The method of claim 31 , wherein the invalid pixel information indicates a distance from the sensor to a surface in the 3D environment that has a confidence level below a threshold.

Citation Information

Patent Citations

  • 3di sensor depth calibration concept using difference frequency approach

    US20180106891A1

  • Multi-stage block mesh simplification

    US20190197774A1