Frame detection for object attachment

The learning-based hybrid system identifies geometric primitives and semantic attributes on a single image frame, generates 3D box proposals, solves the problems of high computational complexity and reliance on streaming video in the existing technology, achieves efficient object attachment, and supports Internet tools Object attachment application in .

CN118661201APending Publication Date: 2024-09-17FACE CUTE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202380020600.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2022-02-07
Filing Date
2023-02-02
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

Existing object attachment technology relies on simultaneous localization and mapping (SLAM) systems, which are computationally intensive and require streaming video as input. They are difficult to operate on a single image frame and cannot achieve efficient object attachment.

Method used

A learning-based hybrid system is employed that utilizes neural networks to identify geometric primitives and semantic attributes in individual image frames, logically filters out inaccurate predictions, and fuses intermediate geometric representations to generate final 3D box proposals indicating object attachment regions.

Benefits of technology

It realizes object attachment on a single image frame, reduces the amount of calculation, improves the accuracy and efficiency of attachment, and supports object attachment applications in Internet-based tools.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118661201A
    Figure CN118661201A
Patent Text Reader

Abstract

This disclosure describes techniques for determining bounding boxes. An image may be received. The X framework, the Y framework, and the normal framework may be based on the image using a first neural network. At least one planar region may be detected from the image using a second neural network. Each vanishing point in the at least one planar region may be subjected to vanishing point detection. The output of the first neural network may be fused with the result of the vanishing point detection. A depth value for each pixel in the at least one plane corresponding to the at least one plane region may be determined based at least in part on a result of the fusion. The position of the bounding box may be determined based at least in part on the depth value of each pixel in the at least one plane.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to U.S. patent application serial number 17 / 666,045, filed on February 7, 2022, entitled “BOX DETECTION FOR OBJECTATTACHMENT,” the disclosure of which is incorporated herein by reference in its entirety. Background Art

[0003] Communication is increasingly being performed using Internet-based tools. Internet-based tools can be any software or platform. Users can create content to be shared via such Internet-based tools. Improved techniques for content creation via such Internet-based tools are desirable. BRIEF DESCRIPTION OF THE DRAWINGS

[0004] The following detailed description will be better understood when read in conjunction with the accompanying drawings.For illustrative purposes, example embodiments of various aspects of the disclosure are shown in the drawings; however, the invention is not limited to the specific methods and instrumentalities disclosed.

[0005] Figure 1 An example system that can be used in accordance with the present disclosure is shown.

[0006] Figure 2 An example architecture of a box detection model according to the present disclosure is shown.

[0007] Figure 3 An example set of images corresponding to various stages of a box detection process according to the present disclosure is shown.

[0008] Figure 4 An example image including attached objects according to the present disclosure is shown.

[0009] Figure 5 An example process for box detection according to the present disclosure is shown.

[0010] Figure 6 An example process for box detection according to the present disclosure is shown.

[0011] Figure 7 An example process for box detection according to the present disclosure is shown.

[0012] Figure 8 An example process for box detection according to the present disclosure is shown.

[0013] Fig. 9 An example computing device is shown that may be used to perform any of the techniques disclosed herein. DETAILED DESCRIPTION

[0014] An Internet-based tool can be used for communication, which allows users to create content and distribute such content to other users for consumption. Such Internet-based tools can provide users with various tools for use when creating content. One or more of the tools can allow users to attach objects to images and / or video frames. For example, a user (e.g., a content creator) attaches a decal (e.g., a sticker) to a background image. The background image can be an image or video frame depicting the user, or an image or video frame depicting something (e.g., a building, a landscape, a landmark, or any other object) or someone other than the user. Therefore, object (i.e., decal) attachment is one of the important effects associated with building augmented reality (AR) applications.

[0015] However, object attachment requires comprehensive and accurate three-dimensional (3D) reconstruction and semantic understanding of the environment depicted in the background image. Previous object attachment techniques mainly rely on simultaneous localization and mapping (SLAM) systems, which are computationally intensive and also require streaming video (i.e., not a single image or video frame) as input. Therefore, there is a need for an improved object attachment technique that can operate on a single image frame.

[0016] Described herein are techniques for such improved object attachment techniques. The improved techniques described herein utilize a hybrid system based on learning that can operate directly on a single image frame. The system described herein utilizes the advantages of learning-based methods and classical methods for identifying geometric primitives (i.e., vanishing points, 3D frames, planar regions, normals) in a single image observation. The system described herein utilizes a neural network for identifying semantic attributes in an image environment. Additionally, the system described herein utilizes a logic flow to filter out less accurate or less satisfactory predictions and fuses intermediate geometric representations from different components to generate a final 3D box proposal. Such a 3D box proposal can indicate the area in a single image to which an object is to be attached.

[0017] Figure 1 An example system 100 for detecting a 3D box for object attachment is illustrated. The system 100 may include a cloud network 102 and a plurality of client devices 104a-n. The cloud network 102 and the plurality of client devices 104a-n may communicate with each other via one or more networks 120.

[0018] The cloud network 102 may be located at a data center such as a single location, or distributed across different geographic locations (e.g., at several locations). The cloud network 102 may provide services via one or more networks 120. The network 120 includes a variety of network devices, such as routers, switches, multiplexers, hubs, modems, bridges, repeaters, firewalls, proxy devices, and the like. The network 120 may include physical links, such as coaxial cable links, twisted pair cable links, fiber optic links, combinations thereof, and the like. The network 120 may include wireless links, such as cellular links, satellite links, Wi-Fi links, and the like.

[0019] The cloud network 102 may include a plurality of computing nodes 118 hosting various services. In an embodiment, the nodes 118 host content services 112. The content services 112 may include content streaming services, such as Internet Protocol video streaming services. The content services 112 may be configured to distribute content 116 via various transmission technologies. The content services 112 are configured to provide content 116, such as video, audio, text data, combinations thereof, and the like. The content 116 may include content streams (e.g., video streams, audio streams, information streams), content files (e.g., video files, audio files, text files), and / or other data. The content 116 may be stored in a database 114. For example, the content services 112 may include a video sharing service, a video hosting platform, a content distribution platform, a collaborative gaming platform, and the like.

[0020] In an embodiment, the content 116 distributed or provided by the content service 112 includes short videos. The short video may have a duration less than or equal to a predetermined time limit, such as one minute, five minutes, or other predetermined minutes. As an example and not limitation, a short video may include at least one but no more than four 15-second segments strung together. The short duration of the video may provide a quick entertainment experience for the viewer, which allows the user to watch a large amount of video in a short period of time. Such a quick burst of entertainment may become popular on a social media platform.

[0021] The short video may include a pre-recorded audio overlay, such as a pre-recorded song or a clip of audio from a TV show or movie. If the short video includes a pre-recorded audio overlay, the short video may feature one or more people lip-syncing, dancing, or otherwise moving their bodies with the pre-recorded audio. For example, a short video may feature a person completing a "dance challenge" to a popular song, or a short video may feature two people participating in lip-syncing or a duet. As another example, a short video may feature an individual completing a challenge that requires them to move his or her body in a manner corresponding to the pre-recorded audio overlay, such as in a manner corresponding to the beat or rhythm of a pre-recorded song characterized by the pre-recorded audio overlay. Other short videos may not include a pre-recorded audio overlay. For example, these short videos may feature individuals performing sports, pranks, or providing advice (such as beauty and fashion advice, cooking tips, or home improvement tips).

[0022] In an embodiment, content 116 may be output to different client devices 104a-n via network 120. Content 116 may be streamed to client devices 104a-n. The content stream may be a short video stream received from content service 112. Multiple client devices 104a-n may be configured to access content 116 from content service 112. In an embodiment, client devices 104a-n may include content application 106. Content application 106 outputs (e.g., displays, renders, presents) content 116 to users associated with client devices 104a-n. Content may include video, audio, comments, text data, etc.

[0023] The plurality of client devices 104a-n may include any type of computing device, such as a mobile device, a tablet device, a laptop computer, a desktop computer, a smart TV or other smart device (e.g., a smart watch, a smart speaker, smart glasses, a smart helmet), a gaming device, a set-top box, a digital streaming device, a robot, etc. The plurality of client devices 104a-n may be associated with one or more users. A single user may access the cloud network 102 using one or more of the plurality of client devices 104a-n. The plurality of client devices 104a-n may travel to various locations and use different networks to access the cloud network 102.

[0024] The content service 112 may be configured to receive input from a user. A user may be registered as a user of the content service 112 and may be a user of the content application 106 operating on the client device 104a-n. The user input may include a short video created by the user, a user comment associated with the short video, or a "like" associated with the short video. The user input may include a connection request and user input data, such as text data, digital image data, or user content. The connection request may include a request from a client device 104a-n to connect to the content service 112. The user input data may include information that the user connected to the content service 112 wants to share with other connected users of the content service 112, such as a short video and / or user comments.

[0025] The content service 112 may be able to receive different types of input from users using different types of client devices 104a-n. For example, a user using a content application 106 on a first user device such as a mobile phone or tablet computer may be able to use the content application 106 to create and upload short videos. Users using the content application 106 on different mobile phones or tablet computers may also be able to view, comment on, or "like" short videos or comments written by other users. In another example, a user using the content application 106 on a smart TV, laptop computer, desktop, or gaming device may not be able to use the content application 106 to create and upload short videos or comment on short videos. Users using the content application 106 on a smart TV, laptop computer, desktop, or gaming device may only be able to use the content application 106 to watch short videos, view comments left by other users, and "like" short videos.

[0026] In an embodiment, a user can use a content application 106 on a client device 104a-n to create a short video and upload the short video to the cloud network 102. The client device 104a-n can access an interface 108 of the content application 106. The interface 108 may include an input element. For example, the input element may be configured to allow the user to create a short video. In order to create a short video, the user may give the content application 106 permission to access an image capture device such as a camera or microphone of the client device 104a-n. Using the content application 106, the user can select the duration of the short video or set the speed of the short video, such as "slow motion" or "speed up".

[0027] The user can use the content application 106 to edit the short video. The user can add one or more texts, filters, sounds, or effects (such as AR effects) to the short video. In order to add a pre-recorded audio overlay to the short video, the user can select a song or sound clip from the sound library of the content application 106. The sound library can include different songs, sound effects, or audio clips from movies, albums, and TV shows. In addition to adding a pre-recorded audio overlay to a short video or instead of adding a pre-recorded audio overlay to a short video, the user can use the content application 106 to add a voice-over to the short video. The voice-over can be a sound recorded by the user using the microphone of the client device 104a-n. The user can add a text overlay to the short video, and can use the content application 106 to specify when they want the text overlay to appear in the short video. The user can assign a title, a location tag, and one or more topic tags to the short video to indicate the theme of the short video. The content application 106 can prompt the user to select a frame of the short video to be used as a "cover image" for the short video.

[0028] After the user has created the short video, the user can upload the short video to the cloud network 102 and / or save the short video locally to the user device 104a-n using the content application 106. When the user uploads the short video to the cloud network 102, they can choose whether they want the short video to be viewable by all other users of the content application 106 or only by a subset of users of the content application 106. The content service 112 can store the uploaded short video and any metadata associated with the short video as content 116 in one or more databases 114.

[0029] In an embodiment, a user may use a content application 106 on a client device 104a-n to provide input about a short video. The client device 104a-n may access an interface 108 of the content application 106, which allows the user to provide input associated with the short video. The interface 108 may include an input element. For example, the input element may be configured to receive input from the user, such as a comment or "like" associated with a particular short video. If the input is a comment, the content application 106 may allow the user to set an emoticon associated with his or her input. The content application 106 may determine timing information for the input, such as when the user writes a comment. The content application 106 may send the input and associated metadata to the cloud network 102. For example, the content application 106 may send the comment, the identifier of the user who wrote the comment, and the timing information of the comment to the cloud network 102. The content service 112 may store the input and associated metadata in a database 114.

[0030] Content service 112 can be configured to output uploaded short videos and user input to other users. A user can be registered as a user of content service 112 to watch short videos created by other users. The user can be a user of content application 106 operated on client device 104a-n. Content application 106 can output (display, render, present) short videos and user comments to users associated with client device 104a-n. Client device 104a-n can access interface 108 of content application 106. Interface 108 may include output elements. Output elements may be configured to display information about different short videos so that users can select short videos to watch. For example, output elements may be configured to display multiple cover images, titles or topic tags associated with short videos. Output elements may also be configured to arrange short videos according to categories associated with each short video.

[0031] In an embodiment, user comments associated with a short video may be output to other users who watch the same short video. For example, all users who access a short video may view comments associated with the short video. Content services 112 may output short videos and associated comments simultaneously. Comments may be output by content services 112 in real time or near real time. Content applications 106 may display short videos and comments on client devices 104a-n in various ways. For example, comments may be displayed in an overlay above the content or in an overlay next to the content. As another example, a user who wants to view comments of other users associated with a short video may need to select a button to view comments. Comments may be animated when displayed. For example, comments may be displayed as scrolling on a short video or an overlay.

[0032] Multiple computing nodes 118 can process tasks associated with content services 112. Multiple computing nodes 118 can be implemented as one or more computing devices, one or more processors, one or more virtual computing instances, combinations thereof, and the like. Multiple computing nodes 118 can be implemented by one or more computing devices. One or more computing devices may include virtualized computing instances. Virtualized computing instances may include virtual machines, such as simulations of computer systems, operating systems, servers, and the like. Virtual machines can be loaded by computing devices based on virtual images and / or other data defining specific software (e.g., operating systems, dedicated applications, servers) for simulation. When the demand for different types of processing services changes, different virtual machines can be loaded and / or terminated on one or more computing devices. A hypervisor can be implemented to manage the use of different virtual machines on the same computing device.

[0033] In an embodiment, the cloud network 102 and / or the client devices 104a-n include a box detection model 115. The box detection model 115 facilitates the detection of 3D boxes. Such 3D boxes indicate the area in a single image to which an object is to be attached. The box detection model 115 utilizes a hybrid system based on learning that can operate directly on a single image frame. The box detection model 115 utilizes the advantages of learning-based methods and classical methods to identify geometric primitives (i.e., vanishing points, 3D frames, plane areas, normals) in a single image observation. The box detection model 115 utilizes a neural network to identify semantic attributes in the image environment. In addition, the box detection model 115 utilizes a logical flow that filters out less accurate or less satisfactory predictions and fuses intermediate geometric representations from different components to generate a final 3D box proposal. Such a 3D box proposal can indicate the area in a single image to which an object is to be attached. For example, such a 3D box proposal can indicate the area in the frame of a short video to which a content creator attaches an object such as a sticker.

[0034] The box detection model 115 (client side and / or server side) may have Figure 2 Describes the same or similar architecture. Figure 2 An example architecture 200 for a box detection model (i.e., box detection model 115) is illustrated. The box detection model receives as input a single image 202. Single image 202 may be an image or video frame depicting a user of content service 122, or an image or video frame depicting something (e.g., a building, landscape, landmark, or any other object) or someone other than the user. Single image 202 may be an image to which the user wants to attach an object (i.e., a decal).

[0035] A single image 202 may be fed into a first neural network 204. The first neural network 204 may receive the single image 202. The first neural network 204 may include any neural network capable of determining a 3D frame prediction associated with a single image. For example, the first neural network 204 may be configured to receive the image 202 and predict a canonical 3D coordinate frame from the image 202. Each pixel in the image 202 corresponds to a surface in the underlying 3D geometry of the scene depicted by the image 202. The canonical frame may be identified as being represented by three orthogonal axes: one along its normal direction, and two in its tangent plane (i.e., the X-axis and the Y-axis).

[0036] The first neural network 204 may be configured to output a predicted canonical 3D coordinate frame associated with the image 202. In an embodiment, the output of the first neural network 204 includes an X-frame having dimensions H×W×3, where each pixel contains a 3D orientation of the X-axis, a Y-frame having dimensions H×W×3, where each pixel contains a 3D orientation of the Y-axis, and a normal frame having dimensions H×W×3, where each pixel contains a 3D orientation of the normal plane.

[0037] The single image 202 may additionally be fed into a second neural network 206. The second neural network 206 may receive the single image 202. The second neural network 204 may include any neural network capable of detecting and reconstructing piecewise planes from a single image. For example, the second neural network 204 may be configured to detect a plane within the image 202 using its plane parameters and a segmentation mask. The second neural network 204 may be configured to output a segmentation mask. In an embodiment, the second neural network 204 outputs N segmentation masks, wherein the foreground region of each segmentation mask indicates a plane detected within the image 202.

[0038] In an embodiment, vanishing point detection model 208 computes an orthogonal vanishing point for each plane detected by second neural network 204 within image 202. A vanishing point is a point on the image plane where two-dimensional perspective projections of mutually parallel lines in three-dimensional space appear to converge. The orthogonal vanishing points provide information related to the orientation of the camera that captured image 202, the structure of the world depicted by image 202, and internal parameters of image 202.

[0039] The fusion model 210 is configured to receive the output from the first neural network 204, the output from the second neural network 206, and / or the result from the vanishing point detection model 208. The result from the vanishing point detection model 208 may be used to refine the output from the first neural network 204. In order to refine the output from the first neural network 204 using the result from the vanishing point detection model, the confidence of the result from the vanishing point detection model 208 may be determined based on the number of detected lines associated with the result from the vanishing point detection model 208.

[0040] For example, if the difference between the predicted normal associated with the first neural network 204 and the normal calculated from the vanishing point detection model 208 is less than a predetermined threshold, this may indicate that the result from the vanishing point detection model 208 is credible. If the result from the vanishing point detection model 208 is credible, then the result from the vanishing point detection model 208 may be utilized to find the principal 3D axis. Conversely, if the difference between the predicted normal associated with the first neural network 204 and the normal calculated from the vanishing point detection model 208 is greater than or equal to the predetermined threshold, this may indicate that the result from the vanishing point detection model 208 is not credible. If the result from the vanishing point detection model 208 is not credible, then the output from the first neural network 204 may be utilized as the principal 3D axis.

[0041] In some embodiments, an average (such as a weighted average) of the output from the first neural network 204 and the result from the vanishing point detection model 208 may be utilized as the primary 3D axis. For example, if the result from the vanishing point detection model 208 is determined to be credible, a larger weight may be assigned to the result from the vanishing point detection model 208. On the contrary, if the result from the vanishing point detection model 208 is determined to be untrustworthy, a smaller weight may be assigned to the result from the vanishing point detection model 208.

[0042] In an embodiment, the depth model 212 is configured to receive the fusion result from the fusion model 210. For example, the depth model 212 may be configured to calculate the pseudo depth of each pixel inside the plane using the average normal of the plane calculated by the fusion model 210. The depth model 212 may set the center pixel to a depth of 1.0, and may calculate the depth values ​​of other pixels inside the plane using the default camera intrinsic characteristics. For example, the depth model 212 may solve:

[0043]

[0044] Where (u i ,v i ) indicates the i-th pixel coordinate, d i Indicates the i-th pixel depth value, {f x ,f y ,c x ,c y} indicates the camera internal parameters, (x i ,y i ,z i ) indicates the 3D coordinate frame in the camera, (n x ,n y ,n z ) represents the normal of the plane, and the center pixel is set at a depth of 1.0 (i.e., x0=0, y0=0, z0=1). The depth model 212 can solve the above equation to obtain the depth value of each pixel in the plane, thereby calculating their 3D coordinates (x i ,y i ,z i ).

[0045] The depth model 212 may determine the four corners of the bounding box. To determine the four corners of the bounding box, the depth model 212 may project each 3D point onto the X-axis and the Y-axis as follows:

[0046] as well as

[0047]

[0048] in and They are the X-axis and the Y-axis respectively. Can be and The 15% quartile, and ) can be and The 85% quartile of . The depth model 212 can then calculate the four corners p1, p2, p3, and p4 of the bounding box by:

[0049]

[0050] The projection model 214 may receive the four corners from the depth model 212. The projection model 214 may be configured to project the four corners into the image space. For example, the projection model 214 may project the four corners into the image space using camera intrinsic parameters.

[0051] Figure 3 An example set of images 300 corresponding to various stages of a box detection process performed by a box detection model having the architecture 200 described above is illustrated. The box detection model receives a single image 302 as input. Figure 3 , single image 302 is an image or video frame depicting the side of a building. Single image 302 may be an image to which a user would like to attach an object (i.e., a decal). For example, a user may want to attach an object, such as a decal similar to a poster or painting, to the side of a building.

[0052] A single image 302 may be fed to a first neural network (e.g., first neural network 204). The first neural network may receive single image 302. The first neural network may receive image 302 and predict a canonical 3D coordinate frame from image 302. Each pixel in image 302 corresponds to a surface (i.e., buildings and sky) in the underlying 3D geometry of the scene depicted by image 302. The canonical frame may be identified as being represented by three orthogonal axes: one along its normal direction, and two in its tangent planes (i.e., the X-axis and the Y-axis). The first neural network may output a predicted canonical 3D coordinate frame 304 associated with image 302. In an embodiment, output 304 includes an X-frame having dimensions H×W×3, where each pixel contains a 3D orientation of the X-axis, a Y-frame having dimensions H×W×3, where each pixel contains a 3D orientation of the Y-axis, and a normal frame having dimensions H×W×3, where each pixel contains a 3D orientation of the normal plane.

[0053] The single image 302 may additionally be fed to a second neural network (e.g., the second neural network 206). The second neural network may receive the single image 302. The second neural network may detect a plane within the image 302 using its plane parameters and the segmentation mask. The second neural network may be configured to output a segmentation mask. In an embodiment, the second neural network outputs N segmentation masks, wherein the foreground region of each segmentation mask indicates a plane detected within the image 302.

[0054] In an embodiment, a vanishing point detection model (e.g., vanishing point detection model 208) computes an orthogonal vanishing point for each plane detected by the second neural network within image 302. As discussed above, the orthogonal vanishing points provide information related to the orientation of the camera that captured image 302, the structure of the world depicted by image 302, and the internal parameters of image 302. Output 306 depicts a segmentation mask with orthogonal vanishing points corresponding to image 302.

[0055] A fusion model (e.g., fusion model 210) may receive output 304 and output 306. Output 306 may be used to refine output 304. In order to refine output 306 based on output 304, the confidence of the orthogonal vanishing point may be determined based on the number of detected lines associated with the orthogonal vanishing point. For example, if the difference between the predicted normal associated with output 304 and the normal calculated from the orthogonal vanishing point is less than a predetermined threshold, this may indicate that the orthogonal vanishing point is credible. If the orthogonal vanishing point is credible, then the orthogonal vanishing point may be utilized to find the main 3D axis. Conversely, if the difference between the predicted normal associated with output 304 and the normal calculated from the orthogonal vanishing point is greater than or equal to a predetermined threshold, this may indicate that the orthogonal vanishing point is not credible. If the orthogonal vanishing point is not credible, then output 304 may be utilized as the main 3D axis.

[0056] In an embodiment, a depth model (e.g., depth model 212) receives the fusion result from the fusion model. For example, the depth model may calculate the pseudo depth of each pixel inside the plane using the average normal of the plane calculated by the fusion model. The depth model may obtain the depth value of each pixel in the plane to calculate their 3D coordinates. The depth model may determine the four corners of the bounding box. In order to determine the four corners of the bounding box, the depth model 212 may project each 3D point onto the X-axis and the Y-axis and may calculate the four corners p1, p2, p3, and p4 of the bounding box.

[0057] The projection model (e.g., projection model 214) can receive the four corners from the depth model and can project the four corners into image space, as shown in image 308. Objects such as decals can be attached to the bounding box, as shown in image 308. For example, Figure 4As shown in , objects 402a-b may be attached to image 400 so that it appears that objects 402a-b are glued or attached to the side of a building depicted in the image. The objects attached to the image may be two-dimensional or three-dimensional graphics.

[0058] Figure 5 An example process 500 is illustrated. The box detection model 115 (client side and / or server side) can perform the process 500 to detect 3D boxes for object attachment. Figure 5 2 is depicted as a sequence of operations, but one of ordinary skill in the art will appreciate that various embodiments may add, remove, reorder, or modify the operations depicted.

[0059] As discussed above, the box detection model may receive a single image as input. At 502, an image may be received. For example, the image may depict a 3D environment or scene to which a user wants to attach an object (i.e., a decal). For example, the user may want to attach an object, such as a decal similar to a poster or painting, to the side of a building depicted in the image.

[0060] The image may be fed to a first neural network (e.g., first neural network 204). The first neural network may receive and predict a canonical 3D coordinate frame from the image. The first neural network may output a predicted canonical 3D coordinate frame associated with the image. At 504, an X-frame, a Y-frame, and a normal-frame may be estimated based on the image using the first neural network. In one embodiment, the output of the first neural network includes an X-frame of dimensions H×W×3, where each pixel contains a 3D orientation of the X-axis, a Y-frame of dimensions H×W×3, where each pixel contains a 3D orientation of the Y-axis, and a normal-frame of dimensions H×W×3, where each pixel contains a 3D orientation of the normal plane.

[0061] The image may additionally be fed to a second neural network (e.g., second neural network 206). The second neural network may receive the image and detect planes within the image using its plane parameters and the segmentation mask. At 506, at least one plane region may be detected from the image using the second neural network. The second neural network may be configured to output a segmentation mask. In an embodiment, the second neural network outputs N segmentation masks, wherein the foreground region of each segmentation mask indicates a plane detected within the image.

[0062] In an embodiment, a vanishing point detection model (e.g., vanishing point detection model 208) calculates an orthogonal vanishing point for each plane detected by the second neural network within the image. At 508, vanishing point detection may be performed on each of the at least one plane region. As discussed above, orthogonal vanishing points provide information related to the orientation of the camera that captured the image, the structure of the world depicted by the image, and internal parameters of the image.

[0063] A fusion model (e.g., fusion model 210) may receive output 304 and output 306. Output 306 may be used to refine output 304. At 510, the output of the first neural network may be fused with the result of the vanishing point detection. To perform the fusion, the confidence of the orthogonal vanishing point may be determined based on the number of detected lines associated with the orthogonal vanishing point. A depth value of each pixel in at least one plane corresponding to the at least one planar region may be determined based at least in part on the result of the fusion.

[0064] In an embodiment, a depth model (e.g., depth model 212) receives the fusion result from the fusion model. For example, the depth model may calculate the pseudo depth of each pixel inside the plane using the average normal of the plane calculated by the fusion model. The depth model may obtain the depth value of each pixel in the plane to calculate their 3D coordinates. At 512, the position of the bounding box may be determined based at least in part on the depth value of each pixel in at least one plane. The bounding box indicates the area in the image to which the object is to be attached.

[0065] Figure 6 An example process 600 is illustrated. The box detection model 115 (client side or server side) can perform the process 600 to detect 3D boxes for object attachment. Figure 6 2 is depicted as a sequence of operations, but one of ordinary skill in the art will appreciate that various embodiments may add, remove, reorder, or modify the operations depicted.

[0066] As discussed above, the box detection model may receive a single image as input. At 602, an image may be received. For example, the image may depict a 3D environment or scene to which a user wants to attach an object (i.e., a decal). For example, the user may want to attach an object, such as a decal similar to a poster or painting, to the side of a building depicted in the image.

[0067] The image may be fed to a first neural network (e.g., first neural network 204). The first neural network may receive and predict a canonical 3D coordinate frame from the image. The first neural network may output a predicted canonical 3D coordinate frame associated with the image. At 604, an X-frame, a Y-frame, and a normal frame may be estimated based on the image using the first neural network. In one embodiment, the output of the first neural network includes an X-frame of dimensions H×W×3, where each pixel contains a 3D orientation of the X-axis, and a Y-frame of dimensions H×W×3, where each pixel contains a 3D orientation of the Y-axis, and a normal frame of dimensions H×W×3, where each pixel contains a 3D orientation of the normal plane.

[0068] The image may be additionally fed to a second neural network (e.g., second neural network 206). The second neural network may receive the image and detect planes within the image using its plane parameters and the segmentation mask. At 606, at least one plane region may be detected from the image using the second neural network. The second neural network may be configured to output a segmentation mask. In an embodiment, the second neural network outputs N segmentation masks, wherein a foreground region of each segmentation mask indicates a plane detected within the image.

[0069] In an embodiment, a vanishing point detection model (e.g., vanishing point detection model 208) calculates an orthogonal vanishing point for each plane detected by the second neural network within the image. At 608, vanishing point detection may be performed on each of the at least one plane region. As discussed above, orthogonal vanishing points provide information related to the orientation of the camera that captured the image, the structure of the world depicted by the image, and internal parameters of the image.

[0070] A fusion model (e.g., fusion model 210) may receive the output from the first neural network and the result of the vanishing point detection. The result of the vanishing point detection may be used to refine the output from the first neural network. For example, the output of the first neural network may be fused with the result of the vanishing point detection. To perform the fusion, the confidence of the orthogonal vanishing point may be determined based on the number of lines detected associated with the orthogonal vanishing point. The depth value of each pixel in at least one plane corresponding to the at least one planar region may be determined based at least in part on the result of the fusion.

[0071] For example, if the difference between the predicted normal associated with the first neural network and the normal calculated from the vanishing point detection model is less than a predetermined threshold, this may indicate that the results from the vanishing point detection model are trustworthy. If the results from the vanishing point detection model are trustworthy, then the results from the vanishing point detection model may be utilized to find the principal 3D axis. Conversely, if the difference between the predicted normal associated with the first neural network and the normal calculated from the vanishing point detection model is greater than or equal to the predetermined threshold, this may indicate that the results from the vanishing point detection model are not trustworthy. If the results from the vanishing point detection model are not trustworthy, then the output of the first neural network may be utilized as the principal 3D axis.

[0072] In some embodiments, an average (such as a weighted average) of the output from the first neural network and the result from the vanishing point detection model can be utilized as the primary 3D axis. For example, if the result from the vanishing point detection model is determined to be credible, a larger weight can be assigned to the result from the vanishing point detection model. Conversely, if the result from the vanishing point detection model is determined to be untrustworthy, a smaller weight can be assigned to the result from the vanishing point detection model.

[0073] In an embodiment, a depth model (e.g., depth model 212) receives the fusion result from the fusion model. For example, the depth model may calculate the pseudo depth of each pixel inside the plane using the average normal of the plane calculated by the fusion model. At 610, the depth value of each pixel may be determined based on the normal estimated by the first neural network and the average of the normals calculated from the result of vanishing point detection. The depth model may obtain the depth value of each pixel in the plane, thereby calculating their 3D coordinates. At 612, the position of the bounding box may be determined based at least in part on the depth value of each pixel in at least one plane. The bounding box indicates the area in the image to which the object is to be attached.

[0074] Figure 7 An example process 700 is illustrated. The box detection model 115 (client side or server side) can perform the process 700 to detect 3D boxes for object attachment. Figure 7 2 is depicted as a sequence of operations, but one of ordinary skill in the art will appreciate that various embodiments may add, remove, reorder, or modify the operations depicted.

[0075] As discussed above, the box detection model may receive a single image as input. At 702, an image may be received. For example, the image may depict a 3D environment or scene to which a user wants to attach an object (i.e., a decal). For example, the user may want to attach an object, such as a decal similar to a poster or painting, to the side of a building depicted in the image.

[0076] The image may be fed to a first neural network (e.g., first neural network 204). The first neural network may receive and predict a canonical 3D coordinate frame from the image. The first neural network may output a predicted canonical 3D coordinate frame associated with the image. At 704, an X-frame, a Y-frame, and a normal frame may be estimated based on the image using the first neural network. In one embodiment, the output of the first neural network includes an X-frame of dimensions H×W×3, where each pixel contains a 3D orientation of the X-axis, a Y-frame of dimensions H×W×3, where each pixel contains a 3D orientation of the Y-axis, and a normal frame of dimensions H×W×3, where each pixel contains a 3D orientation of the normal plane.

[0077] The image may additionally be fed to a second neural network (e.g., second neural network 206). The second neural network may receive the image and detect planes within the image using its plane parameters and the segmentation mask. At 706, at least one plane region may be detected from the image using the second neural network. The second neural network may be configured to output a segmentation mask. In an embodiment, the second neural network outputs N segmentation masks, wherein the foreground region of each segmentation mask indicates a plane detected within the image.

[0078] In an embodiment, a vanishing point detection model (e.g., vanishing point detection model 208) calculates an orthogonal vanishing point for each plane detected by the second neural network within the image. At 708, vanishing point detection may be performed on each of the at least one plane region. As discussed above, orthogonal vanishing points provide information related to the orientation of the camera that captured the image, the structure of the world depicted by the image, and internal parameters of the image.

[0079] A fusion model (e.g., fusion model 210) may receive the output from the first neural network and the result of the vanishing point detection. The result of the vanishing point detection may be used to refine the output from the first neural network. For example, the output of the first neural network may be fused with the result of the vanishing point detection. To perform the fusion, the confidence of the orthogonal vanishing point may be determined based on the number of lines detected associated with the orthogonal vanishing point. The depth value of each pixel in at least one plane corresponding to the at least one planar region may be determined based at least in part on the result of the fusion.

[0080] At 710, the difference between the normal estimated by the first neural network and the normal calculated from the result of the vanishing point detection can be determined. At 712, it can be determined whether the difference is less than a predetermined threshold. If it is determined that the difference is less than the predetermined threshold, this can indicate that the result from the vanishing point detection model is credible and the method 700 can proceed to step 714. At 714, the result from the vanishing point detection model can be utilized to find the main 3D axis. The depth value of each pixel can be determined based on the normal calculated from the result of the vanishing point detection. Conversely, if it is determined that the difference is greater than or equal to the predetermined threshold, this can indicate that the result from the vanishing point detection model is not credible, and the method 700 can proceed to step 716. If the result from the vanishing point detection model is not credible, the output from the first neural network can be utilized as the main 3D axis. At 716, the depth value of each pixel can be determined based on the normal estimated by the first neural network.

[0081] Figure 8 An example process 800 is illustrated. The box detection model 115 (client side or server side) can perform the process 800 to detect 3D boxes for object attachment. Figure 8 2 is depicted as a sequence of operations, but one of ordinary skill in the art will appreciate that various embodiments may add, remove, reorder, or modify the operations depicted.

[0082] A depth model (e.g., depth model 212) may receive a fusion result from a fusion model (e.g., fusion model 210). For example, the depth model may calculate a pseudo depth for each pixel inside the at least one plane using an average normal of the at least one plane calculated by the fusion model. At 802, a depth value for each pixel in at least one plane corresponding to the at least one plane region may be determined based at least in part on a result of fusing an output of the first neural network with a result of vanishing point detection. The center pixel may be set to a depth of 1.0, and the depth values ​​of other pixels inside the plane may be determined using default camera intrinsic parameters. For example, the depth model may solve:

[0083]

[0084] Where (u i ,v i ) indicates the i-th pixel coordinate, d i Indicates the i-th pixel depth value, {f x ,f y ,c x ,c y} indicates the camera internal parameters, (x i ,y i ,z i ) represents the 3D coordinate frame in the camera, (nx ,n y ,n z ) represents the normal of the plane, and the center pixel is set to a depth of 1.0 (i.e. x0=0, y0=0, z0=1). The depth model can solve the above equation to obtain the depth value of each pixel in the plane, thereby calculating their 3D coordinates (x i ,y i ,z i At 804, the depth value of each pixel may be used to determine a three-dimensional (3D) coordinate of each pixel.

[0085] The depth model may determine the four corners of the bounding box. To determine the four corners of the bounding box, the depth model may project each 3D point onto the X-axis and the Y-axis at 806. The depth model may project each 3D point onto the X-axis and the Y-axis as follows:

[0086] as well as

[0087]

[0088] in and They are the X-axis and the Y-axis respectively.

[0089] At 808, the four corners of the bounding box may be determined based on at least one predetermined rule, wherein each of the four corners of the bounding box is associated with a 3D set coordinate. The predetermined rule may indicate, for example, yes and The 15% quartile, and yes and The 85% quartile of . The depth model then calculates the four corners p1, p2, p3, and p4 of the bounding box by:

[0090]

[0091] The projection model (e.g., projection model 214) can receive the four corners from the depth model. The projection model can project the four corners into the image space. At 810, the four corners of the bounding box can be projected into the image space. For example, the projection model can project the four corners into the image space using camera intrinsic characteristics.

[0092] Fig. 9 The diagram shows a computing device that can be used in various aspects, such as Figure 1 The services, networks, modules and / or devices depicted in. Figure 1 In an example architecture, the cloud network (and any components thereof), the client device, and / or the network can each be composed of Fig. 9The system may be implemented by one or more instances of computing device 900. Fig. 9 The computer architecture illustrates a conventional server computer, workstation, desktop computer, laptop computer, tablet computer, network appliance, PDA, e-reader, digital cellular telephone, or other computing node and can be utilized to perform any aspects of the computer described herein to implement the methods described herein.

[0093] The computing device 900 may include a baseboard or "motherboard," which is a printed circuit board to which multiple components or devices may be connected via a system bus or other electrical communication paths. One or more central processing units (CPUs) 904 may operate in conjunction with a chipset 906. The CPU(s) 904 may be a standard programmable processor that performs the arithmetic and logic operations required for the operation of the computing device 900.

[0094] (Multiple) CPUs 904 can perform necessary operations by manipulating switching elements to transition from one discrete physical state to the next, which distinguish between and change these states. Switching elements can typically include electronic circuits that maintain one of two binary states (such as flip-flops) and electronic circuits that provide output states based on logical combinations of the states of one or more other switching elements (such as logic gates). These basic switching elements can be combined to create more complex logic circuits, including registers, adder-subtractors, arithmetic logic units, floating point units, and the like.

[0095] CPU(s) 904 may be augmented or replaced with other processing units such as GPU(s) 905. GPU(s) 905 may include processing units specialized for, but not necessarily limited to, highly parallel computations, such as graphics and other visualization-related processing.

[0096] The chipset 906 may provide an interface between the CPU(s) 904 and the rest of the components and devices on the baseboard. The chipset 906 may provide an interface to a random access memory (RAM) 908 used as main memory in the computing device 900. The chipset 906 may also provide an interface to a computer-readable storage medium such as a read-only memory (ROM) 820 or a non-volatile RAM (NVRAM) (not shown) for storing basic routines that may help boot the computing device 900 and transfer information between various components and devices. The ROM 820 or NVRAM may also store other software components required for the operation of the computing device 900 in accordance with the various aspects described herein.

[0097] The computing device 900 may operate in a networked environment using logical connections to remote computing nodes and computer systems through a local area network (LAN). Chipset 906 may include functionality for providing network connectivity through a network interface controller (NIC) 922, such as a Gigabit Ethernet adapter. NIC 822 may be capable of connecting the computing device 900 to other computing nodes through network 916. It should be appreciated that multiple NICs 822 may be present in the computing device 900, thereby connecting the computing device to other types of networks and remote computer systems.

[0098] The computing device 900 can be connected to a mass storage device 928 that provides non-volatile storage for the computer. The mass storage device 928 can store system programs, application programs, other program modules and data, which have been described in more detail herein. The mass storage device 928 can be connected to the computing device 900 by a storage controller 924 connected to the chipset 906. The mass storage device 928 can be composed of one or more physical storage units. The mass storage device 928 may include a management component. The storage controller 924 can be interfaced with the physical storage unit by a serial attached SCSI (SAS) interface, a serial advanced technology attachment (SATA) interface, a fiber channel (FC) interface or other types of interfaces for physically connecting and transmitting data between the computer and the physical storage unit.

[0099] The computing device 900 can store data on the mass storage device 928 by transforming the physical state of the physical storage unit to reflect the information being stored. The specific transformation of the physical state may depend on various factors and different implementations of the present description. Examples of these factors may include, but are not limited to, the technology used to implement the physical storage unit and whether the mass storage device 928 is characterized as a primary storage device or an auxiliary storage device, etc.

[0100] For example, the computing device 900 can store information to the mass storage device 928 by issuing instructions through the storage controller 924 to change the magnetic properties of a specific location within a disk drive unit, the reflective or refractive properties of a specific location in an optical storage unit, or the electrical properties of a specific capacitor, transistor, or other discrete component in a solid-state storage unit. Other transformations of the physical medium are possible without departing from the scope and spirit of the present description, and the foregoing examples are provided only to facilitate the present description. The computing device 900 can also read information from the mass storage device 928 by detecting the physical state or properties of one or more specific locations within the physical storage unit.

[0101] In addition to the mass storage device 928 described above, the computing device 900 may also access other computer-readable storage media to store and retrieve information, such as program modules, data structures, or other data. It should be appreciated by those skilled in the art that computer-readable storage media may be any available media that provides storage of non-transient data and can be accessed by the computing device 900.

[0102] By way of example and not limitation, computer-readable storage media may include volatile and nonvolatile, transient computer-readable storage media and non-transient computer-readable storage media, and removable and non-removable media implemented in any method or technology. Computer-readable storage media include, but are not limited to, RAM, ROM, erasable programmable ROM ("EPROM"), electrically erasable programmable ROM ("EEPROM"), flash memory or other solid-state memory technology, compact disk ROM ("CD-ROM"), digital versatile disk ("DVD"), high-definition DVD ("HD-DVD"), BLU-RAY or other optical storage, magnetic cassettes, magnetic tape, disk storage, other magnetic storage devices, or any other medium that can be used to store desired information in a non-transient manner.

[0103] Mass storage devices such as Fig. 9 The mass storage device 928 depicted in the figure can store an operating system utilized to control the operation of the computing device 900. The operating system can include a version of the LINUX operating system. The operating system can include a version of the WINDOWS SERVER operating system from Microsoft Corporation. According to another aspect, the operating system can include a version of the UNIX operating system. Various mobile phone operating systems, such as IOS and ANDROID, can also be utilized. It should be understood that other operating systems can also be utilized. The mass storage device 928 can store other systems or applications and data utilized by the computing device 900.

[0104] The mass storage device 928 or other computer-readable storage medium may also be encoded with computer-executable instructions that, when loaded into the computing device 900, transform the computing device from a general-purpose computing system into a special-purpose computer capable of implementing the aspects described herein. These computer-executable instructions transform the computing device 900 by specifying how the CPU(s) 904 transition between states, as described above. The computing device 900 may access a computer-readable storage medium storing computer-executable instructions that, when executed by the computing device 900, may perform the methods described herein.

[0105] Computing devices such as Fig. 9The computing device 900 depicted in FIG. 1 may also include an input / output controller 932 for receiving and processing input from a number of input devices, such as a keyboard, a mouse, a touch pad, a touch screen, an electronic pen, or other types of input devices. Similarly, the input / output controller 932 may provide output to a display, such as a computer monitor, a flat panel display, a digital projector, a printer, a plotter, or other types of output devices. It should be understood that the computing device 900 may not include Fig. 9 All components shown in the Fig. 9 Other components not explicitly shown in the figure may also be used. Fig. 9 The structure shown in is completely different from the structure shown in.

[0106] As described herein, a computing device may be a physical computing device such as Fig. 9 The computing device 900 of the present invention may also include a virtual machine host process and one or more virtual machine instances. The computer executable instructions may be indirectly executed by the physical hardware of the computing device by interpreting and / or executing instructions stored and executed in the context of the virtual machine.

[0107] It should be understood that the methods and systems are not limited to specific methods, specific components or specific implementations. It should also be understood that the terminology used herein is for the purpose of describing specific embodiments only and is not intended to be limiting.

[0108] As used in the specification and the appended claims, the singular forms "a", "an", and "the" include plural referents unless the context clearly indicates otherwise. Ranges may be expressed herein as from "about" one particular value and / or to "about" another particular value. When such a range is expressed, another embodiment includes from a particular value and / or to another particular value. Similarly, when a value is expressed as an approximation by using the antecedent "about", it will be understood that the particular value forms another embodiment. It should also be understood that the endpoints of each range are significant relative to the other endpoint as well as independently of the other endpoint.

[0109] "Optional" or "optionally" means that the subsequently described event or circumstance may or may not occur, and that the description includes instances where said event or circumstance occurs and instances where it does not.

[0110] Throughout the description and claims of this specification, the word "comprise" and variations of the word, such as "comprising" and "comprises", mean "including but not limited to", and are not intended to exclude, for example, other components, integers, or steps. "Exemplary" means "an example of..." and is not intended to convey an indication of a preferred or ideal embodiment. "Such as" is not intended to be limiting but is used for explanation purposes.

[0111] Components that can be used to perform the described methods and systems are described. When describing combinations, subsets, interactions, groups, etc. of these components, it should be understood that, although there may not be specific references to each of the various individual and collective combinations and arrangements of these components explicitly described, each is specifically contemplated and described herein for all methods and systems. This applies to all aspects of the application, including but not limited to the operations in the described methods. Therefore, if there are multiple additional operations that can be performed, it should be understood that each of these additional operations can be performed using any specific embodiment or combination of embodiments of the described methods.

[0112] The present method and system may be understood more readily by reference to the following detailed description of the preferred embodiments and examples included therein and to the accompanying drawings and their description.

[0113] As will be appreciated by those skilled in the art, the methods and systems may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. In addition, the methods and systems may take the form of a computer program product on a computer-readable storage medium having computer-readable program instructions (e.g., computer software) embodied in the storage medium. More specifically, the methods and systems may take the form of web-implemented computer software. Any suitable computer-readable storage medium may be utilized, including a hard disk, a CD-ROM, an optical storage device, or a magnetic storage device.

[0114] Embodiments of the method and system are described below with reference to the block diagrams and flow charts of the method, system, device and computer program product. It should be understood that each frame in the block diagram and flow chart and the combination of frames in the block diagram and flow chart can be implemented by computer program instructions respectively. These computer program instructions can be loaded onto a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine, so that the instructions executed on the computer or other programmable data processing device create components for implementing the functions specified in one or more flow chart frames.

[0115] These computer program instructions may also be stored in a computer-readable memory, which may direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture, which includes computer-readable instructions for implementing the functions specified in one or more flowchart blocks. The computer program instructions may also be loaded onto a computer or other programmable data processing device to cause a series of operating steps to be executed on the computer or other programmable device, thereby producing a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more flowchart blocks.

[0116] The various features and processes described above can be used independently of each other, or can be combined in various ways. All possible combinations and sub-combinations are intended to fall within the scope of the present disclosure. In addition, some method or process blocks may be omitted in some implementations. The methods and processes described herein are also not limited to any particular order, and the blocks or states associated therewith may be performed in other appropriate orders. For example, the described blocks or states may be performed in an order different from the order specifically described, or multiple blocks or states may be combined in a single block or state. The example blocks or states may be performed serially, in parallel, or in some other manner. Blocks or states may be added to or removed from the described example embodiments. The example systems and components described herein may be configured differently from those described. For example, compared to the described example embodiments, elements may be added, removed, or rearranged.

[0117] It should also be understood that various items are illustrated as being stored in memory or on storage devices when being used, and these items or parts thereof can be transferred between memory and other storage devices for the purpose of memory management and data integrity. Alternatively, in other embodiments, some or all of the software modules and / or systems can be executed in memory on another device and communicate with the illustrated computing system via inter-computer communication. In addition, in some embodiments, some or all of the systems and / or modules can be implemented or provided in other ways, such as being implemented or provided at least in part in firmware and / or hardware, including but not limited to one or more application specific integrated circuits ("ASICs"), standard integrated circuits, controllers (e.g., by executing appropriate instructions, and including microcontrollers and / or embedded controllers), field programmable gate arrays ("FPGAs"), complex programmable logic devices ("CPLDs"), etc. Some or all of the modules, systems, and data structures can also be stored (e.g., as software instructions or structured data) on a computer-readable medium, such as a hard disk, memory, network, or portable media article that is accessed by an appropriate device or via an appropriate connection. Systems, modules, and data structures may also be transmitted as generated data signals (e.g., as part of a carrier wave or other analog or digital propagation signal) on various computer-readable transmission media, including wireless-based and wire / cable-based media, and may take a variety of forms (e.g., as part of a single or multiplexed analog signal, or as multiple discrete digital packets or frames). In other embodiments, such computer program products may also take other forms. Therefore, the present invention may be practiced with other computer system configurations.

[0118] Although the methods and systems have been described in conjunction with preferred embodiments and specific examples, it is not intended to limit the scope to the particular embodiments set forth, as the embodiments herein are intended in all respects to be illustrative rather than restrictive.

[0119] Unless otherwise expressly stated, any method presented herein is in no way intended to be interpreted as requiring that its operations be performed in a particular order. Therefore, in the event that a method claim does not actually recite the order in which its operations are to be followed, or in the event that the operations are not otherwise specifically stated in the claim or description to be limited to a particular order, it is in no way intended that the order can be inferred from any aspect. This applies to any possible non-expressive basis for interpretation, including: logical issues regarding the arrangement of steps or operational flows; plain meaning from grammatical organization or punctuation; and the number or type of embodiments described in the specification.

[0120] It will be apparent to those skilled in the art that various modifications and variations may be made without departing from the scope or spirit of the present disclosure. Other embodiments will be apparent to those skilled in the art by considering the specification and practice described herein. The specification and example drawings are to be considered as exemplary only, with the true scope and spirit being indicated by the appended claims.

Claims

1. A method comprising: receiving an image; estimating an X frame, a Y frame, and a normal frame based on the image using a first neural network; detecting at least one planar region from the image using a second neural network; performing vanishing point detection on each of the at least one planar region; Fusing the output of the first neural network with the result of the vanishing point detection, and determining a depth value for each pixel in at least one plane corresponding to the at least one planar region based at least in part on the result of the fusion; as well as A position of a bounding box is determined based at least in part on the depth value for each pixel in the at least one plane, wherein the bounding box indicates an area in the image to which an object is to be attached.

2. The method according to claim 1, further comprising: The depth value of each pixel is determined based on an average of a normal estimated by the first neural network and a normal calculated from the result of the vanishing point detection.

3. The method according to claim 1, further comprising: determining a difference between a normal estimated by said first neural network and a normal calculated from said results of said vanishing point detection; as well as In response to determining that the difference is less than a threshold, the depth value of each pixel is determined based on the normal calculated from the result of the vanishing point detection.

4. The method according to claim 1, further comprising: determining a difference between a normal estimated by said first neural network and a normal calculated from said results of said vanishing point detection; as well as In response to determining that the difference is equal to or greater than a threshold, determining the depth value for each pixel based on the normal estimated by the first neural network.

5. The method according to claim 1, further comprising: The three-dimensional (3D) coordinates of each pixel are determined using the depth value of each pixel.

6. The method according to claim 5, further comprising: The 3D coordinates of each pixel are projected onto the X-axis and the Y-axis.

7. The method according to claim 1, further comprising: Four corners of the bounding box are determined based on at least one predetermined rule, wherein each of the four corners of the bounding box is associated with a set of 3D coordinates.

8. The method according to claim 7, further comprising: The four corners of the bounding box are projected into image space.

9. The method of claim 1, wherein the object comprises a two-dimensional (2D) graphic or a three-dimensional (3D) graphic.

10. A system comprising: at least one processor; as well as at least one memory, the at least one memory comprising computer-readable instructions that, when executed by the at least one processor, cause a computing device to perform operations comprising: receiving an image; estimating an X frame, a Y frame, and a normal frame based on the image using a first neural network; detecting at least one planar region from the image using a second neural network; performing vanishing point detection on each of the at least one planar region; Fusing the output of the first neural network with the result of the vanishing point detection, and determining a depth value for each pixel in at least one plane corresponding to the at least one planar region based at least in part on the result of the fusion; and A position of a bounding box is determined based at least in part on the depth value for each pixel in the at least one plane, wherein the bounding box indicates an area in the image to which an object is to be attached.

11. The system of claim 10, wherein the operations further comprise: The depth value of each pixel is determined based on an average of a normal estimated by the first neural network and a normal calculated from the result of the vanishing point detection.

12. The system of claim 10, wherein the operations further comprise: determining a difference between a normal estimated by said first neural network and a normal calculated from said results of said vanishing point detection; as well as In response to determining that the difference is less than a threshold, the depth value of each pixel is determined based on the normal calculated from the result of the vanishing point detection.

13. The system of claim 10, wherein the operations further comprise: determining a difference between a normal estimated by said first neural network and a normal calculated from said results of said vanishing point detection; as well as In response to determining that the difference is equal to or greater than a threshold, determining the depth value for each pixel based on the normal estimated by the first neural network.

14. The system of claim 10, wherein the operations further comprise: determining a three-dimensional (3D) coordinate of each pixel using the depth value of each pixel; as well as The 3D coordinates of each pixel are projected onto the X-axis and the Y-axis.

15. The system of claim 10, the operations further comprising: determining four corners of the bounding box based on at least one predetermined rule, wherein each of the four corners of the bounding box is associated with a set of 3D coordinates; as well as The four corners of the bounding box are projected into image space.

16. A non-transitory computer-readable storage medium storing computer-readable instructions that, when executed by a processor, cause the processor to perform operations comprising: receiving an image; estimating an X frame, a Y frame, and a normal frame based on the image using a first neural network; detecting at least one planar region from the image using a second neural network; performing vanishing point detection on each of the at least one planar region; Fusing the output of the first neural network with the result of the vanishing point detection, and determining a depth value for each pixel in at least one plane corresponding to the at least one planar region based at least in part on the result of the fusion; as well as A position of a bounding box is determined based at least in part on the depth value for each pixel in the at least one plane, wherein the bounding box indicates an area in the image to which an object is to be attached.

17. The non-transitory computer readable storage medium of claim 16, the operations further comprising: The depth value of each pixel is determined based on an average of a normal estimated by the first neural network and a normal calculated from the result of the vanishing point detection.

18. The non-transitory computer readable storage medium of claim 16, the operations further comprising: determining a difference between a normal estimated by said first neural network and a normal calculated from said results of said vanishing point detection; as well as In response to determining that the difference is less than a threshold, the depth value of each pixel is determined based on the normal calculated from the result of the vanishing point detection.

19. The non-transitory computer readable storage medium of claim 16, the operations further comprising: determining a difference between a normal estimated by said first neural network and a normal calculated from said results of said vanishing point detection; as well as In response to determining that the difference is equal to or greater than a threshold, determining the depth value for each pixel based on the normal estimated by the first neural network.

20. The non-transitory computer readable storage medium of claim 16, the operations further comprising: determining a three-dimensional (3D) coordinate of each pixel using the depth value of each pixel; determining four corners of the bounding box based on at least one predetermined rule, each of the four corners of the bounding box being associated with a set of 3D coordinates; as well as The four corners of the bounding box are projected into image space.