Scalable 3D Object Recognition in Cross-Reality Systems

The scalable 3-D object recognition system in XR environments addresses the challenge of accurately recognizing and integrating 3-D objects, enhancing immersion and functionality by using color and depth images, even with incomplete depth data, for improved XR experiences and applications.

JP7569439B2Active Publication Date: 2024-10-17MAGIC LEAP INC
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2023196666
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2020-05-13
Filing Date
2023-11-20
Publication Date
2024-10-17
Estimated Expiration
2040-06-12

AI Technical Summary

Technical Problem

Existing cross-reality (XR) systems struggle with accurately recognizing and integrating three-dimensional objects in real-world environments, leading to limited immersion and functionality in applications like gaming and spatial audio, especially with objects that are dark or reflective, where depth information is unreliable.

Method used

A scalable 3-D object recognition system that uses a combination of color and depth images, employing stateless modules and deep neural networks to generate 3-D bounding boxes, allowing for robust object recognition across multiple user devices and environments, even with incomplete depth data.

Benefits of technology

Enables more immersive XR experiences by accurately placing virtual objects in real-world environments, improving tracking and localization, and enhancing spatial audio based on detected object categories, supporting large-scale applications with hundreds or thousands of XR devices and objects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007569439000001
    Figure 0007569439000001
  • Figure 0007569439000002
    Figure 0007569439000002
  • Figure 0007569439000003
    Figure 0007569439000003
Patent Text Reader

Abstract

To provide a scalable three-dimensional object recognition in a favorable cross reality system.SOLUTION: Methods, systems, and devices include computer programs encoded on a computer storage medium for scalable three-dimensional (3D) object recognition in a cross reality system. One of the methods includes a step of maintaining object data specifying objects that have been recognized in a scene. A stream of input images of the scene is received, including a stream of color images and a stream of depth images. A color image is provided as input to an object recognition system. A recognition output that identifies a respective object mask for each object in the color image is received. A synchronization system determines a corresponding depth image for the color image.SELECTED DRAWING: Figure 5
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] (CROSS REFERENCE TO RELATED APPLICATIONS) This patent application claims priority to and benefit of U.S. Provisional Patent Application No. 62 / 861,784, filed June 14, 2019, entitled "OBJECT RECOGNITION AND SCENE UNDERSTANDING," which is incorporated herein by reference in its entirety. This patent application also claims priority to and benefit of U.S. Provisional Patent Application No. 62 / 968,023, filed January 30, 2020, entitled "A CROSS REALITY SYSTEM," which is incorporated herein by reference in its entirety. This patent application also claims priority to and benefit of U.S. Provisional Patent Application No. 63 / 006,408, filed April 7, 2020, entitled "SCALABLE THREE-DIMENSIONAL OBJECT RECOGNITION IN A CROSS REALITY SYSTEM," which is incorporated herein by reference in its entirety. This patent application also claims priority to and benefit of U.S. Provisional Patent Application No. 63 / 024,291, filed May 13, 2020, and entitled “SCALABLE THREE-DIMENSIONAL OBJECT RECOGNITION IN A CROSS REALITY SYSTEM,” which is incorporated by reference in its entirety herein.

[0002] This application relates generally to cross reality systems. [Background technology]

[0003] 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 audibly to the user, 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.

[0004] 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.

[0005] To realistically render virtual content, an XR system may build a representation of the physical world around a user of the system. This representation may be built, for example, by processing images acquired using sensors on a wearable device that forms part of the XR system. In such a system, a user may perform an initialization routine by looking around a room or other physical environment in which the user intends to use the XR system until the system acquires sufficient information for the system to build a representation of that environment. As the system operates and the user moves around the environment or into other environments, sensors on the wearable device may acquire additional information and extend or update the representation of the physical world.

[0006] The system may recognize objects in the physical world using a two-dimensional (2-D) object recognition system. For example, the system may provide images acquired using a sensor on the wearable device as input to a 2-D bounding box generation system. The system may receive a separate 2-D bounding box for each object recognized in the image. The XR system may build a representation of the physical world using the 2-D bounding boxes for the recognized objects. As the user moves around the environment or other environments, the XR system may augment or update the representation of the physical world using the 2-D bounding boxes for the objects recognized in additional images acquired by the sensor. Summary of the Invention [Means for solving the problem]

[0007] Aspects of the present application relate to methods and apparatus for scalable three-dimensional (3-D) object recognition in X-Reality (Cross-Reality or XR) systems. The techniques described herein may be used together, separately, or in any suitable combination.

[0008] In general, one innovative aspect of the subject matter described herein includes maintaining object data defining objects being recognized within a scene in an environment; receiving a stream of input images of the scene, the stream of input images comprising a stream of color images and a stream of depth images; for each of a plurality of color images in the stream of color images, providing the color image as an input to an object recognition system; receiving as an output from the object recognition system a recognition output that, for each of one or more objects being recognized in the color images, identifies a respective object mask in the color image; and determining a corresponding depth image for the color image based on a timestamp of the corresponding depth image and a timestamp of the color image. The present aspect may be embodied in a method including the actions of: providing a plurality of depth images in a stream of color and depth images to a three-dimensional (3-D) bounding box generation system as inputs, the recognition output identifying the object data, the object mask, and the corresponding depth image to a three-dimensional (3-D) bounding box generation system, which determines an individual 3-D bounding box for each of one or more of the objects recognized in the color images from the object data, the object mask, and the corresponding depth image; receiving as output from the 3-D bounding box generation system data defining one or more 3-D bounding boxes for one or more of the objects recognized in the color images; and providing as output data defining the one or more 3-D bounding boxes. Other embodiments of this aspect include corresponding computer systems, apparatus, and computer programs recorded on one or more computer storage devices, each configured to perform the actions of the present method. With respect to one or more computer systems, being configured to perform a particular operation or action means that the system has installed on it software, firmware, hardware, or a combination thereof that, when in operation, causes the system to perform the operation or action.With respect to one or more computer programs, being configured to perform a particular operation or action means that the one or more programs contain instructions that, when executed by a data processing device, cause the device to perform the operation or action.

[0009] Each of the above and other embodiments may optionally include one or more of the following features, either alone or in combination. In particular, one embodiment includes all of the following features in combination. The 3-D bounding box generation system includes a multi-view fusion system that generates an initial set of 3-D object masks. The object recognition system, the synchronization system, and the multi-view fusion system operate independently of each other in a stateless manner. The multi-view fusion system includes an association system that identifies, from the maintained object data, an individual object mask and matched object data for each recognized object in the color image that defines a corresponding object, and a fusion system that generates an initial 3-D object mask for each recognized object in the color image by combining the object mask and the matched object data in the color image. The 3-D bounding box generation system further includes an object refinement system that refines the initial set of 3-D object masks to generate an initial set of 3-D bounding boxes. The 3-D bounding box generation system further includes a bounding box refinement system that refines the initial set of 3-D bounding boxes to generate one or more 3-D bounding boxes. The object recognition system includes a trained deep neural network (DNN) model that takes a color image as an input and generates a separate two-dimensional (2-D) object mask for each of one or more objects recognized in the color image. Determining, by the synchronization system, a corresponding depth for the color image based on a timestamp of the corresponding depth image and a timestamp of the color image includes identifying a candidate depth image having a timestamp closest to the timestamp of the color image, determining that a time difference between the candidate depth image and the color image is less than a threshold, and in response thereto, determining the candidate depth image as the corresponding depth image for the color image.The 3-D bounding box generation system determines a respective 3-D object mask for each of one or more of the objects recognized in the color image from the object masks and the corresponding depth image, and the method further includes receiving data defining one or more 3-D object masks for one or more of the objects recognized in the color image as output from the 3-D bounding box generation system, and providing data defining the one or more 3-D object masks as output.

[0010] In general, another innovative aspect of the subject matter described herein may be embodied in a method including the actions of maintaining object data defining objects recognized within a scene in an environment, receiving a stream of input images of the scene, and for each of a plurality of input images in the stream of input images, providing the input image as an input to an object recognition system, and receiving as an output from the object recognition system a recognition output identifying an individual bounding box in the input image for each of one or more objects recognized in the input image, providing as an input data identifying the bounding box to a three-dimensional (3-D) bounding box generation system, which determines an individual 3-D bounding box for each of one or more of the objects recognized in the input image from the object data and the bounding box, receiving as an output from the 3-D bounding box generation system data defining one or more 3-D bounding boxes for one or more of the objects recognized in the input image, and providing as an output data defining the one or more 3-D bounding boxes. Other embodiments of this aspect include corresponding computer systems, apparatus, and computer programs recorded on one or more computer storage devices, each configured to perform the actions of the method. With respect to one or more computer systems, being configured to perform a particular operation or action means that the system has installed thereon software, firmware, hardware, or a combination thereof that, when operated, causes the system to perform the operation or action. With respect to one or more computer programs, being configured to perform a particular operation or action means that one or more programs contain instructions that, when executed by a data processing device, cause the device to perform the operation or action.

[0011] Each of the above and other embodiments may optionally include one or more of the following features, either alone or in combination. In particular, one embodiment includes all of the following features in combination: The 3-D bounding box generation system includes a multi-view fusion system that generates an initial set of 3-D bounding boxes, and a bounding box refinement system that refines the initial set of 3-D bounding boxes to generate one or more 3-D bounding boxes. The object recognition system, the multi-view fusion system, and the bounding box refinement system operate independently of each other in a stateless manner. The maintained object data comprises an ellipsoid generated from a plurality of two-dimensional (2-D) bounding boxes of each object recognized in the scene, and the multi-view fusion system generates an initial set of 3-D bounding boxes by performing at least the following steps: for each 2-D bounding box identified in the input image, determining whether the 2-D bounding box identified in the input image is associated with one or more 2-D bounding boxes of objects recognized in the maintained object data; in response to determining that the 2-D bounding box identified in the input image is associated with one or more 2-D bounding boxes of the recognized objects, updating the maintained object data by calculating an updated ellipsoid for the object using the 2-D bounding boxes identified in the input image; in response to determining that the 2-D bounding box identified in the input image is not associated with any recognized object, creating a new object by generating an ellipsoid from at least the 2-D bounding boxes identified in the input image; and generating an initial set of 3-D bounding boxes using the ellipsoids of objects recognized in the input image. The object recognition system comprises a trained deep neural network (DNN) model that takes an input image and generates a separate two-dimensional (2-D) object bounding box for each of one or more objects being recognized in the input image. A stream of input images of a scene is captured from two or more user devices.

[0012] This specification describes techniques for generating 3-D bounding boxes of objects from color and depth images captured by a user device. By using these techniques, a 3-D object recognition system can perform 3-D object recognition using streams of images captured by multiple user devices connected to the cloud. The system can jointly recognize multiple objects in a scene shared among multiple user devices, and can generate 3-D bounding boxes of objects from color and depth images captured by the user devices. The 3-D object recognition is scalable in the number of user devices and the number of objects in a scene. The 3-D object recognition system includes multiple independent subsystems that can be implemented in multiple stateless modules. These stateless modules can be scaled up or down as needed. This enables the 3-D object recognition system to recognize objects in large environments, for example at a building or city scale, with hundreds or thousands of XR devices, and with hundreds or thousands of 3-D objects.

[0013] Based on the passable world model generated or updated from the 3-D bounding boxes, the XR system can enable multiple applications to improve the immersive experience in the application. A user of the XR system or an application developer can place the XR content or application in the physical world with one or more objects recognized in the environmental scene. For example, a gaming application can place a virtual object (e.g., a cup of coffee) on top of a real-world coffee table recognized in the passable world model.

[0014] By utilizing the described techniques, XR applications can have a more immersive experience. For example, a virtual assistant in an interactive gaming application can sit on one of the chairs recognized in the passable world model to provide a more immersive experience. Spatial audio in AR applications can use the location of detected 3-D objects to appropriately reflect sound depending on the category of each object.

[0015] In some implementations, the XR system can build a spatial knowledge graph of objects based on a passable world model that includes the locations of detected 3-D objects. In some implementations, the XR system can be more robust by utilizing location information of detected 3-D objects. For example, tracking, localization, or meshing calculations can be more robust to long-term dynamic changes, such as moving objects, by utilizing 3-D object detection.

[0016] This specification also describes techniques for generating 3-D bounding boxes of objects from color images without using depth images. By using these techniques, the 3-D object recognition system can perform 3-D object recognition using streams of images captured by multiple user devices connected to the cloud. The system can jointly recognize multiple objects in a scene shared among multiple user devices and generate 3-D bounding boxes of objects from color images captured by the user devices. By using only color images without depth images, the system can generate accurate 3-D bounding boxes of objects even with poor depth information, such as black objects or reflective objects for which depth information tends to be missing, poor, or unreliable. The 3-D object recognition is scalable in the number of user devices and the number of objects in a scene. The 3-D object recognition system includes multiple independent subsystems that can be implemented in multiple stateless modules. These stateless modules can be scaled up or down as needed. This enables a 3-D object recognition system to recognize objects in large environments, for example at building or city scale, with hundreds or thousands of XR devices and with hundreds or thousands of 3-D objects.

[0017] Based on the passable world model generated or updated from the 3-D bounding boxes, the XR system can enable multiple applications to improve the immersive experience in the application. A user of the XR system or an application developer can place the XR content or application in the physical world with one or more objects recognized in the environmental scene. For example, a gaming application can place a virtual object (e.g., a cup of coffee) on top of a real-world coffee table recognized in the passable world model.

[0018] By utilizing the described techniques, XR applications can have a more immersive experience. For example, a virtual assistant in an interactive gaming application can sit on one of the chairs recognized in the passable world model to provide a more immersive experience. Spatial audio in AR applications can use the location of detected 3-D objects to appropriately reflect sound depending on the category of each object.

[0019] In some implementations, the XR system can build a spatial knowledge graph of objects based on a passable world model that includes the locations of detected 3-D objects. In some implementations, the XR system can be more robust by utilizing location information of detected 3-D objects. For example, tracking, localization, or meshing calculations can be more robust to long-term dynamic changes, such as moving objects, by utilizing 3-D object detection.

[0020] 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 computer-implemented method, comprising: maintaining object data defining objects which have been recognised within a scene within the environment; receiving a stream of input images of the scene, the stream of input images comprising a stream of color images and a stream of depth images; for each of a plurality of color images in the stream of color images providing said color image as an input to an object recognition system; receiving as output from the object recognition system a recognition output identifying, for each of one or more objects recognized in the color image, a distinct object mask in the color image; providing a plurality of depth images in the stream of color and depth images as inputs to a synchronization system that determines a corresponding depth image for the color image based on a timestamp of the corresponding depth image and a timestamp of the color image; providing the object data, the recognition output identifying the object mask, and the corresponding depth image as inputs to a three-dimensional (3-D) bounding box generation system that determines, from the object data, the object mask, and the corresponding depth image, a respective 3-D bounding box for each of one or more objects recognized in the color image; receiving, as output from the 3-D bounding box generation system, data defining one or more 3-D bounding boxes for one or more of the objects recognized in the color image; providing as output data defining said one or more 3-D bounding boxes; A method comprising: (Item 2) The 3-D bounding box generation system includes: Item 10. The method of item 1, comprising a multi-view fusion system for generating an initial set of 3-D object masks. (Item 3) 3. The method of claim 2, wherein the object recognition system, the synchronization system, and the multi-view fusion system operate independently of each other in a stateless manner. (Item 4) The multi-view fusion system comprises: an association system that identifies from the maintained object data object data matched with an individual object mask for each recognized object in the color image that defines a corresponding object; a fusion system that generates an initial 3-D object mask for each recognized object in the color image by combining an object mask in the color image with the matched object data; The method according to any one of Items 2-3, comprising: (Item 5) 5. The method of claim 1, wherein the 3-D bounding box generation system further comprises an object refinement system that refines the initial set of 3-D object masks to generate an initial set of 3-D bounding boxes. (Item 6) 5. The method of claim 1, wherein the 3-D bounding box generation system further comprises a bounding box refinement system that refines the initial set of 3-D bounding boxes to generate the one or more 3-D bounding boxes. (Item 7) 2. The method of claim 1, wherein the object recognition system comprises a trained deep neural network (DNN) model that takes the color image as input and generates a respective two-dimensional (2-D) object mask for each of one or more objects that have been recognized in the color image. (Item 8) Determining, by the synchronization system, a corresponding depth for the color image based on a timestamp of the corresponding depth image and a timestamp of the color image, identifying a candidate depth image having a timestamp closest to a timestamp of the color image; determining that a time difference between the candidate depth image and the color image is less than a threshold; In response thereto, determining the candidate depth image as a corresponding depth image for the color image. The method according to any of the preceding items, comprising: (Item 9) The 3-D bounding box generation system determines, from the object masks and the corresponding depth images, a respective 3-D object mask for each of one or more of the objects recognized in the color image, and the method further comprises: receiving, as output from the 3-D bounding box generation system, data defining one or more 3-D object masks for one or more of the objects recognized in the color image; providing as output data defining said one or more 3-D object masks; The method according to any of the preceding items, comprising: (Item 10) A system comprising one or more computers and one or more storage devices, the one or more storage devices storing instructions that, when executed by the one or more computers, cause the one or more computers to perform individual operations of the methods described in any of the preceding items. (Item 11) One or more non-transitory computer-readable storage media having instructions stored thereon that, when executed by one or more computers, cause the one or more computers to perform individual operations of the methods described in any of the preceding items. (Item 12) 1. A computer-implemented method, comprising: maintaining object data defining objects which have been recognised within a scene within the environment; receiving a stream of input images of the scene; for each of a plurality of input images in the stream of input images providing the input image as an input to an object recognition system; receiving, as output from the object recognition system, a recognition output identifying a distinct bounding box in the input image for each of one or more objects that have been recognized in the input image; providing data identifying the bounding boxes as input to a three-dimensional (3-D) bounding box generation system that determines, from the object data and the bounding boxes, a respective 3-D bounding box for each of one or more objects recognized in the input image; receiving, as output from the 3-D bounding box generation system, data defining one or more 3-D bounding boxes for one or more of the objects recognized in the input image; providing as output data defining said one or more 3-D bounding boxes; A method comprising: (Item 13) The 3-D bounding box generation system includes: a multi-view fusion system that generates an initial set of 3-D bounding boxes; a bounding box refinement system that refines the initial set of 3-D bounding boxes to generate the one or more 3-D bounding boxes; Item 13. The method of item 12, comprising: (Item 14) Item 14. The method of item 13, wherein the object recognition system, the multi-view fusion system, and the bounding box refinement system operate independently of each other in a stateless manner. (Item 15) The maintained object data comprises an ellipsoid generated from a plurality of two-dimensional (2-D) bounding boxes for each object recognized in the scene, and the multi-view fusion system comprises at least: For each 2-D bounding box identified in the input image, determining whether a 2-D bounding box identified in the input image is associated with one or more 2-D bounding boxes of objects recognized in the maintained object data; updating the maintained object data by calculating an updated ellipsoid for the object using the 2-D bounding boxes identified in the input image in response to determining that the 2-D bounding boxes identified in the input image are associated with one or more 2-D bounding boxes of a recognized object; creating a new object by generating an ellipsoid from at least the 2-D bounding box identified in the input image in response to determining that the 2-D bounding box identified in the input image is not associated with any recognized object; generating the initial set of 3-D bounding boxes using ellipsoids of objects recognized in the input image; 15. The method of any one of claims 13-14, wherein the initial set of 3-D bounding boxes is generated by performing (Item 16) 16. The method of any one of claims 12-15, wherein the object recognition system comprises a trained deep neural network (DNN) model that takes the input image and generates individual two-dimensional (2-D) object bounding boxes for each of one or more objects that are recognized in the input image. (Item 17) 17. The method of any one of items 12-16, wherein the stream of input images of the scene is captured from two or more user devices. (Item 18) A system comprising one or more computers and one or more storage devices, the one or more storage devices storing instructions that, when executed by the one or more computers, cause the one or more computers to perform individual operations of the methods described in any one of items 12-17. (Item 19) One or more non-transitory computer-readable storage media storing instructions that, when executed by one or more computers, cause the one or more computers to perform individual operations of the method of any one of items 12-17. [Brief description of the drawings]

[0021] 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.

[0022] [Figure 1] FIG. 1 is a schematic diagram illustrating data flow within an AR system configured to provide a user with an experience in which AR content interacts with the physical world.

[0023] [Diagram 2] FIG. 2 is a schematic diagram illustrating the components of an AR system that maintain a model of a passable world.

[0024] [Diagram 3] FIG. 3 shows an exemplary 3-D object recognition system that generates 3-D bounding boxes for objects in a scene.

[0025] [Figure 4] FIG. 4 illustrates an example 3-D object recognition system that generates 3-D bounding boxes for objects in a scene from a stream of color and depth images.

[0026] [Diagram 5] FIG. 5 is a flow chart of an exemplary process for computing 3-D object recognition results from a stream of input images of a scene.

[0027] [Figure 6] FIG. 6 is a system diagram illustrating several subsystems within an exemplary 3-D bounding box generation system.

[0028] [Figure 7] FIG. 7 shows an exemplary 3-D object recognition system that generates 3-D bounding boxes for objects in a scene from a stream of input images.

[0029] [Figure 8] FIG. 8 is a flow chart of an exemplary process for computing 3-D object recognition results from a stream of input images of a scene. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0030] Described herein are methods and apparatus for scalable three-dimensional (3-D) object recognition in an X-reality (cross-reality or XR) system. To provide a realistic XR experience to multiple users, the XR system must understand the user's physical surroundings to properly correlate the location of virtual objects in relation to real objects. The XR system may build an environment map of a scene, which may be created from imagery and / or depth information collected with sensors that are part of an XR device worn by a user of the XR system. The environment map of a scene may include data defining real objects within the scene, which may be obtained through scalable 3-D object recognition.

[0031] FIG. 1 depicts an AR system 100 configured to provide an experience of AR content that interacts with a physical world 106, according to some embodiments. The AR system 100 may include a display 108. In the illustrated embodiment, the display 108 may be worn by a user as part of a headset such that the user may wear the display over their eyes, such as 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 110. The see-through reality 110 may correspond to a portion of the physical world 106 within a current viewpoint (e.g., field of view) of the AR system 100, which may correspond to a user's viewpoint when the user is wearing a headset incorporating both the display and sensors of the AR system and obtaining information about the physical world.

[0032] The AR content may also be presented on the display 108, overlaid on the see-through reality 110. To provide accurate interaction between the AR content and the see-through reality 110 on the display 108, the AR system 100 may include a sensor 122 configured to capture information about the physical world 106.

[0033] The sensor 122 may include one or more depth sensors that output a depth map 112. In some embodiments, the one or more depth sensors may output depth data that may be converted into a depth map by a different system or by one or more different components of the XR system. Each depth map 112 may have multiple pixels, each of which may represent a distance to a surface in the physical world 106 in a particular direction relative to the depth sensor. Raw depth data may come from the depth sensors and create a depth map. Such a depth map may be updated as fast as the depth sensor can form a new image, which may be hundreds or thousands of times per second. However, the data may be noisy and incomplete and may have holes, shown as black pixels on the illustrated depth map.

[0034] The system may include other sensors, such as image sensors. The image sensors may obtain monocular or stereoscopic information that may be processed to represent the physical world in other ways. For example, images may be processed in the world reconstruction component 116 to create meshes that represent all or 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 world reconstruction.

[0035] The system may also obtain information about the user's head pose (or "pose") relative to the physical world. In some embodiments, a head pose tracking component of the system may be used to calculate the head pose in real time. The head pose tracking component may represent the user's head pose in a coordinate frame with six degrees of freedom, including, for example, translation in three perpendicular axes (e.g., forward / back, up / down, left / right) and rotation about three perpendicular axes (e.g., pitch, yaw, and roll). In some embodiments, the sensor 122 may include an inertial measurement unit, which may be used to calculate and / or determine the head pose 114. The head pose 114 for a camera image may indicate the current viewpoint of the sensor capturing the camera image, for example, with six degrees of freedom, although the head pose 114 may be used for other purposes, such as relating image information to a particular portion of the physical world or relating the position of a display worn on the user's head to the physical world.

[0036] In some embodiments, the AR device may build a map from feature points recognized in successive images in a series of image frames captured as the user moves through the physical world with the AR device. Although each image frame may be obtained from a different pose as the user moves, the system may adjust the orientation of features in each successive image frame by matching features of the successive image frames with previously captured image frames to match the orientation of the initial image frame. Translation of the successive image frames may be used to align each successive image frame and match the orientation of the previously processed image frame such that points representing the same feature will match corresponding feature points from the previously collected image frame. The frames in the resulting map may have a common orientation that is established when the first image frame is added to the map. This map may be used to determine the user's pose in the physical world by matching features from the current image frame to the map along with a set of feature points in a common reference frame. In some embodiments, this map may be referred to as a tracking map.

[0037] In addition to enabling tracking of the user's pose within the environment, this map may enable other components of the system, such as a world reconstruction component 116, to determine the location of physical objects relative to the user. The world reconstruction component 116 may receive the depth map 112 and head pose 114 and any other data from the sensors and integrate the data into a reconstruction 118. The reconstruction 118 may be more complete and less noisy than the sensor data. The world reconstruction component 116 may update the reconstruction 118 using spatial and temporal averages of the sensor data from multiple viewpoints over time.

[0038] Reconstruction 118 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 118, a portion of the physical world is presented as a global surface, and on the right side of reconstruction 118, a portion of the physical world is presented as a mesh.

[0039] In some embodiments, the map maintained by the head pose component 114 may be sparse with respect to other maps that may be maintained of the physical world. Rather than providing information about the location and possibly other properties of a surface, the sparse map may indicate the location of points of interest and / or structures, such as corners or edges. In some embodiments, the map may include image frames as captured by the sensor 122. These frames may be reduced to features that may represent points of interest and / or structures. Along with each frame, information about the pose of the user from which the frame was obtained may also be stored as part of the map. In some embodiments, all images obtained by the sensor may or may not be stored. In some embodiments, the system may process the images as they are collected by the sensor and select a subset of the image frames for further calculation. The selection may be based on one or more criteria that limit the addition of information but ensure that the map contains useful information. The system may add new image frames to the map, for example, based on overlap with previous image frames already added to the map, or based on image frames containing a sufficient number of features determined to be likely to represent stationary objects. In some embodiments, a selected image frame or a group of features from a selected image frame may serve as a keyframe for a map, which is used to provide spatial information.

[0040] The AR system 100 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 how it relates to other poses is understood, each of these multiple viewpoints of the physical world may be fused together into a single combined reconstruction of the physical world, which may serve as an abstraction layer for the map and provide spatial information. 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) or any other suitable method.

[0041] In the embodiment illustrated in Figure 1, the map (e.g., the tracked map) represents a portion of the physical world in which a user of a single wearable device is present. In that scenario, the head poses associated with frames in the map may be represented as local head poses that indicate an orientation relative to an initial orientation for the single device at the start of a session. For example, the head poses may be tracked relative to an initial head pose when the device is turned on or otherwise operated to scan the environment and build a representation of that environment.

[0042] In combination with content that characterizes that portion of the physical world, the map may include metadata. The metadata may, for example, indicate the capture time of the sensor information used to form the map. The metadata may alternatively or additionally indicate the location of the sensor at the capture time of the information used to form the map. The location may be represented directly, such as with information from a GPS chip, or indirectly, such as with a Wi-Fi signature indicating the strength of signals received from one or more wireless access points while the sensor data was being collected, and / or with the BSSID of the wireless access point to which the user device was connected while the sensor data was being collected.

[0043] Reconstruction 118 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 118 may be used by component 120, for example, to produce a changing global surface representation in world coordinates that may be used by other components.

[0044] AR content may be generated, such as by an AR application 104, based on this information. The AR application 104 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. It may perform these functions by querying data in different formats from the reconstruction 118 produced by the world reconstruction component 116. In some embodiments, the component 120 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 a user of the system, such as a portion in the user's field of view, or may be projected (predicted / determined) to be within the user's field of view.

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

[0046] 2 is a schematic diagram illustrating components of an AR system 200 that maintain a passable world model. A passable world model is a digital representation of real objects in the physical world. The passable world model can be stored and updated as changes to real objects in the physical world occur. The passable world model can be stored in a storage system in combination with images, features, directional audio input, or other desired data. The passable world model can be used by the world reconstruction component 116 in FIG. 1 to generate a reconstruction 118.

[0047] In some implementations, the passable world model may be represented in a way that can be easily shared among users and distributed among components, including applications. Information about the physical world may be represented, for example, as a persistent coordinate frame (PCF). A PCF may be defined based on one or more points that represent recognized features in the physical world. The features may be selected such that they are likely to be the same for each user session of the XR system. PCFs may be sparsely defined based on one or more points in space (e.g., corners, edges) and provide less than all of the available information about the physical world so that they can be efficiently processed and transferred. PCFs may have six degrees of freedom, with translation and rotation relative to the map coordinate system.

[0048] The AR system 200 may include a passable world component 202, an operating system (OS) 204, an API 206, an SDK 208, and applications 210. The OS 204 may include a Linux-based kernel with custom drivers compatible with AR devices, e.g., Lumin OS. The API 206 may include an application programming interface that gives AR applications (e.g., applications 210) access to the spatial computing features of the AR device. The SDK 208 may include a software development kit that enables the creation of AR applications.

[0049] The passable world component 202 can create and maintain a passable world model. In this example, sensor data is collected on the local device. Processing of the sensor data may be performed partially locally on the XR device and partially in the cloud. In some embodiments, processing of the sensor data may be performed exclusively on the XR device or exclusively in the cloud. The passable world model may include an environment map that is created at least in part based on data captured by AR devices worn by multiple users.

[0050] The passable world component 202 includes a passable world framework (FW) 220 , a storage system 228 , and a number of spatial calculation components 222 .

[0051] The passable world framework 220 can include computer-implemented algorithms programmed to create and maintain a model of the passable world. The passable world framework 220 stores the passable world model in a storage system 228. For example, the passable world framework can store a current passable world model and sensor data in the storage system 228. The passable world framework 220 creates and updates the passable world model by invoking the spatial calculation component 222. For example, the passable world framework can obtain 3-D bounding boxes of objects in a scene by triggering an object recognizer 232 to perform 3-D object recognition.

[0052] The spatial calculation component 222 includes multiple components that can perform calculations in the 3-D space of a scene. For example, the spatial calculation component 222 can include an object recognition system (also called an "object recognizer") 232, a sparse mapping system, a dense mapping system, a map merging system, and the like. The spatial calculation component 222 can generate output that can be used to create or update a passable world model. For example, the object recognition system can generate output data that defines one or more 3-D bounding boxes of one or more objects that have been recognized in a stream of images captured by a sensor of the AR device.

[0053] The storage system 228 can store the passable world model and the sensor data obtained from the multiple AR devices in one or more databases. The storage system can provide the sensor data and the existing passable world model, e.g., objects recognized in the scene, to the algorithms in the passable world FW 220. After calculating an updated passable world model based on the newly obtained sensor data, the storage system 228 can receive the updated passable world model from the passable world FW 220 and store the updated passable world model in the database.

[0054] In some implementations, some or all of the components of the passable world component 202 can be implemented in multiple computers or computer systems in a cloud computing environment 234. The cloud computing environment 234 has distributed, scalable computational resources that may be physically located in locations different from the location of the AR system 200. The multiple computers or computer systems in the cloud computing environment 234 can provide a flexible amount of storage and computational capacity. Using the cloud computing environment, the AR system 200 can provide a scalable AR application 210 involving environments that include multiple user devices and / or large amounts of physical objects.

[0055] In some implementations, the cloud storage system 230 can store the world model and the sensor data. The cloud storage system 230 can have a scalable storage capacity and can accommodate various amounts of storage needs. For example, the cloud storage system 230 can receive recently captured sensor data from the local storage system 228. As more and more sensor data is captured by the sensors of the AR device, the cloud storage system 230, which has a large storage capacity, can accommodate the recently captured sensor data. The cloud storage system 230 and the local storage system 228 can store the same world model. In some implementations, the complete world model of the environment can be stored on the cloud storage system 230, while the part of the passable world model related to the current AR application 210 can be stored on the local storage system 228.

[0056] In some implementations, some of the spatial computation components 222 can be executed in a cloud computing environment 234. For example, the object recognizer 224, computer vision algorithms 226, map merging, and many other types of spatial computation components can be implemented and executed in the cloud. The cloud computing environment 234 can provide more scalable and more powerful computers and computer systems to support the computational needs of these spatial computation components. For example, the object recognizer may include a deep convolutional neural network (DNN) model that requires a large amount of computation, using a graphical computing unit (GPU) or other hardware accelerator and a large amount of runtime memory to store the DNN model. The cloud computing environment can support the requirements of this type of object recognizer.

[0057] In some implementations, the spatial computation component, e.g., the object recognition device, can perform computation in the cloud using sensor data and existing world models that are stored in the cloud storage system 230. In some implementations, the spatial computation and cloud storage can reside in the same cloud computer system to enable efficient computation in the cloud. The cloud computation results, e.g., object recognition results, can be further processed and then stored in the cloud storage system 230 as an updated passable world model.

[0058] In some implementations, the spatial computation component may include multiple subsystems that require varying amounts of computational resources. For example, the object recognizer 224 may include multiple subsystems that each require different amounts of computational resources, such as memory, processor cycles, e.g., CPU or GPU cycles, depending on the current load on the system.

[0059] These subsystems can be implemented as stateless modules that can be scaled up and down as needed. Stateless modules are stateless software applications that do not depend on one or more previous states in a sequence of computations. Each stateless module decouples computation from state and manages state through the inputs and outputs of each stateless module. In other words, stateless modules can perform computations on each input without requiring the module to maintain any state from previous inputs. These modules can perform their individual computational workloads without storing sensor data or other intermediate data, while the passable world model is stored in the cloud storage system 230. Stateless modules can be scaled up or down independently of each other.

[0060] The object recognition system (also referred to as an "object recognizer") 224 can use object recognition algorithms to generate 3-D object recognition outputs for multiple 3-D objects in an environmental scene. The object recognition system 224 can take as input sensor data obtained from sensors of one or more AR devices. The sensor data obtained from each AR device can provide a stream of images (e.g., color images) that characterize the scene from multiple camera poses. The object recognition algorithm can be divided into multiple independent stateless modules that can run in the cloud computing environment 234. The multiple stateless modules can be scaled up or down depending on the current computational needs of each module. Further details of the scalable 3-D object recognition system are described in connection with FIGS. 3 and 4.

[0061] 3 illustrates an exemplary 3-D object recognition system 700 that generates 3-D bounding boxes for objects in a scene. The system 700 can be one implementation of the object recognizer 224 running in a cloud environment. A top view of a scene 702 is shown at the left. The scene 702 depicts a living room scene with several 3-D objects, including a dining table, four dining chairs surrounding the dining table, a long bench, a single sofa, and a coffee table surrounded by the long bench and the single sofa. A stream of input images of the scene 702 are captured using one or more cameras.

[0062] In some implementations, multiple cameras (e.g., RGB-D) from multiple AR devices can generate color and depth images of a scene from various camera poses. For example, five RGB-D cameras can capture scene information. As each camera moves through the living room, each camera can capture a stream of images at a series of timestamps. At a particular timestamp, the camera poses 710, 712, 714, 716, and 718 of the five cameras are shown in FIG. 3.

[0063] Each camera pose is illustrated with multiple straight lines, each connecting each object center visible from that pose to the camera. For example, camera pose 710 includes a first line connecting to the dining chair, a second line connecting to the couch, a third line connecting to the coffee table, and a fourth line connecting to the single sofa. This means that the dining chair, the couch, the coffee table, and the single sofa are visible from this camera pose. The dining table and the other three dining chairs are not visible from this camera pose.

[0064] In some implementations, the RGB-D camera can generate a stream of color images and a stream of depth images of the scene as a user wearing the AR device progresses through the scene. For example, as a user wearing the AR device walks into a living room, the AR device can capture multiple images corresponding to camera poses 710 and 712. As the user walks toward the coffee table, the AR device can capture multiple images corresponding to camera poses 714 and 716. Finally, as the user sits down on the couch, the AR device can capture multiple images corresponding to camera pose 718. The images captured from camera poses 710, 712, 714, 716, and 718 can be a stream of images of the scene 702.

[0065] The stream of images of a scene 702 captured by multiple camera poses can provide rich 3-D information of 3-D objects in the scene. The stream of images of the scene can be used to generate object recognition output even if some of the objects are occluded or not visible in some of the camera poses.

[0066] In some embodiments, the stream of images of a scene may include a stream of color images and a stream of depth images.

[0067] A color image is a two-dimensional (2-D) image or frame of video captured by a camera. Each 2-D image can be an RGB image that depicts the color of one or more objects and their surroundings in the physical world. The color images can be captured in a series of corresponding timestamps. The timestamp information of a color image records the date and time that the color image is captured.

[0068] A depth image captures depth information of objects in a scene. Intensity values ​​in the depth image represent the distance of the object's surface from the camera pose. That is, the intensity value for each pixel in the image represents the distance of the object in the scene depicted at that pixel from the camera that captured the depth image. The timestamp information in the depth image records the date and time the depth image is captured. An RGB-D camera can simultaneously capture a stream of color images and a stream of depth images at different frame rates, or in some embodiments, at the same frame rate.

[0069] The 3-D object recognition system 704 can process a stream of images of the scene 702 and generate data that defines one or more 3-D bounding boxes of one or more objects in the scene 702. The 3-D object recognition system 704 belongs to the passable world component 202, which creates and maintains a passable world model. The generated output data that defines recognized objects in the scene can be used to create and update the passable world model.

[0070] In some implementations, the one or more AR devices can transmit a stream of images to the cloud computing environment 234. In some implementations, the one or more AR devices can perform pre-processing on the AR device before transmitting the processed images to the cloud computing environment 234.

[0071] The 3-D object recognition system can implement scalable 3-D object recognition using the cloud computing environment 234. The 3-D object recognition system can use a 3-D object recognition algorithm that can be divided into multiple subsystems. The subsystems can be implemented in multiple independent stateless modules. The stateless modules can be started, restarted, scaled up, or scaled down as needed. For example, when the system is processing a large stream of input images captured from multiple AR devices, the system can scale up the stateless modules so that the input image frames can be processed in parallel.

[0072] In some implementations, the 3-D object recognition system can launch multiple modules that can perform 3-D object recognition of multiple objects in the scene 702. The multiple modules can run in parallel and independently of each other. The passable world model can be updated based on the 3-D object recognition output of each module, without having to wait for the 3-D object recognition output of all objects in the entire scene.

[0073] For example, the system can have a first module for generating a 3-D bounding box for a single couch, and the system can have a second module for generating a 3-D bounding box for a coffee table. The first module and the second module can handle different objects, i.e., the single couch and the coffee table. Thus, the first module and the second module can be independently scaled, as necessary, to calculate the 3-D bounding boxes of the single couch and the coffee table. Further details of the subsystems of the 3-D object recognition system are described in connection with FIG. 4.

[0074] The generated 3-D bounding box of the object is overlaid with the scene, as shown in top view 706. Each 3-D bounding box of an object is an estimated rectangular box that tightly surrounds the object. For example, rectangular box 708 is a top view of the 3-D bounding box of a coffee table. The 3-D bounding box can be defined by the coordinates of the corners or other reference locations of the box, the width, height, and depth of the box. In some implementations, the 3-D bounding box can be defined using a set of reference coordinates relative to a fixed point on the surface of the bounding box, i.e., coordinates different from the corners of the box, e.g., anchor points.

[0075] FIG. 4 illustrates an exemplary 3-D object recognition system 800 that generates 3-D bounding boxes for objects in a scene from a stream of color images and a stream of depth images. The system 800 can be an embodiment of the object recognizer 224 running in a cloud environment. The system 800 receives a stream of input images of a scene. The stream of input images includes a stream of color images 802 and a stream of depth images 804. The color images 802 and the depth images 804 can be in asynchronous streams at different frame rates. For example, the stream of color images 802 can be 5 frames / second and the stream of depth images 802 can be 1 frame / second. The stream of color images 802 and the stream of depth images 804 can be at different image resolutions. For example, the stream of color images can have a much higher resolution than the stream of depth images.

[0076] The system takes as input each of a number of color images in the stream of color images. The system may process each color image in the stream of color images. Alternatively, the system may process a subset of color images selected from the stream of color images at a time interval. That is, the system may not process all color images in the stream of color images. The stream of depth images may be temporarily stored in a storage system while the system is processing the color images.

[0077] Each input color image captures a scene of the environment from a camera pose. For example, input color image 802 captures a partial view of scene 702 from camera pose 710, and the visible objects in scene 702 include a dining chair, a chaise lounge, a single sofa, and a coffee table.

[0078] Each input color image 802 is processed through an object recognition system. The object recognition system can generate a 2-D object recognition output from the input color image. The 2-D object recognition output can include data that identifies a separate object mask in the color image for each of one or more objects that have been recognized in the color image. The object mask can include values ​​of multiple pixels that can indicate whether a pixel belongs to an object, i.e., is a foreground pixel or a background pixel. For example, a contour 803 of a segmentation mask of a coffee table is overlaid on top of the input color image 802. The area inside the contour 803 indicates pixels that belong to the coffee table object.

[0079] The 2-D object recognition system can implement one or more computer vision algorithms that perform 2-D object recognition. The one or more computer vision algorithms can include machine learning based algorithms, such as those that use machine learning models that are pre-trained with training data that includes the 2-D object mask labels.

[0080] Various 2-D object recognition algorithms can be used, such as Mask Region-Convolutional Neural Network (R-CNN) (He, Kaiming, et al. “Mask R-CNN.” Proceedings of the IEEE international conference on computer vision. 2017), Single Shot Detector (SSD) (Wei Liu, Dragomir Anguelov, Dumitru Erhan, Christian Szegedy, Scott Reed, Cheng-Yang Fu, and Alexander C. Berg. SSD: Single shot multi-box detector. 2016.), and YOLO Detector (J. Redmon, S. Divvala, R. Girshick, and A. Farhadi. You only look once: Unified, real-time object detection. In 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 779-788, June 2016).

[0081] For example, a 2-D object recognition system can use a Mask R-CNN neural network trained on an object detection dataset to detect indoor objects of interest, e.g., chairs, tables, sofas, TVs, etc. Mask R-CNN can generate a binary mask for each of a given number of objects. Each binary object mask can separate the foreground object from the background.

[0082] In some implementations, if an object is not recognized in an input color image, the system may proceed to process the next input color image in the multiple color images in the stream of color images.

[0083] In some implementations, if one or more objects are recognized in the input color image, the system can proceed to synchronize the input color image and the depth image based on the timestamp. The system may only perform synchronization for color images in which at least one object of interest has been detected. In this manner, the system can reduce the amount of calculations required since many of the input color images may not have objects of interest.

[0084] A plurality of depth images in the stream of input color images and depth images are provided as input to a synchronization system. The synchronization system can determine a corresponding depth image 804 for a color image 802 based on a timestamp of the corresponding depth image and a timestamp of the color image. In some implementations, from among the plurality of depth images, the synchronization system can identify a depth image having a timestamp closest to the input color image 802. If the timestamp difference is less than a certain threshold, the identified depth image is accepted as the depth image 804 corresponding to the input color image 802. In some implementations, the input color images and depth images can be captured from different cameras of multiple AR devices. For example, when multiple AR devices capture depth images of a living room, based on the timestamp information and the camera pose, the system may identify a depth image captured by a first AR device as a depth image corresponding to an input color image captured by a second AR device.

[0085] Data identifying the object mask and the corresponding depth image 804 are provided as input to a 3-D bounding box generation system that can determine, from the object mask and the corresponding depth image, a separate 3-D bounding box for each of one or more objects recognized in the input color image 802.

[0086] In some implementations, for each 2-D image coordinate with a valid depth value, the system can project the 2-D image coordinate into a 3-D voxel coordinate by projecting the color image onto the depth image. Given a predicted binary 2-D object mask for an object recognized in the color image, the system can generate a corresponding 3-D voxel in the 3-D object mask.

[0087] In some implementations, the depth image can have a lower image resolution than the color image. For example, the resolution of the depth image can be 200×400, while the corresponding color image can be 800×1,600. The 3-D voxels projected from the 2-D object mask in the color image can have a lower resolution corresponding to the depth image resolution. This can save computational costs in subsequent processing steps.

[0088] For example, from a depth image 804 of a coffee table and a 2-D object mask 803, a 3-D bounding box generation system can determine a depth value for each pixel in the object mask. The system can generate a 3-D object mask represented by voxels 805, where each voxel can be calculated from a pixel location in the input color image and a corresponding depth value in the corresponding depth image. The 3-D bounding box generation system can determine a 3-D bounding box for the coffee table based on the 3-D object mask 805.

[0089] For example, the system can calculate a voxel representation 805 from the location of the foreground pixels in the segmentation mask 803. For each foreground pixel with 2-D image coordinates (x,y), the system can use the corresponding depth value of the depth image and the camera pose to project the image coordinates into a world coordinate frame. The world coordinate frame can be determined in advance and can be the same as the camera pose of the depth image. Given a voxel resolution r (e.g., r=4 cm), which is determined based on the resolution of the depth image, each point in the world coordinate frame is discretized into a corresponding voxel. Based on these transformations, and given a 2-D binary object mask 803 for the object in the input color image, the system can project all foreground pixels of the binary mask into corresponding 3-D voxels 805 in the world coordinate frame.

[0090] In some implementations, the system can maintain object data that defines objects that have been previously recognized within a scene in the environment. The object data can include 3-D bounding boxes of one or more objects that have been previously recognized in multiple viewpoints of the scene in the environment. The system can store the object data of previously recognized objects in storage system 230 or 228.

[0091] In some implementations, the 3-D bounding box generation system can read object data defining previously recognized objects that are near one or more objects currently recognized in the input color image, and update the object data defining the previously recognized objects.

[0092] The 3-D bounding box generation system can include a multi-view fusion system. The multi-view fusion system can obtain retained object data of previously recognized objects that are visible 808 at the camera pose of the input image. The multi-view fusion system can associate the previously recognized objects with the currently recognized object in the current input image. The multi-view fusion system can perform a fusion 810 between the generated 3-D object mask of the currently recognized object and the retained object data that defines the previously recognized object that is associated with the currently recognized object.

[0093] For example, the multi-view fusion system can estimate which objects are visible 808 in the current input image by calculating the intersection of the currently recognized 3-D object mask with previously recognized 3-D object masks for corresponding objects in the neighborhood of the current input image. The neighborhood size can be a predetermined value, for example, a 5 meter radius of the current input image. In some implementations, all previously recognized objects with non-zero intersections with the currently recognized 3-D object mask can be identified as visible objects. For example, the system can determine that a previously recognized 3-D object mask 807 of a coffee table is visible at the current camera pose.

[0094] For example, after loading previously recognized objects 808 that are visible in the current camera pose, the multi-view fusion system can perform object association and fusion. For each 3-D object mask in the recognized 806 in the current input color image 802, the system can determine whether an object mask of a previously recognized object exists based on the relative distance of the two masks. For example, the system can determine that a 3-D object mask 807 is associated with a recognized 3-D object mask 805 of a coffee table. The system can generate an updated 3-D object mask 809 by calculating the union of the two object masks. In this embodiment, the system can perform the union of the two object masks by calculating the union of the two object masks.

[0095] After processing each image of the multiple images in the stream of color images, the system may generate a final output 812 that includes data defining one or more 3-D bounding boxes for one or more recognized objects in the scene. For example, the system may output a 3-D bounding box 814 for a coffee table in a living room.

[0096] The 3-D object detection system can launch 3-D object recognition for every input color image independently, e.g., on each frame. The system can process every input color image in parallel on different stateless modules. In some implementations, the system can use object-level locking / unlocking methods to ensure that the same object is not updated by different modules at the same time.

[0097] For example, after the system determines that a previously recognized coffee table 807 is present in the current camera pose, the system can perform object association and fusion 810 with the 3-D object mask recognized in the current input image while locking the previously recognized coffee table information stored in the storage system. This can ensure that the coffee table is not updated by other modules running in parallel.

[0098] One or more 3-D bounding boxes 812 can be provided to a passable world component 202, which creates and maintains a model of the passable world. The passable world component can directly use the one or more 3-D bounding boxes in the passable world model. Alternatively, or in combination, the passable world component can further process the one or more 3-D bounding boxes to generate a new or updated passable world model.

[0099] 5 is a flow chart of an exemplary process 900 for computing 3-D object recognition results from a stream of input images of a scene. The process will be described as being performed by a suitably programmed AR system 200. The process 900 can be performed in a cloud computing environment 234. In some implementations, some computations in the process 900 can be performed in a local AR device in the passable world component 202 while the local AR device is connected to the cloud.

[0100] The system maintains object data (902) that defines objects that are being recognized in a scene in the environment. The scene can include either a small area or a large area, such as a room, a floor of a building, or the size of a city. The objects in the scene can include 3-D real-world objects. The objects can be stationary or moving objects. The object data that defines the objects that are being recognized can include previously calculated 3-D bounding boxes or 3-D object masks of the objects in the scene. The system can maintain the object data by storing the object data in a storage system, which can be either on the AR device or in the cloud, or both. The object data maintained by the system can be updated using images of the environmental scene collected by one or more AR devices.

[0101] The system receives (904) a stream of input images of a scene. The stream of input images can include a stream of color images and a stream of depth images. The stream of input images can be from one or more AR devices capturing the scene from one or more camera poses. In some implementations, the AR device can capture the stream of input images while a user of the AR device navigates through the scene. The stream of input images can include corresponding camera pose information. The camera pose can include six degrees of freedom (6DOF), including degrees of freedom for changing the camera pose forward / backward, up / down, left / right with respect to the coordinate system of the surrounding environment.

[0102] In some implementations, one or more AR devices sharing the environment are connected to the cloud computing environment 234. The one or more AR devices can transmit collected camera images to the cloud. The system can use the stream of images in the cloud to recognize one or more objects.

[0103] For each of a plurality of color images in the stream of color images, the system provides the color image as an input to an object recognition system (906). For example, the system can pass each color image to a 2-D segmentation module, which can perform object segmentation for objects of interest. The 2-D segmentation module can generate segmentation masks for chairs, tables, sofas, posters, TV screens, etc.

[0104] The system can provide input images capturing different views of the same object to the object recognition system. The object recognition system can generate 2-D segmentation masks of the same object from the different views. For example, the 2-D segmentation module of the system can generate four segmentation masks for a chair from the left, right, front, and back views of the same chair. Having the segmentation masks from the different views, the system can later generate a more complete 3-D object recognition output of the object of interest.

[0105] The system receives as output from the object recognition system a recognition output that identifies a distinct object mask in the color image for each of the one or more objects recognized in the color image (908). In some implementations, the object recognition system can include a trained deep neural network (DNN) model. The DNN model can take the color image as input and generate a distinct 2-D object mask for each of the one or more objects recognized in the color image. Each object mask can characterize the size and shape of the object from a corresponding camera pose of the input color image.

[0106] The system provides a number of depth images in the stream of color and depth images as input to a synchronization system (910). The synchronization system can determine a corresponding depth image for a color image based on the timestamp of the corresponding depth image and the timestamp of the color image. Each depth or color image has a timestamp that describes the date and time the image is captured. The timestamp information of the depth and color images can indicate a time relationship between the stream of depth images and the stream of color images.

[0107] In some implementations, the synchronization system can identify a candidate depth image having a timestamp closest to the timestamp of the color image. The synchronization system can determine that the time difference between the candidate depth image and the color image is less than a threshold, e.g., 1 second. In response, the synchronization system can determine the candidate depth image as a corresponding depth image for the color image. If the system cannot identify a corresponding depth image for a color image, the system can stop processing the color image and start processing the next color image in the stream of color images.

[0108] The system provides data identifying the object mask and the corresponding depth image as input to a 3-D bounding box generation system 914. The 3-D bounding box generation system determines, from the object mask and the corresponding depth image, a respective 3-D bounding box for each of one or more of the objects recognized in the color image.

[0109] In some implementations, a 3-D bounding box generation system can include multiple subsystems. FIG. 6 is a system diagram illustrating several subsystems in an exemplary 3-D bounding box generation system 1000. The 3-D bounding box generation system 1000 can include a multi-view fusion system 1004, an object refinement system 1010, and a bounding box refinement system 1012. These subsystems can be implemented as stateless modules such that these subsystems can operate independently of each other in a stateless manner. Each stateless module can be independently started, restarted, scaled up, or scaled down as needed without affecting the overall system performance.

[0110] The multi-view fusion system can generate an initial set of 3-D object masks. In some implementations, the multi-view fusion system can perform multiple steps to generate the initial set of 3-D object masks. The system can determine that the generated object masks correspond to one or more valid depth values ​​in the depth image. In response to determining that the generated object masks correspond to one or more valid depth values ​​in the depth image, the system can find nearby objects that are recognized in the color image within a predetermined distance from the center of the depth camera. Based on the depth values ​​of corresponding pixels in the depth image, the system can generate a 3-D voxel representation of each object mask for each nearby object. The 3-D voxel representation of each object mask is a 3-D segmentation mask of the 3-D object. Each voxel in the 3-D segmentation mask can represent the 3-D coordinates of a corresponding portion of the object.

[0111] As discussed above, the system maintains object data that defines objects that have been recognized within a scene in the environment. The system can find the maintained object data of previously recognized objects that are visible at the current camera pose. The maintained object data can include a 3-D object mask of the previously recognized object. In some implementations, the maintained object data for each previously recognized object can include a set of 3-D weighted voxels and a category label. For example, the value of the weight for each voxel can indicate the likelihood that the voxel represents a part of a previously recognized object. The category label can indicate the class to which the object belongs, such as a chair, a door, a sofa, a TV, etc.

[0112] In some implementations, the multi-view fusion system may include an association system 1006 and a fusion system 1008 .

[0113] The association system 1006 can identify object data from the maintained object data of previously recognized objects that are visible at the current camera pose that defines the previously recognized object that is matched with the object mask of the currently recognized object in the color image. In some implementations, the association system can associate a 3-D object mask of a recognized object in the color image with the maintained 3-D object mask of a corresponding previously recognized object.

[0114] The association system can perform object association using a combinatorial optimization algorithm that solves the assignment problem. For example, the system can use the Hungarian method (Munkres, James. “Algorithms for the assignment and transportation problems.” Journal of the society for industrial and applied mathematics 5, no. 1 (1957): 32-38) to associate detections in the current input image with previously recognized objects.

[0115] The fusion system 1008 can generate an initial 3-D object mask for each recognized object in the color image by combining the object mask in the color image with the matched object data. In some implementations, if an association between the 3-D object mask of the recognized object in color and the 3-D object mask of a previously recognized object is found, the system can update the 3-D object mask through mask fusion. For example, the fusion system can increase the value of the weight of overlapping voxels between the two 3-D object masks to indicate an increased likelihood that these voxels represent part of the object. The fusion system can also add new voxels to the updated 3-D object mask, where these new voxels correspond to non-overlapping voxels between the two 3-D object masks.

[0116] In some implementations, the system can determine that a recognized object in the color image does not have an existing object associated among the maintained object data of the previously recognized object that is visible at the current camera pose, and the system can create a new object instance using the 3-D object mask, and the system can add the new object instance to the maintained object data.

[0117] The multi-view fusion system 1004 can associate and fuse multiple 3-D object masks from a stream of input images. The multi-view fusion system can generate object masks at the object level. Each object mask can be updated independently, and multiple objects can be updated in parallel and asynchronously.

[0118] For example, the system can update the couch object mask 811 and the coffee table object mask 809 in parallel. The system can have one multi-view fusion system working on the association and fusion of the couch object mask, and the system can asynchronously work on another multi-view fusion system working on the association and fusion of the coffee table object mask. The two systems can run in parallel and in parallel. Thus, the system can efficiently process many images and many objects.

[0119] The object refinement system 1010 can refine the initial set of 3-D object masks and generate an initial set of 3-D bounding boxes. For every new or updated object generated by the multi-view fusion system, the system can find neighboring objects in the vicinity of the new or updated object. The object refinement system can perform multiple object refinement operations according to multiple references.

[0120] For example, the system can remove noisy voxels from an initial set of 3-D object masks using a 3-D connected components algorithm (Samet, H.; Tamminen, M. (1988). “Efficient Component Labeling of Images of Arbitrary Dimension Represented by Linear Bintrees”. IEEE Transactions on Pattern Analysis and Machine Intelligence. 10(4):579.). The system can remove voxels or objects that are not visible from a sufficient number of views. The system can merge nearby objects if they belong to related categories, such as desks and tables.

[0121] After the object refinement operation, the system can convert the refined 3-D object mask into an initial set of 3-D bounding boxes. The system can generate 3-D cuboid bounding boxes that are oriented to the selected camera pose. The camera pose can be the same as the camera pose of one of the input color images, or the camera pose can be predefined by the passable world component 202.

[0122] A bounding box refinement system 1012 may refine the initial set of 3-D bounding boxes to generate one or more final 3-D bounding boxes 812. For every new or updated bounding box generated by the object refinement system, the bounding box refinement system 1012 may remove noisy bounding boxes. The bounding box refinement system may perform multiple bounding box refinement operations based on multiple references.

[0123] For example, the system can remove overlapping bounding boxes that belong to the same category through algorithms such as the non-maximum suppression algorithm (Neubeck, Alexander, and Luc Van Gool. “Efficient non-maximum suppression.” 18th International Conference on Pattern Recognition (ICPR'06). Vol. 3. IEEE, 2006). As another example, the system can remove bounding boxes that do not satisfy a size constraint for a given category label. For example, the system can remove bounding boxes labeled as couches that are less than 30 centimeters long.

[0124] In some implementations, the object recognition system, the synchronization system, the multi-view fusion system, e.g., the association and fusion system, the object refinement system, and the bounding box refinement system, can operate independently of each other in a stateless manner. By dividing the object recognition task into multiple subsystems, the 3-D object recognition system can implement each subsystem in an independent stateless module. Each stateless module can be started, restarted, scaled up, or scaled down independently as needed without affecting the overall system performance.

[0125] For example, if multiple users of multiple AR devices are looking at the same object, the number of frames / second of input images being received in the cloud is greater than the number of outputs / second generated by the 2-D object recognition system because each stateless module of the 2-D object recognition system may take one second to perform 2-D object detection and segmentation. The system can scale up the stateless modules that perform 2-D object recognition to ensure that the throughput of these modules is high enough not to block the subsequence processing modules.

[0126] The 3-D object recognition system is scalable in the number of AR devices (or AR device users) and the number of objects in an environmental scene. Multiple AR devices can be connected to a cloud computing environment, can jointly contribute multiple streams of input data for 3-D object recognition, and can share recognized 3-D objects.

[0127] The system receives data defining one or more 3-D bounding boxes for one or more objects recognized in the color image as output from the 3-D bounding box generation system (916). In some implementations, the system also stores the data defining the one or more 3-D bounding boxes in a storage system as intermediate 3-D bounding boxes.

[0128] The system provides as output (918) data defining one or more 3-D bounding boxes. The system can store the one or more 3-D bounding boxes in a storage system 230 in the cloud as updated 3-D bounding boxes. The system can also store a copy of the most recent 3-D bounding box in a storage system 228 on the AR device. The system can provide the output to a passable world component 202 of the AR system. The passable world component 202 can use the one or more 3-D bounding boxes of the one or more recognized objects to create or update a passable world model that is shared across multiple AR devices. For example, the one or more 3-D bounding boxes can be used to create or update a persistent coordinate frame (PCF) in the passable world model.

[0129] In some implementations, the 3-D bounding box generation system can determine an individual 3-D object mask for each of the one or more objects recognized in the color image from the object masks and the corresponding depth image. The system can receive as output from the 3-D bounding box generation system data defining one or more 3-D object masks for one or more of the objects recognized in the color image. The system can provide as output data defining the one or more 3-D object masks. The passable world model can include information for the one or more 3-D object masks. In some implementations, the system can output 3-D mesh data identifying the 3-D object masks of the recognized objects.

[0130] AR applications can have a more immersive experience using passable world models based on 3-D object masks. For example, a virtual assistant in an interactive gaming application can be seated on a chair that is recognized in the passable world model. Using the 3-D mesh data of the chair, the virtual assistant can be seated on the seat of the chair, rather than on top of the chair's 3-D bounding box, providing a more immersive experience.

[0131] FIG. 7 illustrates an exemplary 3-D object recognition system 300 that generates 3-D bounding boxes for objects in a scene from a stream of input images. The system 300 can be an example of the object recognizer 224 running in a cloud environment. The stream of input images of a scene can be captured using one or more cameras. In some implementations, multiple cameras (e.g., RGB cameras) from multiple AR devices can generate images of the scene from various camera poses. For example, streams of color images 302, 304, and 306 can depict a scene of an office environment. The office environment can have several 3-D objects, including a monitor, a desk, a chair, a keyboard, a mouse, and the like. An identical keyboard 314 can be captured from three camera poses, corresponding to the input images 302, 304, and 306, as 314(a), 314(b), and 314(c). As each camera moves within the environment (e.g., the office environment), each camera can capture a stream of images at a series of camera poses.

[0132] In some embodiments, the stream of images of the scene can include a stream of color images. The stream of color images can include two-dimensional (2-D) images or frames of video captured by a camera. The stream of color images can be at a frame rate. For example, the stream of color images can be 5 frames per second. Each 2-D image can be an RGB image that depicts the color of one or more objects and the color of its surroundings in the physical world. Each color image is associated with data that identifies the camera pose when the color image is captured. The camera pose can include six degrees of freedom (6DOF), including degrees of freedom for changing the camera pose forward / backward, up / down, left / right relative to the coordinate system of the surroundings.

[0133] Some 3-D objects may be either dark, e.g., black, or reflective. It may be difficult to capture depth images of these 3-D objects that are black or reflective using a depth camera. In other words, the depth information of these 3-D objects may have poor quality and may not be useful in performing 3-D object recognition. For example, a keyboard or mouse may be black, and the depth sensor in the RGB-D camera may not work well enough to capture the depth information of the keyboard or mouse.

[0134] A stream of images of a scene captured by multiple camera poses can provide rich 3-D information of 3-D objects in the scene even when depth information is unavailable. The stream of images of a scene can be used to generate object recognition output for 3-D objects (e.g., a keyboard) even though depth information may be completely unavailable.

[0135] The 3-D object recognition system 310 can process a stream of images of a scene and generate data 312 that defines one or more 3-D bounding boxes of one or more objects in the scene. For example, from the stream of input images 302, 304, and 306, the 3-D object recognition system 310 can recognize 2-D bounding boxes of an identical keyboard in each image, e.g., keyboards 314(a), 314(b), and 314(c). Based on the 2-D bounding boxes, the 3-D object recognition system 310 can generate a 3-D bounding box 324 of the keyboard.

[0136] Each 3-D bounding box of an object is an estimated rectangular box that tightly surrounds the 3-D object. For example, rectangular box 324 is the 3-D bounding box of keyboard 314(a) (314(b) or 314(c)).

[0137] The 3-D object recognition system 310 belongs to the passable world component 202, which creates and maintains the passable world model. The generated output data 312, which defines the recognized objects in the scene, can be used to create and update the passable world model.

[0138] In some implementations, the one or more AR devices can transmit a stream of images to the cloud computing environment 234. In some implementations, the one or more AR devices can perform pre-processing on the AR device before transmitting the processed images to the cloud computing environment 234.

[0139] The 3-D object recognition system can implement scalable 3-D object recognition using the cloud computing environment 234. The 3-D object recognition system can use a 3-D object recognition algorithm that can be divided into multiple subsystems. The subsystems can be implemented in multiple independent stateless modules. The stateless modules can be started, restarted, scaled up, or scaled down as needed. For example, when the system is processing a large stream of input images captured from multiple AR devices, the system can scale up the stateless modules so that the input image frames can be processed in parallel.

[0140] In some implementations, the 3-D object recognition system can launch multiple modules that can perform 3-D object recognition of multiple objects in a scene. The multiple modules can run in parallel and independently of each other. The passable world model can be updated based on the 3-D object recognition output of each module, without having to wait for the 3-D object recognition output of all objects in the entire scene.

[0141] For example, the system may have a first module for generating a 3-D bounding box for the first keyboard 314 using keyboard images 314(a), 314(b) and 314(c), and the system may have a second module for generating a 3-D bounding box for the second keyboard 316 using keyboard images 316(b) and 316(c). The first module and the second module may process data for different objects, i.e., the first keyboard and the second keyboard. Thus, the first module and the second module may be independently scaled, as necessary, to calculate the 3-D bounding box 324 of the first keyboard and the 3-D bounding box 326 of the second keyboard. Further details of the subsystems of the 3-D object recognition system are described in connection with FIG. 8.

[0142] 8 is a flow chart of an example process 400 for computing 3-D object recognition results from a stream of input images of a scene. The process will be described as being performed by a suitably programmed AR system 200. The process 400 can be performed in a cloud computing environment 234. In some implementations, some computations in the process 400 can be performed in a local AR device in the passable world component 202 while the local AR device is connected to the cloud.

[0143] The system maintains object data (402) that defines objects that have been recognized in a scene in the environment. The scene can include either a small area or a large area, such as a room, a floor of a building, or the size of a city. The objects in the scene can include 3-D real-world objects. The objects can be stationary or moving objects. The object data that defines the recognized objects can include previously calculated 3-D bounding boxes or 3-D object masks of the objects in the scene. The system can maintain the object data by storing the object data in a storage system, which can be on the AR device or in the cloud, or both. The object data maintained by the system can be updated using images of the environmental scene collected by one or more AR devices. The system can store object data of previously recognized objects in the storage system 230 or 228.

[0144] The system receives (404) a stream of input images of a scene. The stream of input images can include a stream of color images. The stream of input images can be from one or more AR devices capturing the scene from one or more camera poses. In some implementations, the AR device can capture the stream of input images while a user of the AR device navigates through the scene. The stream of input images can include corresponding camera pose information. The camera pose can include six degrees of freedom (6DOF), including degrees of freedom for changing the camera pose forward / backward, up / down, and left / right.

[0145] The system may process each input image in the stream of input images. Alternatively, the system may process a subset of input images selected from the stream of input images at a time interval. That is, the system does not have to process all input images in the stream of input images. The stream of input images can be temporarily stored in a storage system while the system is processing the color images.

[0146] In some implementations, one or more AR devices sharing the environment are connected to the cloud computing environment 234. The one or more AR devices can transmit collected camera images to the cloud. The system can use the stream of images in the cloud to recognize one or more objects.

[0147] For each of a plurality of input images of the scene, the system provides the input image as an input to an object recognition system 406. For example, the system can pass each color image to an object recognition system, such as a 2-D object detection module, which can perform object detection for objects of interest, such as a keyboard or a mouse.

[0148] The system can provide input images that capture different views of the same object to an object recognition system. The object recognition system can generate 2-D bounding boxes of the same object from the different views. For example, a 2-D object detection module can generate three 2-D bounding boxes for a keyboard from a left view, a right view, and a front view of the same keyboard. Having the 2-D bounding boxes from different views, the system can later generate a more complete 3-D object recognition output of the object of interest.

[0149] An object recognition system, e.g., a 2-D object recognition system, can implement one or more computer vision algorithms that perform 2-D object recognition. The one or more computer vision algorithms can include machine learning based algorithms, e.g., those that use machine learning models that are pre-trained with training data that includes 2-D object bounding boxes. In some implementations, the object recognition system can include a trained deep neural network (DNN) model.

[0150] Faster Region-Convolutional Neural Network (R-CNN) (Ren, Shaoqing, Kaiming He, Ross Girshick, and Jian Sun. “Faster r-cnn: Towards real-time object detection with region proposal networks.” In Advances in neural information processing systems, pp. 91-99. 2015), a Single Shot Detector (SSD) (Wei Liu, Dragomir Anguelov, Dumitru Erhan, Christian In 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 779-788, June Various 2-D object recognition algorithms can be used, such as 2-D object recognition algorithms ... (e.g., 2016).

[0151] For example, a 2-D object recognition system can use a Faster R-CNN neural network model trained on an object detection dataset to detect indoor objects of interest, such as chairs, tables, water bottles, keyboards, books, mice, etc. Faster R-CNN can generate bounding boxes for each of a given number of objects. Each object bounding box can indicate the location of the object being recognized within the scene.

[0152] The system receives (408) as output from the object recognition system a recognition output that identifies a distinct bounding box in the input image for each of one or more objects that have been recognized in the input image.

[0153] The system provides data identifying the bounding box as input to a 3-D bounding box generation system (410). In some implementations, if an object is not recognized in the input color image, the system may proceed to process the next input color image in the multiple input images in the stream of input images. The system may only perform 3-D bounding box generation for input images in which at least one object of interest has been detected. In this manner, the system may reduce the amount of calculations required since many of the input images may not have an object of interest.

[0154] The 3-D bounding box generation system determines from the object data and the bounding boxes a respective 3-D bounding box for each of one or more of the objects recognized in the input image. In some implementations, the 3-D bounding box generation system can include multiple subsystems. In some implementations, the 3-D bounding box generation system can include a multi-view fusion system and a bounding box refinement system. The multi-view fusion system can generate an initial set of 3-D bounding boxes. The bounding box refinement system can refine the initial set of 3-D bounding boxes to generate one or more 3-D bounding boxes.

[0155] The multiview fusion system can generate an initial set of 3-D object bounding boxes. In some implementations, the multiview fusion system can read object data defining previously recognized objects that are proximate to one or more objects currently recognized in the input image, and update object data defining the previously recognized objects.

[0156] In some implementations, the multi-view fusion system can use an ellipsoid fitting algorithm (Rubino C, Crocco M, Del Bue A. 3D Object Localisation from Multi-view Image Detections. IEEE transactions on pattern analysis and machine intelligence. 2017May4;40(6):1281-94), which performs multiple steps and generates an initial set of 3-D object bounding boxes. The ellipsoid fitting algorithm can generate an estimate of the ellipsoid in 3-D given a set of 2-D ellipsoids that fit the 2-D object detection bounding boxes in the multiple views.

[0157] Using an ellipsoid fitting algorithm, the system can associate each bounding box with existing object bounding boxes in the vicinity. For each 2-D bounding box currently identified in the input image, the system can determine whether each 2-D bounding box currently identified in the input image is associated with one or more 2-D bounding boxes of objects previously recognized in the maintained object data. The system can associate the bounding boxes by comparing the distance between the bounding boxes. For example, the system can determine that a previously recognized 2-D bounding box of keyboard 314(a) is in the vicinity, e.g., within 10 cm, of a currently recognized 2-D bounding box of keyboard 314(b). The system can then associate the 2-D bounding box of keyboard 314(b) with the 2-D bounding box of keyboard 314(a) in the maintained object data.

[0158] If the system determines that the currently identified 2-D bounding box in the input image is associated with one or more 2-D bounding boxes of previously recognized objects, the system can calculate and update the maintained object data of the previously recognized objects. In some implementations, the maintained object data can include an ellipsoid that best fits the one or more previously recognized 2-D bounding boxes. The system can recalculate the ellipsoid that best fits both the currently identified 2-D bounding box in the input image and the one or more previously recognized 2-D bounding boxes. For example, the system can determine that the 2-D bounding box of the currently identified keyboard 314(c) in the image 306 is associated with the 2-D bounding boxes of the keyboards 314(a) and 314(b). The system can generate an updated 3-D ellipsoid that best fits the 2-D bounding boxes for the keyboards 314(a), 314(b), and 314(c) detected in the three different camera poses.

[0159] If the system determines that the 2-D bounding box currently identified in the input image is not associated with a previously recognized object, the system can create a new object by generating an ellipsoid from at least the 2-D bounding box currently identified in the input image. The system can add the new object to the maintained object data. In some implementations, the system can create a new object by generating an ellipsoid that best fits a 2-D bounding box generated from multiple neighboring frames in a RANSAC loop (Fischler MA, Bolles RC. Random sample consensus: a paradigm for model fitting with applications to image analysis and automated cartography. Communications of the ACM. 1981 Jun 1;24(6):381-95).

[0160] The system can generate an initial set of 3-D bounding boxes using the ellipsoids of objects recognized in the input image. For example, for each 3-D ellipsoid generated for an object recognized in the input image, the system can generate a closely fitting gravity-aligned 3-D bounding box from the ellipsoid, which can be the initial 3-D bounding box of the object (Rubino C, Crocco M, Del Bue A. 3D Object Localisation from Multi-view Image Detections. IEEE transactions on pattern analysis and machine intelligence. 2017 May 4;40(6):1281-94). The ellipsoid mesh points can be extracted given the ellipsoid matrix by calculating the eigenvectors and eigenvalues ​​of the matrix. The ellipsoid mesh points can be projected onto the XY plane based on the known gravity direction. The closest fitting 2-D bounding box can be calculated in the XY plane. The closest fitting 2-D bounding box can be extended in the Z axis based on the known extent of the mesh points in the Z axis, which can result in a close fitting gravity-aligned 3-D bounding box.

[0161] In some implementations, the multi-view fusion system can generate 3-D object bounding boxes at the object level. Each object bounding box can be updated independently, and multiple objects can be updated in parallel and asynchronously. For example, the system can update the 3-D object bounding box 324 of the first keyboard 314 and the 3-D object bounding box 326 of the second keyboard 316 in parallel. The system can have one multi-view fusion system working on creating and updating the object bounding box of the first keyboard, and the system can have another multi-view fusion system working on creating and updating the object bounding box of the second keyboard asynchronously. The two systems can run in parallel and in parallel. Thus, the system can efficiently process a large number of images and data for a large number of objects.

[0162] In some implementations, the system can use object-level locking / unlocking methods to ensure that the same object is not updated by different modules at the same time. For example, after the system determines that there is a previously recognized keyboard 314(a) from the input image 302 in the maintained object data, the system can perform multi-view fusion with the 2-D object bounding box of the currently recognized keyboard 314(b) in the input image 304 while locking the information of the previously recognized keyboard 314 stored in the storage system. This can ensure that the keyboard 314 is not updated by other modules running in parallel.

[0163] The bounding box refinement system can be a subsystem of the 3-D bounding box generation system. The bounding box refinement system can refine an initial set of 3-D bounding boxes and generate one or more final 3-D bounding boxes. For every new or updated bounding box generated by the multi-view fusion system, the bounding box refinement system can remove noisy or redundant bounding boxes. The bounding box refinement system can perform multiple bounding box refinement operations based on multiple references.

[0164] For example, the system can remove overlapping bounding boxes that belong to the same category through an algorithm such as the non-maximum suppression algorithm (Neubeck, Alexander, and Luc Van Gool. “Efficient non-maximum suppression.” 18th International Conference on Pattern Recognition (ICPR'06). Vol. 3. IEEE, 2006). As another example, the system can remove bounding boxes that do not satisfy a size constraint for a given category label. For example, the system can remove bounding boxes labeled as keyboards that are less than 5 centimeters long.

[0165] In some implementations, the object recognition system, the multi-view fusion system, and the bounding box refinement system can operate independently of each other in a stateless manner. By dividing the object recognition task into multiple subsystems, the 3-D object recognition system can implement each subsystem in an independent stateless module. Each stateless module can be started, restarted, scaled up, or scaled down independently as needed without affecting the overall system performance.

[0166] For example, if multiple users of multiple AR devices are looking at the same object, the number of frames / second of input images being received in the cloud is greater than the number of outputs / second generated by the 2-D object recognition system because each stateless module of the 2-D object recognition system may take one second to perform 2-D object detection and segmentation. The system can scale up the stateless modules that perform 2-D object recognition to ensure that the throughput of these modules is high enough not to block the subsequence processing modules.

[0167] The 3-D object recognition system is scalable in the number of AR devices (or AR device users) and the number of objects in an environmental scene. Multiple AR devices can be connected to a cloud computing environment, can jointly contribute multiple streams of input data for 3-D object recognition, and can share recognized 3-D objects.

[0168] The system receives data defining one or more 3-D bounding boxes for one or more objects recognized in the input image as output from the 3-D bounding box generation system (412). In some implementations, the system also stores the data defining the one or more 3-D bounding boxes in a storage system as intermediate 3-D bounding boxes.

[0169] The system provides as output (414) data defining one or more 3-D bounding boxes. The system can store the one or more 3-D bounding boxes as updated 3-D bounding boxes in the cloud storage system 230. The system can also store a copy of the most recent 3-D bounding box in the storage system 228 on the AR device. The system can provide the output to the passable world component 202 of the AR system.

[0170] The passable world component 202 can use one or more 3-D bounding boxes of one or more recognized objects to create or update a passable world model that is shared across multiple AR devices. For example, the one or more 3-D bounding boxes can be used to create or update a persistent coordinate frame (PCF) in the passable world model. In some implementations, the passable world component can further process the one or more 3-D bounding boxes to generate a new or updated passable world model.

[0171] 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.

[0172] 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, and more generally in other XR and VR environments.

[0173] 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.

[0174] This specification uses the term "configured" in connection with systems and computer program components. In the context of a system of one or more computers, being configured to perform a particular operation or action means that the system has installed on it software, firmware, hardware, or a combination thereof that, when operated, causes the system to perform the operation or action. In the context of one or more computer programs, being configured to perform a particular operation or action means that one or more programs contain instructions that, when executed by a data processing device, cause the device to perform the operation or action.

[0175] Embodiments of the subject matter and functional operations described herein can be implemented in digital electronic circuitry, in tangibly embodied computer software or firmware, in computer hardware, including structures disclosed herein and structural equivalents thereof, or in a combination of one or more of them. Embodiments of the subject matter described herein can be implemented as one or more computer programs, i.e., one or more modules of computer program instructions encoded on a tangible, non-transitory storage medium, for execution by or to control the operation of a data processing apparatus. The computer storage medium can be a machine-readable storage device, a machine-readable storage substrate, a random or serial access memory device, or a combination of one or more of them. Alternatively, or in addition, the program instructions can be encoded on an artificially generated propagated signal, e.g., a machine-generated electrical, optical, or electromagnetic signal, that is generated to encode information for transmission to a receiver apparatus suitable for execution by a data processing apparatus.

[0176] The term "data processing apparatus" refers to data processing hardware and encompasses all kinds of apparatus, devices, and machines for processing data, including, by way of example, a programmable processor, computer, or multiple processors or computers. An apparatus may also, or in addition, include special purpose logic circuitry, such as an FPGA (field programmable gate array) or an ASIC (application specific integrated circuit). An apparatus may optionally include, in addition to hardware, code that creates an execution environment for a computer program, such as code that constitutes a processor firmware, a protocol stack, a database management system, an operating system, or a combination of one or more of these.

[0177] A computer program, which may also be referred to or described as a program, software, software application, app, module, software module, script, or code, may be written in any form of programming language, including compiled or interpreted languages ​​or declarative or procedural languages, and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment. A program may correspond to a file in a file system, but need not. A program may be stored in a markup language document, in a single file dedicated to the program, or in multiple coordinated files, e.g., in a file that stores one or more modules, subprograms, or portions of code, stored in a file, or in a portion of a file that holds other programs or data, e.g., one or more scripts. A computer program may be deployed to be executed on one computer, or on multiple computers located in one facility or distributed across multiple facilities and interconnected by a data communications network.

[0178] As used herein, the term "database" is used broadly to refer to any collection of data. That is, the data need not be structured in any particular way, or even at all, and can be stored on a storage device in one or more locations. Thus, for example, an index database can include multiple collections of data, each of which may be organized and accessed differently.

[0179] Similarly, the term "engine" is used broadly herein to refer to a software-based system, subsystem, or process that is programmed to perform one or more specific functions. Generally, an engine will be implemented as one or more software modules or components installed on one or more computers in one or more locations. In some cases, one or more computers are dedicated to a particular engine, and in other cases, multiple engines may be installed and run on the same computer or on multiple computers.

[0180] The processes and logic flows described herein may be implemented by one or more programmable computers executing one or more computer programs to perform functions by operating on input data and generating output. The processes and logic flows may also be implemented by special purpose logic circuitry, such as FPGAs or ASICs, or by a combination of special purpose logic circuitry and one or more programmed computers.

[0181] A computer suitable for executing a computer program can be based on a general or special purpose microprocessor or both or any other type of central processing unit. In general, the central processing unit will receive instructions and data from a read-only memory or a random access memory or both. The essential elements of a computer are a central processing unit for implementing or executing instructions and one or more memory devices for storing instructions and data. The central processing unit and memory can be supplemented by or incorporated in special purpose logic circuitry. In general, the computer will also include or be operatively coupled to receive data from or transfer data to, or both, one or more mass storage devices for storing data, such as magnetic, magneto-optical, or optical disks. However, a computer need not have such devices. Furthermore, a computer can be embedded in another device, such as a mobile phone, a personal digital assistant (PDA), a mobile audio or video player, a game console, a global positioning system (GPS) receiver, or a portable storage device, such as a universal serial bus (USB) flash drive, to name only a few.

[0182] Computer readable media suitable for storing computer program instructions and data include all forms of non-volatile memory, media, and memory devices, including, by way of example only, semiconductor memory devices, such as EPROM, EEPROM, and flash memory devices, magnetic disks, such as internal hard disks or removable disks, magneto-optical disks, and CD ROM and DVD-ROM disks.

[0183] To provide for interaction with a user, embodiments of the subject matter described herein can be implemented on a computer having a display device, e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor, for displaying information to the user, and a keyboard and pointing device, e.g., a mouse or trackball, by which the user may provide information to the computer. Other types of devices can be used to provide interaction with the user as well. For example, feedback provided to the user can be any form of sensory feedback, e.g., visual feedback, auditory feedback, or tactile feedback, and input from the user can be received in any form, including acoustic, speech, or tactile input. In addition, the computer can interact with the user by sending documents to and receiving documents from a device used by the user, e.g., by sending a web page to a web browser on the user's device in response to a request received from the web browser. The computer can also interact with the user by sending text messages or other forms of messages to a personal device, e.g., a smartphone running a messaging application, and receiving responsive messages from the user in return.

[0184] A data processing device for implementing machine learning models may also include special purpose hardware accelerator units for handling common and computationally intensive parts of machine learning training or production, i.e. estimation workloads.

[0185] The machine learning model can be implemented and deployed using a machine learning framework, for example, the TensorFlow framework, the Microsoft Cognitive Toolkit framework, the Apache Singa framework, or the Apache MXNet framework.

[0186] An embodiment of the subject matter described herein can be implemented within a computing system that includes a back-end component, e.g., as a data server, or includes a middleware component, e.g., an application server, or includes a front-end component, e.g., a client computer having a graphical user interface, web browser, or app through which a user may interact with an implementation of the subject matter described herein, or any combination of one or more such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication, e.g., a communication network. Examples of communication networks include local area networks (LANs) and wide area networks (WANs), e.g., the Internet.

[0187] A computing system may include clients and servers. Clients and servers are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on respective computers and having a client-server relationship to each other. In some embodiments, a server transmits data, e.g., HTML pages, to a user device, e.g., for purposes of displaying the data, and receives user input from a user interacting with the device, acting as a client. Data generated at the user device, e.g., results of user interaction, can be received from the device at the server.

[0188] Although this specification contains many specific implementation details, these should not be interpreted as limitations on the scope of any invention or the scope of what may be claimed, but rather as descriptions of features that may be specific to certain embodiments of a particular invention. Certain features described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination. Furthermore, although features may be described above as acting in a combination and may even be initially claimed as such, one or more features from the claimed combination may in some cases be excluded from the combination, and the claimed combination may be subject to subcombinations or variations of the subcombination.

[0189] Similarly, although operations are depicted in the figures and recited in the claims in a particular order, this should not be understood as requiring such operations to be performed in the particular order or sequential order shown, or that all of the illustrated operations be performed to achieve a desired result. In some situations, multitasking and parallel processing may be advantageous. Furthermore, the separation of various system modules and components in the embodiments described above should not be understood as requiring such separation in all embodiments, and it should be understood that the program components and systems described may generally be integrated together in a single software product or packaged into multiple software products.

[0190] Certain embodiments of the present subject matter have been described. Other embodiments are within the scope of the following claims. For example, the actions recited in the claims can be performed in a different order and still achieve desirable results. As an example, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some cases, multitasking and parallel processing may be advantageous.

Claims

1. A computer-implemented method, comprising: maintaining object data defining objects which have been recognised within a scene within the environment; receiving a stream of input images of the scene; for each of a plurality of input images in the stream of input images providing the input image as an input to an object recognition system; receiving, as output from the object recognition system, a recognition output identifying a distinct bounding box in the input image for each of one or more objects that have been recognized in the input image; providing data identifying the bounding boxes as input to a three-dimensional (3-D) bounding box generation system that determines a respective 3-D bounding box for each of one or more of the objects recognized in the input image from the object data and the bounding boxes; The 3-D bounding box generation system includes: generating a current 3-D object mask of a first object recognized in the input image; performing a fusion between the current 3-D object mask of the first object and individual object data defining a previously recognized object associated with the first object; and performing operations including: receiving, as output from the 3-D bounding box generation system, data defining one or more 3-D bounding boxes for one or more of the objects recognized in the input image based on the blending performed by the 3-D bounding box generation system; and providing as output data defining said one or more 3-D bounding boxes; A method comprising:

2. The 3-D bounding box generation system comprises: a multi-view fusion system that generates an initial set of 3-D bounding boxes; a bounding box refinement system for generating the one or more 3-D bounding boxes by refining the initial set of 3-D bounding boxes; The method of claim 1 , comprising:

3. The method described in claim 2, wherein the object recognition system, the multi-view fusion system, and the bounding box refinement system operate in a stateless manner and independently of each other.

4. The method of claim 2, wherein the maintained object data comprises an ellipsoid generated from a plurality of two-dimensional (2-D) bounding boxes for each object recognized within the scene.

5. The multi-view fusion system comprises at least For each 2-D bounding box identified in the input image, determining whether the 2-D bounding box identified in the input image is associated with one or more 2-D bounding boxes of objects recognized in the maintained object data; updating the maintained object data by calculating an updated ellipsoid for the object using the 2-D bounding box identified in the input image in response to determining that the 2-D bounding box identified in the input image is associated with one or more 2-D bounding boxes of a recognized object; in response to determining that the 2-D bounding box identified in the input image is not associated with any recognized object, creating a new object by generating an ellipsoid from at least the 2-D bounding box identified in the input image; generating an initial set of 3-D bounding boxes using the ellipsoid of the object recognized in the input image; The method of claim 4, further comprising generating the initial set of 3-D bounding boxes by performing:

6. The method of claim 1, wherein the object recognition system comprises a trained deep neural network (DNN) model that takes the input image and generates a separate two-dimensional (2-D) object bounding box for each of the one or more objects recognized in the input image.

7. The method of claim 1, wherein the stream of input images of the scene are captured from two or more user devices.

8. Performing a fusion between the current 3-D object mask of the first object and individual object data defining the previously recognized object associated with the first object, comprising: determining that a previous object mask exists for the first object based on a relative distance between the previous object mask and the current 3-D object mask; generating an updated 3-D mask for the first object; The computer-implemented method of claim 1 , comprising:

9. The computer-implemented method of claim 8, wherein the 3-D bounding box generation system generates a first 3-D bounding box based on the updated 3-D mask.

10. The computer-implemented method of claim 8, wherein generating the updated 3-D mask for the first object includes computing a union of the previous object mask and the current 3-D object mask.

11. A system comprising one or more computers and one or more storage devices, the one or more storage devices storing instructions that, when executed by the one or more computers, maintaining object data defining objects which have been recognised within a scene within the environment; receiving a stream of input images of the scene; for each of a plurality of input images in the stream of input images providing the input image as an input to an object recognition system; receiving, as output from the object recognition system, a recognition output identifying a distinct bounding box in the input image for each of one or more objects that have been recognized in the input image; providing data identifying the bounding boxes as input to a three-dimensional (3-D) bounding box generation system that determines, from the object data and the bounding boxes, a respective three-dimensional (3-D) bounding box for each of one or more of the objects recognized in the input image, the 3-D bounding box generation system comprising: generating a current 3-D object mask of a first object recognized in the input image; performing a fusion between the current 3-D object mask of the first object and individual object data defining a previously recognized object associated with the first object; and receiving, as output from the 3-D bounding box generation system, data defining one or more 3-D bounding boxes for one or more of the objects recognized in the input image based on the blending performed by the 3-D bounding box generation system; and providing as output data defining said one or more 3-D bounding boxes; The system causes the one or more computers to perform operations including:

12. The 3-D bounding box generation system, comprising: a multi-view fusion system that generates an initial set of 3-D bounding boxes; a bounding box refinement system for generating the one or more 3-D bounding boxes by refining the initial set of 3-D bounding boxes; The system of claim 11 , comprising:

13. The system of claim 12, wherein the object recognition system, the multi-view fusion system, and the bounding box refinement system operate in a stateless manner and independently of each other.

14. The system of claim 12, wherein the maintained object data comprises an ellipsoid generated from a plurality of two-dimensional (2-D) bounding boxes for each object recognized within the scene.

15. The multi-view fusion system comprises at least For each 2-D bounding box identified in the input image, determining whether the 2-D bounding box identified in the input image is associated with one or more 2-D bounding boxes of objects recognized in the maintained object data; updating the maintained object data by calculating an updated ellipsoid for the object using the 2-D bounding box identified in the input image in response to determining that the 2-D bounding box identified in the input image is associated with one or more 2-D bounding boxes of a recognized object; in response to determining that the 2-D bounding box identified in the input image is not associated with any recognized object, creating a new object by generating an ellipsoid from at least the 2-D bounding box identified in the input image; generating an initial set of 3-D bounding boxes using the ellipsoid of the object recognized in the input image; The system of claim 14, further comprising: generating the initial set of 3-D bounding boxes by performing:

16. The system of claim 11, wherein the object recognition system comprises a trained deep neural network (DNN) model that takes the input image and generates a separate two-dimensional (2-D) object bounding box for each of the one or more objects recognized in the input image.

17. The system of claim 11, wherein the stream of input images of the scene are captured from two or more user devices.

18. The method of claim 17, further comprising: performing a fusion between the current 3-D object mask of the first object and individual object data defining the previously recognized object associated with the first object, the fusion comprising: determining that a previous object mask exists for the first object based on a relative distance between the previous object mask and the current 3-D object mask; generating an updated 3-D mask for the first object; The system of claim 11 , comprising:

19. The system of claim 18, wherein generating the updated 3-D mask for the first object includes calculating a union of the previous object mask and the current 3-D object mask.

20. The system of claim 18, wherein the 3-D bounding box generation system generates a first 3-D bounding box based on the updated 3-D mask.

21. A computer program product encoded on one or more non-transitory computer-readable storage media, the computer program product comprising instructions that, when executed by one or more computers, maintaining object data defining objects which have been recognised within a scene within the environment; receiving a stream of input images of the scene; for each of a plurality of input images in the stream of input images providing the input image as an input to an object recognition system; receiving, as output from the object recognition system, a recognition output identifying a distinct bounding box in the input image for each of one or more objects that have been recognized in the input image; providing data identifying the bounding boxes as input to a three-dimensional (3-D) bounding box generation system that determines a respective 3-D bounding box for each of one or more of the objects recognized in the input image from the object data and the bounding boxes; The 3-D bounding box generation system includes: generating a current 3-D object mask of a first object recognized in the input image; performing a fusion between the current 3-D object mask of the first object and individual object data defining a previously recognized object associated with the first object; and receiving, as output from the 3-D bounding box generation system, data defining one or more 3-D bounding boxes for one or more of the objects recognized in the input image based on the blending performed by the 3-D bounding box generation system; and providing as output data defining said one or more 3-D bounding boxes; a computer program product for causing the one or more computers to perform operations including:

22. The 3-D bounding box generation system, comprising: a multi-view fusion system that generates an initial set of 3-D bounding boxes; a bounding box refinement system for generating the one or more 3-D bounding boxes by refining the initial set of 3-D bounding boxes; 22. The computer program product of claim 21 , comprising:

23. The computer program product of claim 22, wherein the object recognition system, the multi-view fusion system, and the bounding box refinement system operate in a stateless manner and independently of each other.

24. The computer program product of claim 22, wherein the maintained object data comprises an ellipsoid generated from a plurality of two-dimensional (2-D) bounding boxes for each object recognized within the scene.

25. The multi-view fusion system comprises at least For each 2-D bounding box identified in the input image, determining whether the 2-D bounding box identified in the input image is associated with one or more 2-D bounding boxes of objects recognized in the maintained object data; updating the maintained object data by calculating an updated ellipsoid for the object using the 2-D bounding box identified in the input image in response to determining that the 2-D bounding box identified in the input image is associated with one or more 2-D bounding boxes of a recognized object; in response to determining that the 2-D bounding box identified in the input image is not associated with any recognized object, creating a new object by generating an ellipsoid from at least the 2-D bounding box identified in the input image; generating an initial set of 3-D bounding boxes using the ellipsoid of the object recognized in the input image; 25. The computer program product of claim 24, further comprising: generating the initial set of 3-D bounding boxes by performing:

26. The computer program product of claim 21, wherein the object recognition system comprises a trained deep neural network (DNN) model that takes the input image and generates a separate two-dimensional (2-D) object bounding box for each of the one or more objects recognized in the input image.

27. Performing a fusion between the current 3-D object mask of the first object and individual object data defining the previously recognized object associated with the first object, comprising: determining that a previous object mask exists for the first object based on a relative distance between the previous object mask and the current 3-D object mask; generating an updated 3-D mask for the first object; 22. The computer program product of claim 21, comprising:

28. The computer program product of claim 27, wherein generating the updated 3-D mask for the first object includes calculating a union of the previous object mask and the current 3-D object mask.

29. The computer program product of claim 27, wherein the 3-D bounding box generation system generates a first 3-D bounding box based on the updated 3-D mask.

Citation Information

Patent Citations

  • Three-dimensional bounding box from two-dimensional image and point cloud data

    CN111108507A

  • 3D bounding boxes from 2D images and point cloud data

    JP2020534617A

  • Recognition-based object segmentation of a 3-dimensional image

    US20170228940A1

  • Three-Dimensional Bounding Box From Two-Dimensional Image and Point Cloud Data

    US20190096086A1