Systems and methods for object detection including pose and size estimation

By training with multi-head machine learning models and synthetic data, the computational resource limitations of 3D object detection and pose estimation on mobile devices are overcome, enabling real-time and efficient 3D object detection on smartphones, applicable to autonomous vehicles and augmented reality applications.

CN115210763BActive Publication Date: 2026-11-24GOOGLE LLC
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202080097080.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-02-18
Publication Date
2026-11-24
Estimated Expiration
2040-02-18

AI Technical Summary

Technical Problem

Real-time 3D object detection and pose estimation on mobile devices presents challenges, especially due to the lack of training data and computational resource constraints, making it difficult to effectively utilize limited computing resources for rotation and deep learning.

Method used

A multi-head machine learning model, including centroid heatmaps, distance fields, and segmentation masking points, is used for training on synthetic data generated by an augmented reality engine. Lightweight network architectures such as 9DD-Net are used for object detection and pose estimation. The model is trained on synthetic datasets to generate 3D bounding boxes.

Benefits of technology

It enables real-time and efficient 3D object detection and pose estimation on mobile devices, improving the accuracy and efficiency of detection. It can infer the position and size of objects in almost real-time on smartphones and is suitable for autonomous vehicles and augmented reality applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115210763B_ABST
    Figure CN115210763B_ABST
Patent Text Reader

Abstract

This disclosure relates to systems and methods for performing object detection and pose estimation in 3D from 2D images. Object detection can be performed by a machine learning model configured to determine various object attributes. According to embodiments of this disclosure, these attributes can be used to estimate object pose and size.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure generally relates to computer vision. More specifically, this disclosure relates to computer-implemented systems and methods capable of providing more efficient models for performing object detection and pose estimation in three dimensions (3D). Background Technology

[0002] Object detection and pose estimation in 3D have numerous applications across computer vision, augmented reality (AR), autonomous driving, and robotics. The problem remains extremely challenging when the input is merely a single image and there is no prior knowledge of the object. Built-in device applications add further complexity, such as the expectation that the model should run in real-time with a finite size. Furthermore, unlike autonomous vehicles where the camera height is fixed and there are strong visual depth cues, typical built-in models for mobile devices such as smartphones must learn both rotation and depth. Summary of the Invention

[0003] This disclosure relates to systems and methods for performing object detection and pose estimation in 3D from 2D images. Object detection can be performed by a machine learning model configured to determine various object attributes. According to embodiments of this disclosure, these attributes can be used to estimate object pose and size.

[0004] One example aspect of this disclosure includes a method for determining the coordinates of bounding box vertices using a machine learning object detection model.

[0005] Another example aspect of this disclosure includes a method for training a machine learning object detection model using synthetic data. Synthetic data can be generated using an augmented reality engine or virtual models of various objects placed in a scene.

[0006] Another example aspect of this disclosure includes machine learning models with a multi-head architecture.

[0007] Other aspects of this disclosure relate to various systems, apparatuses, non-transitory computer-readable media, user interfaces, and electronic devices that implement the techniques disclosed herein or can be derived from the practice of this disclosure.

[0008] These and other features, aspects, and advantages of the various embodiments of this disclosure will be better understood by referring to the following description and the appended claims. The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate exemplary embodiments of the disclosure and, together with the description, serve to explain the relevant principles. Attached Figure Description

[0009] A detailed discussion of embodiments for those skilled in the art is set forth in the description with reference to the accompanying drawings, wherein:

[0010] Figure 1A An example computing system comprising one or more machine learning models is shown according to an example implementation of the present disclosure.

[0011] Figure 1B An example computing device including one or more machine learning models is shown according to an example implementation of the present disclosure.

[0012] Figure 1C The illustration shows another example computing device including one or more machine learning models according to an example embodiment of the present disclosure.

[0013] Figure 2A An example model architecture of a display encoder-decoder network to generate outputs (or more) according to an example implementation of this disclosure is shown.

[0014] Figure 2B Another example model architecture is shown according to an example implementation of this disclosure.

[0015] Figure 3A and 3B Example outputs derived from exemplary embodiments according to this disclosure are shown. These figures include multiple images depicting 3D bounding boxes around various objects. Figure 3A In the middle, the additional model output is displayed in the upper right corner of the middle image row. The additional model output shows the segmentation mask.

[0016] Figure 4 A flowchart illustrating an example method for performing object detection according to an example embodiment of the present invention is provided.

[0017] The repeated reference numerals in the various figures are intended to identify the same features in the different embodiments. Detailed Implementation

[0018] Overview

[0019] Generally, this disclosure relates to systems and methods for performing object detection, and can provide advantages for performing object detection on local devices such as smartphones. Object detection can include various object attributes, collectively referred to as 9DoF or 9 degrees of freedom. These attributes can include x, y, z coordinate position, yaw, pitch, roll, and rotational azimuth (collectively 6DoF pose), and length, width, height, and object size (collectively 3DoF physical size). Combinations of these attributes—including all attributes—can be extracted using example implementations according to this disclosure. Furthermore, these attributes can be determined using a two-dimensional (2D) photographic image of relative scale. The relative scale can be transformed into a constant value (e.g., meters or inches) by mapping the relative scale to a physical value that can be determined using camera intrinsic and / or augmented reality (AR) data associated with the 2D photographic image.

[0020] According to exemplary embodiments of this disclosure, a multi-task (e.g., multi-head) machine learning model can be used to determine at least two features of 2D image data that can be used for object detection. As an example, the machine learning model may include a first head configured to generate a centroid heatmap comprising predicted heat values ​​for each pixel based on whether the pixel depicts the centroid of an object. For example, the centroid heatmap (or multiple heatmaps) may be heatmaps with a binary kernel that dynamically adjusts to the object size. As another example, the machine learning model may include a second head configured to generate multiple distance fields that define a distance value for each pixel indicating the distance to one of a plurality of vertices associated with the bounding box of the object. Since multi-head models can learn jointly, some exemplary embodiments may include a third head configured to generate a segmentation mask; however, according to exemplary embodiments, the machine learning model with the third head is not required to perform object detection. Similarly, different combinations of two or more heads described above (or used for other tasks) may also be used.

[0021] To extract object attributes, example implementations may include methods for determining one or more labels for an object, such as labels for constructing a 3D bounding box for the object. The 3D bounding box can be defined by vertices that together define the object's volume and surface boundaries. As an example, the bounding box can be defined as a rectangular prism with six faces (e.g., front, back, left, right, top, and bottom) and eight vertices (e.g., four on the top face and four on the bottom face). Using example methods according to this disclosure, relative coordinate positions in two dimensions (e.g., x and y coordinates) can be determined for each of the eight vertices. For some example methods, additional coordinate positions (e.g., z coordinates) can be determined using AR data and / or camera eigenvalues ​​to define a 3D bounding box that can represent the object's size and position in the image. Furthermore, object orientation and / or translation can be determined based on the vertex positions and the size of the bounding box. Thus, in some example implementations, to convert from 2D to 3D, the EPnP algorithm can be used with orthogonal bases to restore the 3D box to scale, and a plane from the AR session (e.g., a table or floor) can be used to determine the metric scale.

[0022] As an example for illustration, consider browsing a furniture store to decorate a new house. Instead of arriving at the store with a list of measurements, one can obtain an image of a piece of furniture and determine the 3D coordinates of the bounding box associated with that piece of furniture using a mobile device according to an example implementation of this disclosure. The data can be stored and subsequently used to determine whether the piece of furniture fits the space. As another example, consider processing a video stream (e.g., video from a drone or other autonomous vehicle or robot) on a mobile device. The video stream consists of 2D images, including objects for detection (such as for collision avoidance or navigation). Using an example implementation according to this disclosure, a drone can infer the position and size of objects substantially in real time to improve collision avoidance or direct navigation and estimate distances.

[0023] Therefore, an example aspect of the present invention provides a novel multi-task learning network with multiple heads, such as heatmaps with dynamic binary kernels, distance fields of bounding box vertices, and / or semantic segmentation of objects. The model can detect objects and estimate their pose and size in a single shot. Combining these with geometry-based lifting, 3D bounding boxes of scaled objects can be derived. Scale can be further determined using planes detected in the scene. The proposed model is ultra-lightweight and can run in real time on smartphones.

[0024] Another example aspect of this disclosure addresses the problem of a lack of training data for 9-DOF detection tasks. Specifically, some example implementations can be trained using synthetic training datasets, which include virtual models of objects placed in a scene and generated using augmented reality engines (e.g., ARCore and ARKit). In this way, synthetic datasets can be created to include labels defining the precise orientation, position, and boundaries of objects, as these attributes can be associated with the virtual model when inserted into the scene. While the data is synthetic, it can be generated based on physical features—such as objects in contact with surfaces detected in the scene, or objects occluded by physical objects in front of them in the camera view—to mimic real-world data. Synthetic data can be generated quickly, and labels can be automatically generated, which provides a major benefit when training object detection models, as the dataset can include labels using information that is typically difficult to generate from real-world data, such as segmentation masks. Furthermore, the multi-head nature of the implementations according to this disclosure allows the object detection model to learn from segmentation masks or other features included in the synthetic data to improve predictions in other heads.

[0025] Aspects of the synthetic dataset may include one or more augmented images that can be generated using an augmented reality engine. Augmented images can be generated by obtaining a 3D model of an object (e.g., a virtual object) and data containing one or more image frames depicting the scene (e.g., using a device containing an augmented reality engine, using multiple devices, and / or accessing stored AR data). The virtual object can then be positioned in the scene at a specified location and orientation (e.g., using an AR engine). Furthermore, the augmented images may be associated with one or more training labels, such as identifying the virtual object, indicating the virtual object's location within the scene (e.g., labels defining the object's centroid and / or the vertices of the object's bounding box in x, y coordinates), indicating the virtual object's orientation within the scene (e.g., labels defining rotations along 2-3 coordinate axes), and / or indicating segmentation masks for the virtual object and the scene (e.g., defining pixels as labels associated with the virtual object or the scene).

[0026] Embodiments of this disclosure include computational systems and computer-readable instructions for 3D object detection and for training said models for 3D object detection. Example aspects of these methods and systems may include operations such as obtaining a 2D image comprising an image of an object for detection. An aspect of the 2D image may include a dimension defined by a plurality of pixels. Each pixel may define two coordinates (e.g., x-coordinate and y-coordinate) and a pixel value (e.g., R, G, B color values) of the 2D image. A machine learning object detection model, trained according to example embodiments of this disclosure, may be provided to the image data. The machine learning object detection model typically includes at least two heads: a first head configured to generate a centroid heatmap that provides a corresponding heat value for each of the plurality of pixels, the corresponding heat value describing the probability that the pixel represents the centroid of an object depicted by that pixel. Additionally, the model may include a second head configured to generate a plurality of distance fields, each distance field providing a corresponding distance value for each of the plurality of pixels, the corresponding distance value indicating the distance from each pixel to one of a plurality of vertices associated with the bounding box of the object. The outputs generated by the first and second heads may then be used, at least in part, to determine the 3D coordinates of the bounding box associated with the object depicted in the 2D image. Therefore, implementations may typically include providing image data to a machine learning object detection model configured to determine outputs that can be used to map a two-dimensional coordinate system to a higher dimension.

[0027] More specifically, various systems and methods can be used to obtain two-dimensional images of objects. For example, a camera can be accessed on a local device (e.g., a smartphone) to take photos or videos of the object. Alternatively or additionally, the system can execute instructions to access local or remote storage (e.g., stored in the cloud) containing data containing the two-dimensional image. Therefore, obtaining a two-dimensional image can typically include accessing data associated with the two-dimensional image or acquiring data using a device communicating with the system.

[0028] Furthermore, in some implementations, the aspect of providing images to a machine learning object detection model can be based on how the two-dimensional image was obtained. For example, in some implementations, object detection can be performed substantially in real time. For these scenarios, the API associated with the object detection model or other devices and / or sensors communicating with the computing system may include instructions for accessing the devices and / or sensors to send image data directly to the object detection model. In this way, the computing system can directly provide sensor information (e.g., video streams) to the machine learning object detection model without requiring any external input. Alternatively, some implementations may include an interface configured to receive user interaction, such as defining a file path or selecting an image file to determine the image provided to the object detection model.

[0029] Image processing performed by a machine learning object detection model can include an architecture defining multiple heads. Typically, a machine learning object detection model according to this disclosure can include at least two heads. As an example, a first head can be configured to generate a centroid heatmap, which can provide a corresponding heat value for each of a plurality of pixels. More specifically, the corresponding heat value for each pixel describes the probability that the centroid of an object is depicted by that pixel. As another example, a second head can be configured to generate multiple distance fields. Each distance field can provide a corresponding distance value for each of the plurality of pixels. More specifically, the corresponding distance value for each pixel can indicate the distance from the pixel to one of a plurality of vertices associated with the bounding box of the object.

[0030] In some implementations, the machine learning object detection model may include a third head configured to generate a segmentation mask for an image. Aspects of the segmentation mask may include data providing a binary response (e.g., a label) for each of a plurality of pixels, the binary response indicating that each pixel is associated with either the background or an object. In the case of multiple objects, the segmentation mask may be configured to determine a multi-label response, associating each object with a separate value (e.g., 1, 2, 3, 4, etc.) and associating the background with a unique label (e.g., 0). In some implementations, the third head may be configured to generate a segmentation mask that groups similar objects with the same label. For example, an image may include multiple instances of objects such as shoes and / or chairs. When determining the segmentation mask, some systems may be configured to determine a different label for each object depicted in the image (e.g., each instance of a shoe would be assigned a different label). Alternatively, the segmentation may group or may be configured to group objects with similar characteristics (e.g., shoes) that have the same label. In this way, the segmentation mask can provide a mechanism for distinguishing objects with close proximity and can generate improved accuracy for certain object detection tasks.

[0031] Another example aspect of machine learning object detection models may include an encoder-decoder backbone configured to map 2D images to different dimensional spaces before performing one or more learning tasks, and to map the results of one or more learning tasks to another dimensional space to extract the output of multiple heads. The different dimensional spaces can be lower-dimensional spaces, and the image data can be converted to different formats, which can improve the efficiency of some implementations, such as by reducing memory consumption or utilizing data formats with reduced computational requirements. In this way, some implementations can exhibit essentially real-time performance, for example, with a latency of less than 1 second between image acquisition and model output generation (e.g., less than about 500ms, 400ms, 300ms, 200ms, 100ms, 50ms, or 5ms).

[0032] In some implementations, the machine learning object detection model can further communicate with other machine learning models or data operations used to map the model output to determine values ​​used to define the 3D bounding box. For example, aspects of the model output (such as centroid heatmaps and distance fields) can be used to identify vertex coordinates in 2D. As an example, a vertex recognition model can be used to predict the positions of the vertices of a 3D bounding box. The 3D bounding box can have any number of vertices, but for illustration, assuming the 3D bounding box represents a rectangular prism, the vertex recognition model predicts the positions of eight vertices. Based at least in part on the centroid heatmap and distance field, the vertex recognition model can generate 2D coordinates (e.g., x, y coordinates) for each vertex of the bounding box, such as eight pairs of coordinates for a rectangular prism.

[0033] Additionally, a 3D mapping model or function can be coupled with a vertex recognition model (e.g., using sequential processing or trained as an additional output or head) to determine the 3D coordinates of each vertex of the bounding box. Since 2D images lack depth information, the system is underspecified to determine the third spatial dimension. To account for this, the 3D mapping model can also receive camera eigenvalues ​​such as focal length, principal point, image sensor format, scale factor, etc., to estimate properties such as object size and pose. These properties can be derived from the output of the 3D mapping model. For example, the output of the 3D mapping model can include additional dimensions for assigning 3D coordinates (e.g., x, y, z coordinates) to each vertex.

[0034] In some implementations, another model or function can be used to extrapolate physical scale, at least in part, based on 3D coordinates. Scale information can be obtained from various sources, including camera data. As an example, scale information can be included in augmented reality data associated with an image or a scene depicted in an image. Augmented reality data can include a depth map, which can be generated from a point cloud mesh of the scene using various camera poses, scanning systems, or other processing using an augmented reality engine. Augmented reality data, such as detected surfaces and / or ground planes, can be obtained through a scale extrapolation model to estimate physical values ​​of the bounding boxes, such as vertex values ​​in metric units (e.g., meters), imperial units (e.g., feet), or SI units (e.g., centimeters).

[0035] Based on the object detection model architecture, the dataset for determining the 3D coordinates of bounding boxes may include: identifying the centroids of objects at least in part based on centroid heatmaps; applying a voting scheme to multiple distance fields to identify multiple 2D projections of the vertices of the bounding boxes in 2D images; and reconstructing the 3D coordinates for defining the bounding boxes from the multiple 2D projections of the vertices.

[0036] An example of using this method to determine the centroid of an object could include identifying the maximum heat and / or another statistical value that indicates a high probability of a pixel location being associated with the centroid of the object. Since an image can include multiple objects, multiple centroids can be identified based on heat values ​​(e.g., gradients based on heat values ​​or other distributions closely associated with each individual object).

[0037] Furthermore, determining aspects of the dataset that includes 3D coordinates can include a combination of selected features from a centroid heatmap and / or multiple distance fields. For example, the heat from each pixel of the centroid heatmap can be used to weight the voting scheme for determining the vertices of the bounding box. Additionally, for images comprising multiple objects, the voting scheme can be configured to ignore or reduce the weight of votes outside the neighborhood (e.g., within 10 pixels of the centroid).

[0038] Generally, the 2D projection of the vertices of a bounding box provides two-dimensional coordinates (e.g., x, y coordinates) of the vertices of a 3D bounding box. Third-dimensional coordinates (e.g., z coordinates) can be reconstructed from the vertices of a 2D bounding box using example models such as the EnP algorithm (also known as the perspective N-point algorithm).

[0039] Additionally, one aspect of certain implementations may include identifying object categories. Object categories can be used to define which face (e.g., which vertex coordinates) of a bounding box is on top, which face is in front, or other combinations specifying the relative positions of two or more faces of the bounding box. Furthermore, in some cases, the same canonical coordinates can be assigned to each instance of an object within that category.

[0040] Example model architecture

[0041] As an example for illustration, a machine learning object detection model—also known as 9DD-Net—can be a fully convolutional network with multi-task learning. The input size can be configured to work with various image types. As an example, a two-dimensional size and color vector, such as 640×480×3, can be used. The input image can be passed through 2D convolutions with a specific stride (e.g., stride 4) and then to encoder-decoder blocks, each of which can include skip connections. Figure 2A An example illustrating this machine learning object detection model. For example... Figure 2AAs shown, each encoder-decoder block in the diagram can represent several residual blocks. These residual blocks are based on depth-wise separable convolutions, followed by 1×1 convolutional layers, which can be used in some implementations to improve real-time performance on a device. Compared to other networks, the example model can be implemented as a single stack, but can be deepened by the number of residual blocks. The network can use one or a mixture of activation layers from a single activation layer. For example, parameter-corrected linear units (PReLUs) can be used in some or all activation layers.

[0042] 9DD-Net can be configured to perform multiple tasks in a single excitation. For example, as illustrated in Figure 2, 9DD-Net can include three heads configured to generate: a) a centroid heatmap, b) a distance field, and c) semantic segmentation. The shape of the centroid heatmap can vary, but it can be defined based on the image size (e.g., a quarter of the image size (160×120)), where each pixel represents the probability of the object's centroid. The distance field can be a (160×120×16) tensor, where each tensor is the x or y distance of the eight vertices of the box (in two dimensions) relative to the pixel location. Therefore, the tensor size can be determined at least in part based on the number of vertices (e.g., 8 for a rectangular prism) and the number of dimensions (e.g., 2) to generate tensor properties (e.g., 16). Multiple objects can be placed in the same channel, thanks to the output being independent of the number of objects. Figure 2A In the example shown, the image contains two shoes. Therefore, the heatmap has two centroids, and each distance field has two sources. Finally, the network can also output a segmentation mask for all objects. Although not needed in additional processing, the segmentation head helps the network detect the complete shape of the objects, thus improving the estimation of object pose and size.

[0043] A heatmap configured to predict the heat of an object can be used to detect the centroid of an object in an image plane. For example, for a pixel p in an image, its heat can be calculated as a bivariate normal distribution, as shown in Equation 1.

[0044]

[0045] in, It is an image, where p represents each 2D pixel in the image. It is an image The collection of all visible object instances, where i is the index of the object, and c i σ is the 2D projection of the centroid of object i, and σ i This refers to the kernel size. For multiple objects in an image, the maximum heat can be set to a value at each pixel.

[0046] Unlike other models such as CenterNet which uses a modified focus loss, a mean squared error (MSE) loss can be implemented for the heatmap header, making the mathematical solution a regression problem. Additionally, the heat kernel can be dynamic with respect to object size, so positive and negative samples (pixels with significant heat and near-zero heat) are typically balanced. For multiple categories, CenterNet uses multiple channels in the heatmap. While this could also be applied to 9DD-Net, 9DD-Net can be configured to use a single channel for a small number of categories (e.g., three). It's worth noting that larger models and outputs would consume more built-in resources and run slower on mobile devices compared to 9DD-Net. Therefore, the benefit of including some implementations of the example 9DD-Net is the ability to run essentially in real-time on devices.

[0047] Instead of using heatmaps to predict all features, 9DD-Net can be configured to determine the distance field to each vertex. Specifically, for box vertex X... i Let x i This represents its projection onto the image plane. Example 9: DD-Net can maintain accuracy using a fraction used for projection. An example method for calculating the displacement vector of its range field is shown in Equation 2.

[0048]

[0049] The range fields of multiple objects in an image can be merged based on their heat. For example, two losses can be calculated for the range field head. One is the masking MSE (M-MSE) loss between the prediction and the ground truth. The mask is calculated based on the heatmap, so that only the loss at pixels with significant (e.g., >0.2) heat needs to be calculated. The other is the smoothness loss. Since the range field has a constant gradient, the loss can be defined as the M-MSE between the gradient of the predicted range field and a constant δ. Thus, an example method for defining the range field loss is shown in Equation 3.

[0050]

[0051] Where δ = 1, in this case, w is the weight of the smoothness loss. It is a gradient operator, and It is the gradient image of the range field, which can be determined in Equation 4.

[0052]

[0053] Segmentation can aid pose estimation by learning object boundaries. Therefore, in Example 9DD-Net, a segmentation head is included to allow the network to learn multiple tasks simultaneously. Standard IoU loss can be used for this head, and it can be optional for training data without segmentation labels. Loss computation also allows training on data with mixed conditions; that is, within a batch, the loss is computed only for images with segmentation labels.

[0054] Using the network output, the 2D projection of the underlying 3D bounding box can be determined. Using the distance field, all pixels with significant responses in the heatmap can help compute vertex coordinates. For example, a voting strategy can be used to obtain the final estimate. For pixel p, its vote v for the vertex can be computed as shown in Equation 5. i .

[0055] vote i (p)=p+d i (p) Equation (5)

[0056] Weighted by the heat of that pixel.

[0057] Peaks (e.g., maximum values ​​or other extreme heat values) can be located in the heatmap, and voting occurs near the peak location. The size of the vicinity can be calculated by fitting a Gaussian kernel to the heatmap. Here, for simplicity, we set it to a constant (20 pixels). Considering that multiple objects often exist in the image, we ignore outlier votes that are more than 10 pixels away from the peak vote. The estimate of the 2D projection of vertex i is calculated as a weighted average of the valid votes, as shown in Equation 6.

[0058]

[0059] Given the vertices of a projected 2D bounding box and camera intrinsics (e.g., from AR session data), a 3D bounding box can be reconstructed proportionally using a function such as the EPnP algorithm. The EPnP algorithm employs n control points. The first control point can be the origin (at the object's coordinate system). Additionally, three more control points can be selected along the object's axis system. These control points can be used to form an orthogonal basis for the object. The eight vertices of the bounding box can be represented by these four control points.

[0060] Next, the EPnP solver provides 16 constraints from the detected 2D vertices (eight vertices of a rectangular prism, each with two independent coordinates) and four control points to construct a linear system. For the perspective camera, the linear system is determined and has a unique solution. Solving this linear system yields a solution that can generate bounding boxes with scale ambiguity. To ensure that the estimated control points form an orthogonal basis, some implementations of 9DD-Net can use singular value decomposition (SVD) to solve for the closest orthogonal matrix.

[0061] This solution can generate bounding boxes with scale ambiguity. The output can be applied to estimate the size and pose of an object scaled from the control points. The size can be extracted using the distances of the last three control points from the center of the box (the first control point). Given the vertex X and size... It can be solved by solving the equation To estimate the orientation R and translation of the object Where B is the unit box. Rotation R is scale-invariant. This result is sufficient for many applications such as determining the viewpoint. Composed of two polar angles: azimuth and pitch, the viewpoint is scale-invariant. Therefore, the viewpoint can be used as a metric to evaluate whether 9DoF detections have reached a certain scale.

[0062] Additional information is needed to resolve scale ambiguity. For example, object size, object depth, and multiple views have been used in the literature to address this ambiguity. Typically, the example method can be combined with any of these methods. Another approach developed for the 9DD-Net implementation uses detected planes or other information from AR session data to determine scaling information.

[0063] For example, given a normal n (e.g., as detected using AR session data) and a known point p on the plane, any vertex X on the plane... i All are subject to the constraints shown in Equation 7.

[0064] (X i -p)·n=0 Equation (7)

[0065] Therefore, the scale can be determined as shown in Equation 8.

[0066]

[0067] As an example, 9DD-Net can be configured to ensure that β is positive by selecting a 3D point X with a negative depth (z) value, always placing the object in front of the camera. Furthermore, assuming the object lies on a flat surface, the four bottom vertices of its 3D bounding box obey Equation 7. A normal to the plane can be selected. The four vertices of the minimum projection are determined, and their average scale is calculated using Equation 8 to determine the metric scale.

[0068] Example devices and systems

[0069] Figure 1AA block diagram depicts an example computing system 100 that can store or transmit information such as machine learning models 120 or 140 according to exemplary aspects of this disclosure. In one example implementation, system 100 may include a user computing device 102 and a server computing system 130 communicatively coupled via a network 180.

[0070] User computing device 102 can be any type of computing device, such as, for example, a personal computing device (e.g., a laptop or desktop computer), a mobile computing device (e.g., a smartphone or tablet computer), a game console or controller, a wearable computing device, an embedded computing device, or any other type of computing device.

[0071] User computing device 102 may include one or more processors 112 and memory 114. The one or more processors 112 may be any suitable processing device (e.g., processor core, microprocessor, ASIC, FPGA, controller, microcontroller, etc.) and may be a single processor or multiple processors operatively connected. Memory 114 may include one or more non-transitory computer-readable storage media, such as RAM, ROM, EEPROM, EPROM, flash memory devices, disks, etc., and combinations thereof. Memory 114 may store data 116 and instructions 118 executed by processor 112 to cause user computing device 102 to perform operations.

[0072] In some implementations, the user computing device 102 may store or include machine learning models (or more), such as object detection models having a model architecture according to an example implementation of this disclosure.

[0073] In some implementations, machine learning models (or multiple models) 120 may be received from server computing system 130 via network 180, stored in user computing device memory 114, and then used or otherwise implemented by one or more processors 112. In some implementations, user computing device 102 may implement multiple parallel instances of a single machine learning model (e.g., to perform parallel object detection, such as parallel generation of 3D bounding box coordinates for real-time image processing such as in a video stream, and / or to perform parallel object detection in a single image or different regions of a single image).

[0074] Additionally or alternatively, machine learning models (or more) 120 may be included in or otherwise stored and implemented by server computing system 130, which communicates with user computing device 102 according to a client-server relationship. For example, machine learning models (or more) 140 may be implemented by server computing system 130 as part of a web service. Thus, machine learning models (or more) 120 may be stored and implemented at user computing device 102, and / or machine learning models (or more) 140 may be stored and implemented at server computing system 130. Since in some embodiments, the machine learning model may include a first model, such as an object detection model including multiple heads, separate second models and / or computer algorithms may be configured to receive outputs (or more) from the first model and generate object detection features, such as vertices of a 3D bounding box in at least two dimensions. For example, a vertex recognition model or algorithm may receive information such as heatmaps and distance fields generated by the object detection model to generate 2D coordinates (e.g., x, y coordinates) for each vertex of the 3D bounding box. These 2D coordinates can be received by a 3D mapping model, which is configured to determine the coordinates in a third dimension (e.g., the z-coordinate) to determine the 3D coordinates of the 3D bounding box. Therefore, typically, machine learning models 120 and / or 140 may include object detection models, other machine learning models, and / or algorithms for processing the output (or more) of the object detection models. To perform object detection and / or 3D bounding box generation, each of these machine learning models and / or algorithms can be accessed and / or transferred separately between the user computing device 102 and the server computing system 130. Alternatively, the machine learning models (or more) and / or algorithms may be included in a single architecture, which may be included as part of memory 114 on the user computing device 102, part of memory 134 included on the server computing system 130, or both. For example, including all machine learning models and / or on a single device can improve efficiency by reducing the need for data transfer between the user computing device 102 and the server computing system 130. This can improve the performance of applications involving real-time object detection.

[0075] User computing device 102 may also include one or more user input components 122 for receiving user input. For example, user input component 122 may be a touch-sensitive component (e.g., a touch-sensitive display or touchpad) that is sensitive to the touch of a user input object (e.g., a finger or stylus). Touch-sensitive components can be used to implement a virtual keyboard, user interface, or other tools for receiving user interaction. Other example user input components include a microphone, camera, traditional keyboard, or other devices through which a user can provide input.

[0076] Server computing system 130 includes one or more processors 132 and memory 134. The one or more processors 132 can be any suitable processing device (e.g., processor core, microprocessor, ASIC, FPGA, controller, microcontroller, etc.) and can be a single processor or multiple processors operatively connected. Memory 134 can include one or more non-transitory computer-readable storage media, such as RAM, ROM, EEPROM, EPROM, flash memory devices, disks, etc., and combinations thereof. Memory 134 can store data 136 and instructions 138 that are executed by processor 132 to cause server computing system 130 to perform operations.

[0077] In some embodiments, the server computing system 130 includes one or more server computing devices or is otherwise implemented by one or more server computing devices. Where the server computing system 130 includes multiple server computing devices, such server computing devices may operate according to a sequential computing architecture, a parallel computing architecture, or some combination thereof.

[0078] As described above, the server computing system 130 may store or otherwise include machine learning models (or more) 140. Example machine learning models include neural networks or other multi-layered nonlinear models. Example neural networks include feedforward neural networks, deep neural networks, recurrent neural networks, and convolutional neural networks.

[0079] Network 180 can be any type of communication network, such as a local area network (e.g., intranet), a wide area network (e.g., the Internet), or some combination thereof, and can include any number of wired or wireless links. Typically, communication over network 180 can be carried over any type of wired and / or wireless connection using a wide variety of communication protocols (e.g., TCP / IP, HTTP, SMTP, FTP), encodings or formats (e.g., HTML, XML), and / or protection schemes (e.g., VPN, Secure HTTP, SSL).

[0080] Figure 1A An example computing system that can be used to implement this disclosure is shown. Other computing systems may also be used.

[0081] Figure 1BAn example computing device 10 according to this disclosure includes one or more machine learning models. Each of these machine learning models (or more) can be associated with applications such as object detection, labeling, object recognition, or other similar functions described herein. Each machine learning model can be trained using a machine learning library, which can include labeled data for performing supervised training tasks. As an example, a machine learning model can be configured to determine the heat used to generate a heatmap of each pixel in an image, the heat being determined based on proximity to the centroid of an object. The machine learning library can include images already labeled with object locations (or more), bounding box coordinates, segmentation masks, or other features learned by the example machine learning model. Furthermore, the machine learning library can include synthetic data that can be generated using an augmented reality engine. For example, an augmented reality engine can be used to place virtual objects (e.g., data derived from objects scanned using a 3D scanner) into an augmented reality scene (e.g., a scene generated using an AR engine, which can include depth maps of locations within the scene as well as multiple camera poses and views). In this way, the machine learning library can include synthetic data generated using a real scene and objects constructed using an AR engine, which can more accurately label coordinate locations and object poses within the scene compared to real data. However, it should be understood that not all data in the machine learning library is limited to synthetic data. Real images, either generated using machine learning software or labeled by humans, can be included in the machine learning library.

[0082] In some implementations, machine learning models (or more) and / or algorithms can communicate with other components of the computing device, such as sensors (or more) (e.g., cameras), context managers, device states, or other additional components. For example, the API can be configured to support communication between device components such as cameras, allowing data to be sent directly to machine learning models used for object detection, such as generating 3D bounding boxes with vertices having 3D coordinates substantially in real time.

[0083] Figure 1C Another example computing device 50 is shown. Example computing device 50 may include one or more machine learning models for object detection or other computer vision tasks according to example embodiments of this disclosure.

[0084] Example Architecture

[0085] Figure 2C illustrates an example model architecture including example model inputs (or more) and outputs (or more). As shown, some model inputs can be provided to the encoder-decoder backbone. In addition to determining the model outputs, the encoder-decoder backbone may also include a sequence of transformations for modifying the dimensions of the input data (e.g., an image). Example model outputs may include heatmaps (e.g., centroids (or more) for identifying objects (or more) depicted in an image), distance fields (e.g., pixel distances (or more) to vertex coordinates), and segmentation maps (e.g., for marking object boundaries). Using separate models and / or algorithms, the vertex recognition model can be used to process the model outputs (or more) to determine the coordinates of the vertices of a 3D bounding box in two dimensions (e.g., x, y coordinates of each vertex). To obtain relative information about the third spatial dimension, additional information such as camera intrinsics can be provided to the 3D mapping function in combination with the vertex 2D coordinates to determine the vertex 3D coordinates (e.g., x, y, z coordinates of each vertex) that describe the vertices of the 3D bounding box in three dimensions. These coordinates can be scale-independent, but provide enough information to determine the relative size and pose of the object(s). To determine the physical scale, additional models can be included for extrapolating the physical scale. For example, depth information or flat surfaces that can be detected using augmented reality (AR) data can be provided to a model or algorithm for scale extrapolation, which is configured to output vertex values ​​such as physical scales (e.g., meters) for each of the bounding box vertices in 3D.

[0086] Example model output and modified image

[0087] Figure 3A and 3B Depicts the example model output, showing an image overlaid with one or more example model outputs. For example, Figure 3A Eighteen images are depicted for object detection using an example implementation according to this disclosure. Figure 3A In the image, the top row is overlaid with a 3D bounding box. Additionally, an inset is displayed in the bottom left corner showing the location of the bounding box, which is obscured by the background. Figure 3A The middle row also includes an image covered by a 3D bounding box. The middle row image also includes a segmentation mask showing another example output of some implementations. Figure 3A The bottom row shows object detection for objects other than shoes (such as chairs and bottles). Again, these images are overlaid with 3D bounding boxes generated using an example implementation according to this disclosure. Furthermore, Figure 3A The image depicted illustrates the example model's ability to distinguish objects in a scene that includes more than one object.

[0088] Example Method

[0089] Figure 4 A flowchart depicts an example method for performing object detection and / or identification according to an exemplary embodiment of the present disclosure. Although FIG3 depicts steps performed in a specific order for illustrative and discussion purposes, the method of the present disclosure is not limited to the specific order or arrangement shown. Various steps of method 400 may be omitted, rearranged, combined, and / or modified in various ways without departing from the scope of the present disclosure.

[0090] At 402, the computing system can acquire a 2D image including the object, the 2D image comprising multiple pixels. Acquiring the 2D image may include accessing a database storing data, or generating the image using a device that can be included in or communicate with the computing system (such as a camera).

[0091] At 404, the computational system can input a 2D image into a machine learning object detection model comprising multiple heads. One aspect of the machine learning model can include a first head configured to generate a centroid heatmap, which provides a corresponding heat value for each pixel in the image. The corresponding heat value for each pixel describes the probability that the centroid of the object is depicted by such a pixel. Another aspect of the machine learning model can include a second head configured to generate multiple distance fields, each distance field providing a corresponding distance value for each pixel in the image. The corresponding distance value for each pixel indicates the distance to one of a plurality of vertices associated with the bounding box of the object. As an example for illustration, the machine learning model can be configured to determine vertices for a 3D bounding box having a rectangular prism shape. The rectangular prism defines 8 vertices, and the distance fields can be configured to predict the coordinate distance to each vertex for each spatial dimension (e.g., the x-dimensional and y-dimensional) in the 2D image.

[0092] At position 406, the computational system can generate a centroid heatmap using the first head of a machine learning object detection model. Aspects of generating the centroid heatmap may include assigning a heat value to each pixel. A bivariate normal distribution can be used to determine the assigned heat value. Furthermore, the first heat value can be configured to use a mean squared error loss to determine the heat value.

[0093] At 408, the computational system can generate multiple distance fields using the second head of a machine learning object detection model. In the case of multiple objects or multiple centroids in an image, the distance field for each object can be merged based on their heatmaps. When determining the distance fields, the example model can be configured to determine one or more loss functions. For example, the masking loss can be defined as the loss between the prediction and the ground truth. In the example implementation, the mask can be determined based on a heatmap. Another loss function can include a smoothness loss. For example, the model can be configured to assume a constant gradient of the distance fields and apply weights to the mean squared error of the mask, which is determined at least in part based on the gradient of the distance fields.

[0094] At 410, the computational system can determine a dataset including the 3D coordinates of bounding boxes associated with the 2D image, at least in part, based on a centroid heatmap and multiple distance fields. For example, an example implementation can be configured to determine the vertex coordinates of the 3D bounding boxes. In some implementations, these vertex coordinates can be in two dimensions (e.g., x, y coordinates). In some implementations, additional data such as camera intrinsics can be included in the machine learning model, or another model or algorithm can use the camera intrinsics and the 2D vertex coordinates to determine the vertex coordinates (e.g., x, y, z coordinates) in three dimensions for each vertex.

[0095] Based at least on the combination of operations described in Figure 3, the computing system according to this disclosure can use 2D images to perform 3D object detection, and in some embodiments, the 2D images can be combined with additional data such as camera intrinsics and / or AR data.

[0096] Additional Public Content

[0097] This paper discusses technical reference servers, databases, software applications, and other computer-based systems, as well as the actions taken and the information sent to and from these systems. The inherent flexibility of computer-based systems allows for a wide variety of possible configurations, combinations, and divisions of tasks and functions between and within components. For example, the processes discussed in this paper can be implemented using a single device or component, or multiple devices or components working in combination. Databases and applications can be implemented on a single system or distributed across multiple systems. Distributed components can operate sequentially or in parallel.

[0098] While the subject matter has been described in detail with respect to various specific example embodiments, each example is provided by way of explanation rather than limitation. Those skilled in the art, upon gaining an understanding of the foregoing, will readily generate changes, variations, and equivalents to these embodiments. Therefore, this disclosure does not exclude the inclusion of such modifications, variations, and / or additions to the subject matter, which will be apparent to those skilled in the art. For example, features shown or described as part of an embodiment may be used with another embodiment to generate yet another embodiment. Therefore, this disclosure is intended to cover such changes, variations, and equivalents.

Claims

1. A computer-implemented method for detecting three-dimensional (3D) objects in a two-dimensional (2D) image, the method comprising: A 2D image of an object is obtained by one or more computing devices, wherein the 2D image comprises multiple pixels; A 2D image is input into a machine learning object detection model comprising multiple heads, wherein the multiple heads include: The first head is configured to generate a centroid heatmap, wherein the centroid heatmap provides a corresponding heat value for each of a plurality of pixels, and wherein the corresponding heat value for each pixel describes the probability that the centroid of an object is depicted by said pixel; and The second head is configured to generate a plurality of distance fields, wherein each distance field provides a corresponding distance value for each of the contributing pixels in a plurality of pixels, and wherein the corresponding distance value of each of the contributing pixels in the plurality of pixels indicates the distance to one of a plurality of vertices associated with the bounding box of the object, wherein each distance field provides the corresponding distance value for each of the contributing pixels in the plurality of pixels having a heat value higher than a predetermined value; A centroid heatmap is generated by one or more computing devices using the first head of a machine learning object detection model. Multiple range fields are generated by one or more computing devices using the second head of a machine learning object detection model; and A dataset comprising 3D coordinates of bounding boxes associated with objects in a 2D image is determined by one or more computing devices, based at least in part on a centroid heatmap and multiple distance fields.

2. The computer-implemented method according to claim 1, wherein... A dataset comprising 3D coordinates of a bounding box, determined by one or more computing devices based at least in part on a centroid heatmap and multiple distance fields, includes: The centroid of an object is identified by one or more computing devices, at least in part, based on a centroid heatmap; A voting scheme is applied to multiple distance fields by one or more computing devices to identify multiple 2D projections of the vertices of the bounding box in a 2D image; as well as The 3D coordinates used to define the bounding box are reconstructed from multiple 2D projections of the vertices by one or more computing devices.

3. The computer-implemented method according to claim 1, wherein, Multiple heads also include: The third head is configured to generate a segmentation mask for an object, where the segmentation mask provides a binary response for each of a plurality of pixels, the binary response indicating that each pixel is associated with a background or an object.

4. The computer-implemented method according to claim 1, wherein, A binary normal distribution is used to determine the corresponding heat value of each pixel in a plurality of pixels.

5. The computer-implemented method according to claim 1, wherein, The generation of multiple distance fields is based at least in part on the corresponding heat value of each of the multiple pixels.

6. The computer-implemented method according to claim 1, wherein, The dataset includes the x, y, and z coordinates of each vertex in a set of multiple vertices.

7. The computer-implemented method according to claim 6, wherein, The x, y, z coordinates of each of the plurality of vertices define one or more of the following: the 3D position of the object, the object orientation, and the object size.

8. The computer-implemented method according to claim 1, further comprising: The method involves acquiring one or more camera features associated with a 2D image, augmented reality data associated with the 2D image, or a combination thereof, using one or more computing devices, and wherein determining 3D coordinates includes generating physical scale based at least in part on augmented reality data associated with 2D data, one or more camera features, or both.

9. The computer-implemented method according to any one of claims 1-8, wherein, The machine learning object detection model is trained using a dataset that includes: One or more augmented images, wherein optionally, at least one of the augmented images includes a segmentation label that defines each pixel in an augmented image as background or associated with an object, and wherein each augmented image is generated using an augmented reality engine.

10. The computer-implemented method according to claim 9, wherein, Generating each enhanced image includes: A three-dimensional model of a virtual object is obtained from one or more computing devices; Data comprising one or more image frames depicting a scene is obtained from one or more computing devices; The position and orientation of virtual objects within a scene are determined by one or more computing devices; An enhanced image is generated by one or more computing devices using an augmented reality rendering engine, the enhanced image depicting a virtual object within the scene at the location and orientation; A label is associated with an augmented image by one or more computing devices, wherein the label is used for at least one of the following: identifying a virtual object, indicating the location of a virtual object within a scene, indicating the orientation of a virtual object within a scene, or indicating a segmentation label.

11. The computer-implemented method according to any one of claims 1-8, wherein, The second head is trained at least in part based on the mask mean square error loss between the prediction and the baseline true value, and the mask is determined based on the heat value defined by the centroid heatmap.

12. The computer-implemented method according to any one of claims 1-8, wherein, The method is executed in real time.

13. The computer-implemented method according to any one of claims 1-8, wherein, The machine learning object detection model includes an encoder-decoder backbone, wherein the encoder-decoder backbone is configured to map 2D images to a lower-dimensional space before performing one or more learning tasks, and to map the results of one or more learning tasks to a higher-dimensional space to extract the output of multiple heads.

14. The computer-implemented method according to any one of claims 1-8, wherein, The machine learning object detection model is a fully convolutional network.

15. The computer-implemented method according to claim 1, wherein, Each of the contributing pixels among the plurality of pixels helps to calculate the coordinates of one of the vertices associated with the bounding box of the object based on the corresponding heat value of the contributing pixel.

16. A computing system, comprising: One or more processors; as well as One or more non-transitory computer-readable media, collectively storing instructions that, when executed by one or more processors, cause one or more processors to perform operations, the operations including: Obtain a 2D image including the object, wherein the 2D image comprises multiple pixels; The 2D image is input into a machine learning object detection model that includes multiple heads, wherein the multiple heads include: The first head is configured to generate a centroid heatmap, wherein the centroid heatmap provides a corresponding heat value for each of a plurality of pixels, and wherein the corresponding heat value for each pixel describes the probability that the centroid of an object is depicted by said pixel; and The second head is configured to generate a plurality of distance fields, wherein each distance field provides a corresponding distance value for each of the contributing pixels in a plurality of pixels, and wherein the corresponding distance value of each of the contributing pixels in the plurality of pixels indicates the distance to one of a plurality of vertices associated with the bounding box of the object, wherein each distance field provides the corresponding distance value for each of the contributing pixels in the plurality of pixels having a heat value higher than a predetermined value; Generate a centroid heatmap using the first head of a machine learning object detection model; Multiple distance fields are generated using the second head of a machine learning object detection model; and The dataset, which includes 3D coordinates of bounding boxes associated with objects in 2D images, is determined at least in part based on centroid heatmaps and multiple distance fields.

17. The computing system according to claim 16, wherein, The operation is performed in real time.

18. The computing system according to claim 16 or 17, wherein, The machine learning object detection model includes an encoder-decoder backbone, wherein the encoder-decoder backbone is configured to map 2D images to a lower-dimensional space before performing one or more learning tasks, and to map the results of one or more learning tasks to a higher-dimensional space to extract the output of multiple heads.

19. The computing system according to claim 16 or 17, wherein The dataset, which includes 3D coordinates of a bounding box, is determined by one or more computing devices based at least in part on the centroid heatmap and multiple distance fields, and includes: The centroid of an object is identified by one or more computing devices, at least in part, based on a centroid heatmap; A voting scheme is applied to multiple distance fields by one or more computing devices to identify multiple 2D projections of the vertices of a bounding box in a 2D image; as well as The 3D coordinates used to define the bounding box are reconstructed from multiple 2D projections of the vertices by one or more computing devices.

20. The computing system according to claim 16, wherein, The first head is a heatmap head, and the second head is a distance field head.

21. The computing system according to claim 16, wherein, Each of the contributing pixels among the plurality of pixels helps to calculate the coordinates of one of the vertices associated with the bounding box of the object based on the corresponding heat value of the contributing pixel.

Citation Information

Patent Citations

  • Methods and systems for training an object detection algorithm using synthetic images

    CN110022470A