AR body part tracking system

Through the end-to-end optimized machine learning model, the problem of inaccurate foot tracking in existing augmented reality systems is solved, efficient AR object merging and updating is achieved, and user experience and system performance are improved.

CN118575191APending Publication Date: 2024-08-30SNAP INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202380017442.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2022-03-09
Filing Date
2023-01-17
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

It is difficult for existing augmented reality systems to accurately track the position, positioning and orientation of the user's feet in images or videos, resulting in AR shoes being placed in unrealistic locations, reducing the attractiveness of the system, and complex post-processing operations consume a lot of resources .

Method used

Adopt an end-to-end optimized machine learning model to detect and track feet in images or videos through machine learning technology, reducing dependence on resources. It uses neural network and other technologies to estimate the 3D rotation, translation and scaling of the feet to achieve accurate AR objects. Merge and add.

Benefits of technology

It improves the tracking accuracy and efficiency of the feet, reduces the consumption of system resources, realizes the seamless merging and real-time updating of AR objects, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118575191A_ABST
    Figure CN118575191A_ABST
Patent Text Reader

Abstract

Aspects of the present disclosure relate to a system for presenting AR items. The system performs operations including: receiving an image including a depiction of a first real-world body part in a real-world environment; applying a machine learning technique to the image to generate a plurality of dense outputs, each dense output associated with a respective pixel of the plurality of pixels in the image; applying a first task-specific decoder to the plurality of dense outputs to identify pixels corresponding to a center of the first real-world body part; applying a second task-specific decoder using the identified pixels to retrieve 3D rotation, translation, and scaling of the first real-world body part from a plurality of dense outputs; modifying the AR object based on the 3D rotation, translation, and scaling of the first real-world body part; and modifying the image to include a depiction of the modified AR object.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims the benefit of priority to Greek application serial number 20220100040 filed on January 17, 2022 and U.S. patent application serial number 17 / 690,504 filed on March 9, 2022, which are incorporated herein by reference in their entirety. Technical Field

[0003] The present disclosure generally relates to providing an augmented reality experience using a messaging application. Background Art

[0004] Augmented reality (AR) is a modification of a virtual environment. For example, in virtual reality (VR), the user is completely immersed in a virtual world, while in AR, the user is immersed in a world that combines virtual objects with the real world or superimposes virtual objects on the real world. AR systems are designed to generate and present virtual objects that interact realistically with the real world environment and with each other. Examples of AR applications can include single or multiplayer video games, instant messaging systems, etc. BRIEF DESCRIPTION OF THE DRAWINGS

[0005] In the accompanying drawings (which are not necessarily drawn to scale), similar reference numerals may describe similar components in different views. To easily identify the discussion of any particular element or action, the most significant digit or digits in a reference numeral refer to the figure number in which the element is first introduced. Some non-limiting examples are shown in the accompanying drawings, in which:

[0006] Figure 1 is a diagrammatic representation of a networking environment in which the present disclosure may be deployed, according to some examples.

[0007] Figure 2 is a diagrammatic representation of a messaging client application according to some examples.

[0008] Figure 3 is a diagrammatic representation of data structures maintained in a database according to some examples.

[0009] Figure 4 is a graphical representation of messages according to some examples.

[0010] Figure 5 is a block diagram illustrating an example AR body part tracking system according to some examples.

[0011] FIG. 6A to FIG. 6C , Figure 7 , Figure 8 and Fig. 9is a diagrammatic representation of the input / output of an AR body part tracking system according to some examples.

[0012] Fig.10 is a flow diagram illustrating example operation of an AR body part tracking system according to some examples.

[0013] Fig.11 is a diagrammatic representation of a machine in the form of a computer system according to some examples within which a set of instructions may be executed for causing the machine to perform any one or more of the methodologies discussed herein.

[0014] Fig.12 is a block diagram illustrating a software architecture in which examples may be implemented. DETAILED DESCRIPTION

[0015] The following description includes systems, methods, techniques, instruction sequences and computing machine program products that implement the illustrative examples of the present disclosure. In the following description, for the purpose of illustration, many specific details are set forth to provide an understanding of various examples. However, it will be apparent to those skilled in the art that examples may be practiced without these specific details. Typically, it is not necessary to show in detail known instruction instances, protocols, structures and techniques.

[0016] Typically, virtual reality (VR) and augmented reality (AR) systems enable users to add augmented reality elements to their environment (e.g., captured image data corresponding to the user's surroundings). For example, such systems enable users to select AR fashion items (e.g., clothing, shirts, pants, etc.). The AR system can then render the clothing for display on an image or video depicting the user. In some cases, typical AR systems enable users to select AR shoes to be displayed in an image or video. However, these systems cannot accurately track the placement, positioning, orientation, and position of the user's feet in the image or video. This results in AR shoes being placed in unrealistic locations, which reduces the overall appeal of using these systems.

[0017] Some AR systems can track the feet of a user in a video by performing complex post-processing operations. For example, these systems can receive an image in an offline manner and can apply a perspective N-point (PNP) algorithm to a set of points associated with a foot depicted in the image (PNP is applied once to each foot depicted, so that four feet will need to apply PNP four times). Applying PNP to a set of points introduces various complexities, which consumes a lot of processing resources. For example, in order to apply PNP, multiple external components and libraries need to be utilized, such as by making multiple calls to the PNP library for each foot depicted in the image or a group of points associated with each foot. In addition, grouping the points associated with multiple feet depicted in the image to their respective feet cannot be easily implemented and may result in various errors or incorrect assumptions. This may result in poor results when applied to the PNP algorithm because typical systems may end up confusing groups of points associated with different feet. Due to these problems, it is very difficult to easily implement these systems for images depicting multiple feet.

[0018] The disclosed technology uses an electronic device (such as by using machine learning techniques) to improve the accuracy and efficiency of tracking one or more feet (or one or more other body parts) depicted in an image. The electronic device can implement or otherwise access an AR / VR system that intelligently adds an AR object (e.g., an AR shoe object) to an image or video depicting a real-world foot and / or multiple real-world feet or other body parts. Machine learning techniques are applied to images or videos with the same complexity to detect and track any number of feet or body parts, which significantly reduces the amount of resources used by typical systems to perform the same processing. That is, the disclosed technology does not rely on computer vision to detect and track feet as is typically done. The disclosed technology uses a machine learning model that can be optimized in an end-to-end manner to detect and track any number of feet depicted in an image or video. In this way, AR objects can be seamlessly merged and added to real-time images or videos.

[0019] Adding an AR object based on the determined 3D rotation, translation, scale (and / or depth) of a real-world foot and / or multiple real-world feet or other body parts. The disclosed technology applies a machine learning technique or model (e.g., a neural network) to an image or video received in real time. The output of the machine learning model includes multiple outputs for each pixel in the image or video. Multiple dense outputs can be processed to estimate the center point of a real-world body part (e.g., a foot) or multiple center points of each real-world foot depicted in a pixel or image or video. Using the center point, the disclosed technology can obtain an estimate of the 3D rotation, translation, and scale of a real-world foot or other body part. In this way, the 3D rotation, scale, and translation of a real-world foot or other body part can be calculated or determined without applying a PNP algorithm or processing to the image or video. Applying a machine learning model to an image to estimate the center of a body part (e.g., a foot) results in an improved and faster way to determine the 3D rotation and translation of the body part without applying a PNP algorithm or processing in a real-time manner.

[0020] In some examples, multiple dense outputs may also be processed to obtain left and right foot classifications of a body part or real-world foot depicted in an image. An AR object (e.g., a left shoe object or a right shoe object) is selected based on the left and right foot classifications. For example, if the classification indicates that the center point or pixel of the real-world foot is the left foot, the left AR shoe object is selected. If the classification indicates that the center point or pixel of the real-world foot is the right foot, the right AR shoe object is selected. The selected AR object is then adjusted or modified using the estimated 3D rotation and translation. After adjusting or modifying the AR object, the AR object is placed in real time on the real-world foot or body part corresponding to the AR object in the image or video. This results in a real-time image or video depicting the AR object with an orientation and positioning (translation, rotation, scaling, and / or depth) that corresponds to and matches the orientation and positioning of the real-world foot or body part depicted in the image or video.

[0021] In this way, the disclosed technology can select one or more AR objects (or elements) and automatically place the one or more AR objects (or elements) in real time within an image or video depicting one or more real-world feet or other body parts. This improves the user's overall experience when using an electronic device and reduces the total amount of system resources required to complete the task.

[0022] Networked computing environment

[0023] Figure 11 is a diagrammatic representation of a networked environment in which a messaging system 100 of the present disclosure may be deployed, according to some examples. The messaging system 100 includes multiple instances of a client device 102, each of the multiple instances hosting a number of applications including a messaging client 104 and other external applications 109 (e.g., third-party applications). Each messaging client 104 is communicatively coupled to other instances of the messaging client 104 (e.g., hosted on respective other client devices 102), a messaging server system 108, and an external application server 110 via a network 112 (e.g., the Internet). The messaging client 104 may also communicate with locally hosted third-party applications (also referred to as "external applications" and "external apps") 109 using an application programming interface (API).

[0024] The client device 102 can be operated as a stand-alone device or can be coupled (e.g., networked) to other machines. In a networked deployment, the client device 102 can operate with the performance of a server machine or a client machine in a server-client network environment, or operate as a peer in a peer-to-peer (or distributed) network environment. The client device 102 may include, but is not limited to, a server computer, a client computer, a personal computer (PC), a tablet computer, a laptop computer, a netbook, a set-top box (STB), a personal digital assistant (PDA), an entertainment media system, a cellular phone, a smart phone, a mobile device, a wearable device (e.g., a smart watch), a smart home device (e.g., a smart appliance), other smart devices, a network device, a network router, a network switch, a bridge, or any machine capable of performing the disclosed operations. In addition, although only a single client device 102 is shown, the term "client device" should also be considered to include a collection of machines that perform the disclosed operations individually or jointly.

[0025] In one example, client device 102 may include AR glasses or an AR head-mounted device, wherein virtual content (e.g., an AR shoe object) is displayed within the lenses of the glasses while the user views a real-world environment depicting real-world feet through the lenses. For example, an image may be presented on a transparent display that enables the user to simultaneously view the content presented on the display and the real-world object (e.g., one or more real-world feet).

[0026] The messaging clients 104 are able to communicate and exchange data with other messaging clients 104 and messaging server systems 108 via the network 112. The data exchanged between the messaging clients 104 and between the messaging clients 104 and messaging server systems 108 include functions (e.g., commands for activating functions) and payload data (e.g., text, audio, video, or other multimedia data).

[0027] The messaging server system 108 provides server-side functionality to certain messaging clients 104 via the network 112. Although certain functions of the messaging system 100 are described herein as being performed by the messaging client 104 or by the messaging server system 108, the location of certain functions within the messaging client 104 or within the messaging server system 108 may be a design choice. For example, it may be technically preferable to initially deploy certain technologies and functions within the messaging server system 108, but later migrate the technologies and functions to the messaging client 104 where the client device 102 has sufficient processing power.

[0028] The messaging server system 108 supports various services and operations provided to the messaging clients 104. Such operations include sending data to the messaging clients 104, receiving data from the messaging clients 104, and processing data generated by the messaging clients 104. As examples, the data may include message content, client device information, geographic location information, media enhancements and overlays, message content persistence conditions, social network information, and live event information. The data exchange within the messaging system 100 is activated and controlled by functions available via the user interface (UI) of the messaging client 104.

[0029] Turning now specifically to the messaging server system 108, an application program interface (API) server 116 is coupled to the application server 114 and provides a programming interface to the application server 114. The application server 114 is communicatively coupled to a database server 120, which facilitates access to a database 126 that stores data associated with messages processed by the application server 114. Similarly, a web server 128 is coupled to the application server 114 and provides a web-based interface to the application server 114. To this end, the web server 128 processes incoming network requests via the Hypertext Transfer Protocol (HTTP) and several other related protocols.

[0030] The API server 116 receives and sends message data (e.g., commands and message payloads) between the client device 102 and the application server 114. Specifically, the API server 116 provides a set of interfaces (e.g., routines and protocols) that can be called or queried by the messaging client 104 to activate the functionality of the application server 114. The API server 116 exposes various functions supported by the application server 114, including: account registration; login functionality; sending messages from a particular messaging client 104 to another messaging client 104 via the application server 114; sending media files (e.g., images or videos) from the messaging client 104 to the messaging server 118 and for possible access by another messaging client 104; setting up a collection of media data (e.g., a story); retrieving a friend list of the user of the client device 102; retrieving such a collection; retrieving messages and content; adding and removing entities (e.g., friends) from an entity graph (e.g., a social graph); locating friends in a social graph; and opening application events (e.g., related to the messaging client 104).

[0031] The application server 114 hosts several server applications and subsystems, including, for example, a messaging server 118, an image processing server 122, and a social network server 124. The messaging server 118 implements several message processing technologies and functions, particularly those related to aggregation and other processing of content (e.g., text and multimedia content) included in messages received from multiple instances of the messaging client 104. As will be described in further detail, text and media content from multiple sources can be aggregated into collections of content (e.g., called stories or galleries). These collections are then made available to the messaging client 104. In view of the hardware requirements for other processor and memory intensive processing of data, such processing can also be performed on the server side by the messaging server 118.

[0032] The application server 114 also includes an image processing server 122 that is dedicated to performing various image processing operations, typically on images or videos within the payload of messages sent from or received at the messaging server 118 .

[0033] The image processing server 122 is used to implement the enhancement system 208 ( Figure 2). The scanning function includes activating and providing one or more augmented reality experiences on the client device 102 when an image is captured by the client device 102. Specifically, the messaging application 104 on the client device 102 can be used to activate the camera. The camera displays one or more real-time images or videos and one or more icons or identifiers of one or more augmented reality experiences to the user. The user can select a given identifier in the identifier to launch the corresponding augmented reality experience or perform the desired image modification (for example, launching a home-based AR shopping experience, as described below in conjunction with Figures 6 to 7). Fig.10 discussed).

[0034] The social network server 124 supports various social networking functions and services and makes them available to the messaging server 118. To this end, the social network server 124 maintains and accesses an entity graph 308 (e.g., Figure 3 Examples of functions and services supported by social network server 124 include identifying other users with whom a particular user of messaging system 100 has relationships or that the particular user is "following," and also identifying interests and other entities of a particular user.

[0035] Returning to the messaging client 104, the features and functions of the external resource (e.g., a third-party application 109 or an applet) are available to the user via the interface of the messaging client 104. The messaging client 104 receives a user selection of an option for launching or accessing features of an external resource (e.g., a third-party resource) such as an external app 109. The external resource can be a third-party application (external app 109) installed on the client device 102 (e.g., a "native application"), or a small-scale version of a third-party application (e.g., a "mini program") hosted on the client device 102 or located at a remote end of the client device 102 (e.g., on an external resource or application server 110). The small-scale version of the third-party application includes a subset of the features and functions of the third-party application (e.g., a full-scale, native version of a third-party standalone application) and is implemented using a markup language document. In one example, the small-scale version of the third-party application (e.g., a "mini program") is a web-based markup language version of the third-party application and is embedded in the messaging client 104. In addition to using markup language documents (eg, .*ml files), applets may include scripting languages ​​(eg, .*js files or .json files) and style sheets (eg, *ss files).

[0036] In response to receiving a user selection of an option for launching or accessing a feature of an external resource (e.g., an external app 109), the messaging client 104 determines whether the selected external resource is a web-based external resource or a locally installed external application. In some cases, the external application 109 locally installed on the client device 102 can be launched independently of the messaging client 104 and separately from the messaging client 104, for example, by selecting an icon corresponding to the external application 109 on the home screen of the client device 102. A small-scale version of such an external application can be launched or accessed via the messaging client 104, and in some examples, no part of the small-scale external application can be (or only a limited part can be) accessed outside the messaging client 104. The small-scale external application can be launched by the messaging client 104 receiving a markup language document associated with the small-scale external application from the external application server 110 and processing such a document.

[0037] In response to determining that the external resource is a locally installed external application 109, the messaging client 104 instructs the client device 102 to launch the external application 109 by executing the locally stored code corresponding to the external application 109. In response to determining that the external resource is a web-based resource, the messaging client 104 communicates with the external application server 110 to obtain a markup language document corresponding to the selected resource. The messaging client 104 then processes the obtained markup language document to present the web-based external resource within the user interface of the messaging client 104.

[0038] The messaging client 104 may notify the user of the client device 102 or other users (e.g., "friends") associated with such a user of activities occurring in one or more external resources. For example, the messaging client 104 may provide a notification related to the current or recent use of an external resource by one or more members of a user group to a participant in a conversation (e.g., a chat session) in the messaging client 104. One or more users may be invited to join an active external resource or to start an external resource that was recently used but is currently inactive (in the friend group). The external resource may provide the participants in the conversation, each using a corresponding messaging client messaging client 104, with the ability to share items, conditions, states, or locations in the external resource with one or more members of the user group entering the chat session. The shared item may be an interactive chat card, and members of the chat may interact using the interactive chat card, such as to start a corresponding external resource, view specific information in an external resource, or bring members of the chat to a specific location or state in an external resource. Within a given external resource, a response message may be sent to the user on the messaging client 104. The external resource may selectively include different media items in the response based on the current context of the external resource.

[0039] The messaging client 104 may present a list of available external resources (e.g., third-party or external applications 109 or applets) to the user to launch or access a given external resource. The list may be presented in a context-sensitive menu. For example, icons representing different external applications in the external applications 109 (or applets) may vary based on how the user launches the menu (e.g., from a conversation interface or from a non-conversation interface).

[0040] System Architecture

[0041] Figure 2 1 is a block diagram showing additional details about the messaging system 100 according to some examples. Specifically, the messaging system 100 is shown as including a messaging client 104 and an application server 114. The messaging system 100 contains several subsystems that are supported on the client side by the messaging client 104 and on the server side by the application server 114. These subsystems include, for example, a transient timer system 202, a collection management system 204, an augmentation system 208, a map system 210, a game system 212, an external resource system 220, and an AR body part tracking system 224.

[0042] The transient timer system 202 is responsible for implementing temporary or time-limited access to content by the messaging client 104 and the messaging server 118. The transient timer system 202 includes several timers that selectively enable access to messages and associated content (e.g., for presentation and display) via the messaging client 104 based on duration and display parameters associated with a message or a collection of messages (e.g., a story). Additional details regarding the operation of the transient timer system 202 are provided below.

[0043] The collection management system 204 is responsible for managing collections or collections of media (e.g., collections of text, image video, and audio data). Collections of content (e.g., messages, including images, videos, text, and audio) can be organized into "event galleries" or "event stories." Such collections can be available for a specified period of time (e.g., the duration of an event related to the content). For example, content related to a concert can be made available as a "story" for the duration of the concert. The collection management system 204 can also be responsible for publishing an icon that provides notification of the existence of a particular collection to the user interface of the messaging client 104.

[0044] In addition, the collection management system 204 also includes a curation interface 206, which allows a collection manager to manage and curate a specific content collection. For example, the curation interface 206 enables an event organizer to curate a collection of content related to a specific event (e.g., to delete inappropriate content or redundant messages). In addition, the collection management system 204 uses machine vision (or image recognition technology) and content rules to automatically curate content collections. In some examples, compensation can be paid to users for including user-generated content in a collection. In such a case, the collection management system 204 operates to automatically pay such users for using their content.

[0045] The enhancement system 208 provides various functions that enable users to enhance (e.g., annotate or otherwise modify or edit) media content associated with a message. For example, the enhancement system 208 provides functions related to generating and publishing media overlays for messages processed by the messaging system 100. The enhancement system 208 is operable to provide media overlays or enhancements (e.g., image filters) to the messaging client 104 based on the geographic location of the client device 102. In another example, the enhancement system 208 is operable to provide media overlays to the messaging client 104 based on other information such as social network information of the user of the client device 102. The media overlay can include audio and visual content and visual effects. Examples of audio and visual content include pictures, text, logos, animations, and sound effects. Examples of visual effects include color overlays. Audio and visual content or visual effects can be applied to media content items (e.g., photos) at the client device 102. For example, the media overlay can include text, graphic elements, or images that can be overlaid on photos taken by the client device 102. In another example, the media overlay includes a location identification overlay (e.g., Venice Beach), the name of a live event, or a business name overlay (e.g., Beach Cafe). In another example, the enhancement system 208 uses the geographic location of the client device 102 to identify a media overlay that includes the name of the business at the geographic location of the client device 102. The media overlay may include other tags associated with the business. The media overlay may be stored in the database 126 and accessed through the database server 120.

[0046] In some examples, the enhancement system 208 provides a user-based publishing platform that enables a user to select a geographic location on a map and upload content associated with the selected geographic location. The user can also specify an environment in which a particular media overlay should be provided to other users. The enhancement system 208 generates a media overlay that includes the uploaded content and associates the uploaded content with the selected geographic location.

[0047] In other examples, the augmentation system 208 provides a merchant-based publishing platform that enables merchants to select specific media overlays associated with a geographic location via a bidding process. For example, the augmentation system 208 associates the media overlay of the highest bidding merchant with the corresponding geographic location for a predefined amount of time. The augmentation system 208 communicates with the image processing server 122 to obtain an augmented reality experience, and presents an identifier of such an experience in one or more user interfaces (e.g., as an icon on a real-time image or video, or as a thumbnail or icon in an interface dedicated to an identifier of the presented augmented reality experience). Once an augmented reality experience is selected, one or more images, videos, or augmented reality graphical elements are retrieved and presented as an overlay on top of an image or video captured by the client device 102. In some cases, the camera is switched to a front view (e.g., the front camera of the client device 102 is activated in response to activation of a particular augmented reality experience), and an image from the front camera of the client device 102, rather than the rear camera of the client device 102, begins to be displayed on the client device 102. One or more images, videos, or augmented reality graphical elements are retrieved and presented as an overlay on top of the image captured and displayed by the front-facing camera of the client device 102 .

[0048] In other examples, the augmentation system 208 can communicate and exchange data with another augmentation system 208 on another client device 102 and a server via the network 112. The exchanged data may include: a session identifier identifying the shared AR session; a transformation between a first client device 102 and a second client device 102 (e.g., a plurality of client devices 102, including the first device and the second device) for aligning the shared AR session to a common origin; a common coordinate system; functionality (e.g., commands for activating functions), and other payload data (e.g., text, audio, video, or other multimedia data).

[0049] The augmentation system 208 sends the transformation to the second client device 102 so that the second client device 102 can adjust the AR coordinate system based on the transformation. In this way, the first client device 102 and the second client device 102 synchronize their coordinate systems and frames to display the content in the AR session. Specifically, the augmentation system 208 calculates the origin of the second client device 102 in the coordinate system of the first client device 102. The augmentation system 208 can then determine an offset in the coordinate system of the second client device 102 based on the position of the origin in the coordinate system of the second client device 102 from the perspective of the second client device 102. The transformation is generated using the offset so that the second client device 102 generates AR content according to a common coordinate system with the first client device 102.

[0050] The augmentation system 208 can communicate with the client device 102 to establish a separate or shared AR session. The augmentation system 208 can also be coupled to the messaging server 118 to establish an electronic group communication session (e.g., group chat, instant messaging) for the client device 102 in the shared AR session. The electronic group communication session can be associated with a session identifier provided by the client device 102 to obtain access rights to the electronic group communication session and the shared AR session. In one example, the client device 102 first obtains access rights to the electronic group communication session, and then obtains a session identifier in the electronic group communication session that allows the client device 102 to access the shared AR session. In some examples, the client device 102 is able to access the shared AR session without the assistance of the augmentation system 208 in the application server 114 or communication with the augmentation system 208 in the application server 114.

[0051] The mapping system 210 provides various geo-location functions and supports presentation of map-based media content and messages by the messaging client 104. For example, the mapping system 210 enables display of (e.g., Figure 3316) to indicate the current or past locations of the user's "friends," as well as media content (e.g., a collection of messages including photos and videos) generated by such friends within the context of the map. For example, messages posted by a user to the messaging system 100 from a particular geographic location can be displayed to the particular user's "friends" on the map interface of the messaging client 104 within the context of that particular location on the map. The user can also share his or her location and status information with other users of the messaging system 100 via the messaging client 104 (e.g., using an appropriate status avatar), where the location and status information is similarly displayed to the selected user within the context of the map interface of the messaging client 104.

[0052] The gaming system 212 provides various gaming functions within the context of the messaging client 104. The messaging client 104 provides a gaming interface that provides a list of available games (e.g., web-based games or web-based applications) that can be launched by a user within the context of the messaging client 104 and played with other users of the messaging system 100. The messaging system 100 also enables a particular user to invite other users to participate in playing a particular game by sending an invitation to such other users from the messaging client 104. The messaging client 104 also supports both voice messaging and text messaging within the context of playing games (e.g., chatting), provides leaderboards for games, and also supports providing in-game rewards (e.g., coins and items).

[0053] The external resource system 220 provides an interface for communicating with an external application server 110 to start or access external resources to the messaging client 104. Each external resource (application) server 110 hosts, for example, an application based on a markup language (e.g., HTML5) or a small-scale version of an external application (e.g., a game, utility, payment, or ride-sharing application external to the messaging client 104). The messaging client 104 can start the web-based resource (e.g., application) by accessing an HTML5 file from an external resource (application) server 110 associated with a web-based resource. In some examples, the application hosted by the external resource server 110 is programmed in JavaScript using a software development kit (SDK) provided by the messaging server 118. The SDK includes an API with functions that can be called or activated by a web-based application. In some examples, the messaging server 118 includes a JavaScript library that provides access to certain user data of the messaging client 104 to a given third-party resource. HTML5 is used as an example technology for programming games, but applications and resources programmed based on other technologies can be used.

[0054] In order to integrate the functionality of the SDK into a web-based resource, the SDK is downloaded from the messaging server 118 by the external resource (application) server 110 or received in other ways by the external resource (application) server 110. Once downloaded or received, the SDK is included as part of the application code of the web-based external resource. The code of the web-based resource can then call or activate certain functions of the SDK to integrate the features of the messaging client 104 into the web-based resource.

[0055] The SDK stored on the messaging server 118 effectively provides a bridge between external resources (e.g., a third party or external application 109 or applet and a messaging client 104). This provides users with a seamless experience of communicating with other users on the messaging client 104 while retaining the look and feel of the messaging client 104. In order to bridge the communication between the external resources and the messaging client 104, in some examples, the SDK facilitates the communication between the external resource server 110 and the messaging client 104. In some examples, the WebViewJavaScriptBridge running on the client device 102 establishes two one-way communication channels between the external resources and the messaging client 104. Messages are sent asynchronously via these communication channels between the external resources and the messaging client 104. Each SDK function activation is sent as a message and a callback. Each SDK function is implemented by constructing a unique callback identifier and sending a message with the callback identifier.

[0056] By using the SDK, not all information from the messaging client 104 is shared with the external resource server 110. The SDK limits which information is shared based on the needs of the external resource. In some examples, each external resource server 110 provides an HTML5 file corresponding to a web-based external resource to the messaging server 118. The messaging server 118 can add a visual representation (e.g., box art or other graphics) of the web-based external resource in the messaging client 104. Once the user selects the visual representation or instructs the messaging client 104 to access the features of the web-based external resource through the GUI of the messaging client 104, the messaging client 104 obtains the HTML5 file and instantiates the resources required to access the features of the web-based external resource.

[0057] The messaging client 104 presents a graphical user interface (e.g., a login page or title screen) for the external resource. During, before, or after presenting the login page or title screen, the messaging client 104 determines whether the launched external resource has been previously authorized to access the user data of the messaging client 104. In response to determining that the launched external resource has been previously authorized to access the user data of the messaging client 104, the messaging client 104 presents another graphical user interface of the external resource, which includes the functions and features of the external resource. In response to determining that the launched external resource has not been previously authorized to access the user data of the messaging client 104, after a threshold time period (e.g., 3 seconds) of displaying the login page or title screen of the external resource, the messaging client 104 slides a menu for authorizing the external resource to access the user data (e.g., animating the menu to emerge from the bottom of the screen to the middle or other portion of the screen). The menu identifies the type of user data that the external resource will be authorized to use. In response to receiving the user selection of the accept option, the messaging client 104 adds the external resource to the list of authorized external resources and enables the external resource to access the user data from the messaging client 104. In some examples, the external resource is authorized to access the user data by the messaging client 104 according to the OAuth 2 framework.

[0058] The messaging client 104 controls the type of user data shared with the external resource based on the type of external resource that is authorized. For example, access to a first type of user data (e.g., only a two-dimensional (2D) avatar of a user with or without different avatar characteristics) is provided to an external resource including a full-scale external application (e.g., a third party or external application 109). As another example, access to a second type of user data (e.g., payment information, a two-dimensional avatar of a user, a three-dimensional avatar of a user, and an avatar with various avatar characteristics) is provided to an external resource including a small-scale version of an external application (e.g., a web-based version of a third-party application). Avatar characteristics include different ways to customize the look and feel of an avatar (e.g., different poses, facial features, clothing, etc.).

[0059] The AR body part tracking system 224 receives an image or video depicting a real-world environment (e.g., a real-world foot and / or multiple real-world feet) from the client device 102. The AR body part tracking system 224 is a component that can be accessed by an AR / VR application implemented on the client device 102. The AR / VR application uses an RGB camera to capture images of one or more real-world feet in the real-world environment. The AR / VR application applies trained machine learning techniques to the captured images or videos of the real-world environment to generate multiple dense outputs for each image pixel or frame pixel. The multiple dense outputs can indicate: whether there is a foot or whether the foot is close to the corresponding pixel position, whether the foot is the right foot or the left foot, the distance from the pixel position to the center of the foot, the disparity of the image or frame, and the 3D rotation, translation, scaling, and depth of the foot. The AR / VR application can process multiple dense outputs to identify the most likely center coordinates of the real-world foot and obtain the 3D rotation, translation, scaling, and depth of the most likely center coordinates. The 3D rotation, translation, scale, and depth are then utilized to adjust or modify the 3D rotation, translation, scale, and depth of the AR shoe object using the parallax associated with the image or video included in the plurality of dense outputs.

[0060] The AR shoe object may be selected from a pair of left and right shoe objects based on a classification of the foot provided by a plurality of dense outputs associated with pixels determined to be the most likely center coordinates of the real-world foot. After appropriately modifying the AR shoe object, the AR shoe object is added to an image or video captured by the client device 102 based on a 3D model and depth data of the real-world environment. This results in an illusion that the appearance of the AR shoe object is depicted as existing in the real-world environment. In some implementations, the AR / VR application continuously captures images of the real-world environment in real-time or periodically to continuously or periodically update the AR shoe object to track the movement of the real-world foot associated with the AR shoe object. This enables the user to move in real time in the real world and see the AR shoe object continue to track the user's foot.

[0061] Combine the following Figure 5 An illustrative implementation of an AR body part tracking system 224 is shown and described.

[0062] Data Architecture

[0063] Figure 3 is a schematic diagram illustrating a data structure 300 that may be stored in a database 126 of a messaging server system 108 according to some examples. Although the contents of the database 126 are illustrated as including several tables, it will be appreciated that data may be stored in other types of data structures (e.g., as an object-oriented database).

[0064] Database 126 includes message data stored in message table 302. For any particular message, the message data includes at least message sender data, message receiver (or recipient) data, and payload. Figure 4 Additional details regarding information that may be included in a message and included within the message data stored in message table 302 are described.

[0065] The entity table 306 stores entity data and is linked (e.g., by reference) to the entity graph 308 and profile data 316. The entities whose records are maintained within the entity table 306 may include individuals, corporate entities, organizations, objects, places, events, etc. Regardless of the entity type, any entity about which the messaging server system 108 stores data may be an identified entity. Each entity is provided with a unique identifier as well as an entity type identifier (not shown).

[0066] The entity graph 308 stores information about relationships and associations between entities. Such relationships may be social, professional (e.g., working in a common company or organization), interest-based, or activity-based, by way of example only.

[0067] Profile data 316 stores multiple types of profile data about a particular entity. Based on the privacy settings specified by the particular entity, profile data 316 can be selectively used and presented to other users of the messaging system 100. In the case where the entity is a person, profile data 316 includes, for example, a user name, phone number, address, settings (e.g., notification and privacy settings), and an avatar representation (or a collection of such avatar representations) selected by the user. A particular user can then selectively include one or more of these avatar representations within the content of messages transmitted via the messaging system 100 and on a map interface displayed to other users by the messaging client 104. The collection of avatar representations can include a "status avatar" that presents a graphical representation of a status or activity that a user may choose to convey at a particular time.

[0068] Where the entity is a group, profile data 316 for the group may similarly include one or more avatar representations associated with the group, in addition to the group name, members, and various settings for the relevant group (eg, notifications).

[0069] The database 126 also stores enhancement data, such as overlays or filters, in an enhancement table 310. The enhancement data is associated with and applied to videos (data for videos is stored in the video table 304) and images (data for images is stored in the image table 312).

[0070] The database 126 may also store data related to individual and shared AR sessions. The data may include data transmitted between an AR session client controller of a first client device 102 and another AR session client controller of a second client device 102, and data transmitted between an AR session client controller and an augmented system 208. The data may include data for establishing a common coordinate system for a shared AR scene, transformations between devices, session identifiers, images depicting the body, skeletal joint positions, wrist joint positions, feet, and the like.

[0071] In one example, a filter is an overlay displayed over an image or video during presentation to a recipient user. The filter can be of various types, including a user-selected filter from a set of filters presented to a sending user by the messaging client 104 when the sending user is composing a message. Other types of filters include geolocation filters (also referred to as geofilters), which can be presented to a sending user based on geographic location. For example, a geolocation filter specific to a nearby or specific location can be presented by the messaging client 104 within a user interface based on geographic location information determined by a global positioning system (GPS) unit of the client device 102.

[0072] Another type of filter is a data filter that can be selectively presented to the sending user by the messaging client 104 based on other input or information collected during the message creation process by the client device 102. Examples of data filters include the current temperature at a particular location, the current speed the sending user is traveling, the battery life of the client device 102, or the current time.

[0073] Other augmented data that may be stored in the image table 312 include augmented reality content items (eg, corresponding to an applied augmented reality experience). Augmented reality content items or augmented reality items may be real-time special effects and sounds that may be added to an image or video.

[0074] As described above, augmented data includes augmented reality content items, overlays, image transformations, AR images, and similar items involving modifications that can be applied to image data (e.g., videos or images). This includes real-time modifications that modify the image when it is captured using a device sensor (e.g., one or more cameras) of the client device 102 and then display the image with the modifications on the screen of the client device 102. This also includes modifications to stored content (e.g., video clips in a gallery that can be modified). For example, in a client device 102 that can access multiple augmented reality content items, a user can use a single video clip with multiple augmented reality content items to see how different augmented reality content items will modify the stored clips. For example, by selecting different augmented reality content items for the content, multiple augmented reality content items that apply different pseudo-random movement models can be applied to the same content. Similarly, real-time video capture can be used with the modifications shown to show how the video image currently captured by the sensor of the client device 102 will modify the captured data. Such data may be displayed only on the screen and not stored in memory, or the content captured by the device sensors may be recorded and stored in memory with or without modification (or both). In some systems, a preview feature may simultaneously show how different augmented reality content items will look in different windows in the display. This may, for example, enable viewing of multiple windows with different pseudo-random animations on the display at the same time.

[0075] Thus, data and various systems using augmented reality content items or other such transformation systems using the data to modify content may involve: detection of objects (e.g., faces, hands, bodies, cats, dogs, surfaces, objects, etc.) in video frames; tracking such objects as they leave, enter, and move around the field of view; and modifying or transforming such objects as they are tracked. In various examples, different methods for implementing such transformations may be used. Some examples may involve: generating a three-dimensional mesh model of one or more objects, and using transformations and animated textures of the models within a video to implement the transformations. In other examples, tracking of points on an object may be used to place an image or texture (which may be two-dimensional or three-dimensional) at the tracked location. In yet another example, neural network analysis of video frames may be used to place an image, model, or texture in content (e.g., an image or frame of a video). Thus, augmented reality content items involve both: images, models, and textures used to create transformations in the content, and additional modeling and analysis information required to implement such transformations using object detection, tracking, and placement.

[0076] Real-time video processing can be performed using any type of video data (e.g., video streams, video files, etc.) stored in the memory of any type of computerized system. For example, a user can load a video file and save it in the memory of the device, or a sensor of the device can be used to generate a video stream. In addition, computer animation models can be used to process any object, such as human faces and body parts, animals, or inanimate objects (e.g., chairs, cars, or other objects).

[0077] In some examples, when a specific modification is selected together with the content to be transformed, the elements to be transformed are identified by a computing device, and then if the elements are present in the frame of the video, they are detected and tracked. The elements of the object are modified according to the modification request, thereby transforming the frame of the video stream. For different types of transformations, the transformation of the frame of the video stream can be performed by different methods. For example, for a frame transformation that mainly involves changing the form of the elements of the object, the feature points of each element of the object are calculated (for example, using an active shape model (Active Shape Model, ASM) or other known methods). Then, a grid based on the feature points is generated for each element of at least one element of the object. The grid is used for the subsequent stage of tracking the elements of the object in the video stream. During the tracking process, the grid mentioned for each element is aligned with the position of each element. Then, additional points are generated on the grid. A set of first points is generated for each element based on the modification request, and a set of second points is generated for each element based on the set of first points and the modification request. Then, the frame of the video stream can be transformed by modifying the elements of the object based on the set of first points, the set of second points and the grid. In such an approach, the background of the modified object may also be changed or distorted by tracking and modifying the background.

[0078] In some examples, a transformation that changes some areas of an object using elements of an object can be performed by calculating characteristic points of each element of the object and generating a grid based on the calculated characteristic points. Points are generated on the grid, and then various areas are generated based on the points. The elements of the object are then tracked by aligning the area for each element with the position for each element of at least one element, and the properties of the area can be modified based on the modification request, thereby transforming the frame of the video stream. Depending on the specific modification request, the properties of the mentioned area can be transformed in different ways. Such modifications can involve changing the color of the area; removing at least some parts of the area from the frame of the video stream; including one or more new objects into the area based on the modification request; and modifying or distorting the elements of the area or object. In various examples, any combination of such modifications or other similar modifications can be used. For certain models to be animated, some characteristic points can be selected as control points for the entire state space to be used to determine options for model animation.

[0079] In some examples of computer animation models for transforming image data using face detection, faces are detected on an image using a specific face detection algorithm (e.g., Viola-Jones). An active shape model (ASM) algorithm is then applied to the face region of the image to detect facial feature reference points.

[0080] Other methods and algorithms suitable for face detection can be used. For example, in some examples, landmarks are used to locate features, and the landmarks represent distinguishable points that are present in most of the images considered. For example, for facial landmarks, the location of the left pupil can be used. If the initial landmarks are not identifiable (for example, when a person wears an eye patch), secondary landmarks can be used. Such a landmark identification process can be used for any such object. In some examples, a set of landmarks forms a shape. The coordinates of the points in the shape can be used to represent the shape as a vector. A similarity transformation (which allows translation, scaling, and rotation) that minimizes the average Euclidean distance between the shape points is used to align one shape with another shape. The mean shape is the average value of the aligned training shapes.

[0081] In some examples, the landmark search begins with an average shape that aligns with the location and size of the face determined by a global face detector. Such a search then repeats the steps of proposing tentative shapes by template matching the image texture around each point to adjust the location of the shape points, and then conforming the tentative shapes to the global shape model until convergence occurs. In some systems, template matching alone is unreliable, and the shape model pools the results of weak template matches to form a stronger overall classifier. The entire search is repeated at each level in the image pyramid from coarse to fine resolution.

[0082] The transformation system can capture an image or video stream on a client device (e.g., client device 102) and perform complex image manipulations locally on the client device 102 while maintaining an appropriate user experience, computation time, and power consumption. Complex image manipulations can include size and shape changes, emotion transitions (e.g., changing a face from a frown to a smile), state transitions (e.g., aging a subject, reducing apparent age, changing gender), style transitions, application of graphical elements, and any other suitable image or video manipulations enabled by a convolutional neural network that has been configured to execute efficiently on the client device 102.

[0083] In some examples, a computer animation model for transforming image data can be used by a system in which a user can capture an image or video stream of the user (e.g., a selfie) using a client device 102 having a neural network, where the neural network operates as part of a messaging client 104 operating on the client device 102. A transformation system operating within the messaging client 104 determines the presence of a face within the image or video stream and provides a modification icon associated with the computer animation model for transforming the image data, or the computer animation model can exist in association with an interface described herein. The modification icon includes the following changes, which can be the basis for modifying the user's face within the image or video stream as part of the modification operation. Once the modification icon is selected, the transformation system initiates a process of transforming the user's image to reflect the selected modification icon (e.g., generating a smiling face for the user). Once the image or video stream is captured and the specified modification is selected, the modified image or video stream can be presented in a graphical user interface displayed on the client device 102. The transformation system can implement a complex convolutional neural network on a portion of the image or video stream to generate and apply the selected modification. That is, a user can capture an image or video stream, and once a modification icon is selected, the modified result can be presented to the user in real time or near real time. In addition, the modification can be persistent while the video stream is being captured and the selected modification icon remains toggled. A machine learning neural network can be used to implement such modification.

[0084] The graphical user interface presenting the modifications performed by the transformation system can provide additional interactive options to the user. Such options can be based on the interface used to initiate the selection of a particular computer animation model and content capture (e.g., initiated from a content creator user interface). In various examples, the modifications can be persistent after the modification icon is initially selected. The user can turn the modification on or off by tapping or otherwise selecting the face being modified by the transformation system, and store it for later viewing or browsing to other areas of the imaging application. In the case where multiple faces are modified by the transformation system, the user can globally switch the modification on or off by tapping or selecting a single face modified and displayed within the graphical user interface. In some examples, each face in a group of multiple faces can be modified individually, or such modifications can be individually switched by tapping or selecting a single face or a series of individual faces displayed within the graphical user interface.

[0085] The story table 314 stores data related to a collection of messages and associated images, videos, or audio data that are compiled into a collection (e.g., a story or gallery). The creation of a particular collection can be initiated by a particular user (e.g., each user whose record is maintained in the entity table 306). A user can create a "personal story" in the form of a collection of content that has been created and sent / broadcasted by the user. To this end, the user interface of the messaging client 104 may include a user-selectable icon to enable the sending user to add specific content to his or her personal story.

[0086] A collection may also constitute a "live story," which is a collection of content from multiple users created manually, automatically, or using a combination of manual and automatic techniques. For example, a "live story" may constitute a curated stream of user-submitted content from various locations and events. Users whose client devices have location services enabled and who are at a common location event at a particular time may be presented with the option of contributing content to a particular live story, for example, via the user interface of the messaging client 104. Live stories may be identified to the user by the messaging client 104 based on his or her location. The end result is a "live story" told from a community perspective.

[0087] Another type of content collection is called a "location story," which enables users whose client devices 102 are located in a particular geographic location (e.g., on a college or university campus) to contribute to a particular collection. In some examples, contributions to location stories may require secondary authentication to verify that the end user belongs to a particular organization or other entity (e.g., is a student on a university campus).

[0088] As mentioned above, the video table 304 stores video data, which in one example is associated with a message whose record is maintained within the message table 302. Similarly, the image table 312 stores image data associated with a message whose message data is stored in the entity table 306. The entity table 306 can associate various enhancements from the enhancement table 310 with the various images and videos stored in the image table 312 and the video table 304.

[0089] The data structure 300 may also store training data for training one or more machine learning techniques (models) to generate multiple dense outputs for each pixel in a training image or video included in the training data. The training data may include multiple training images and multiple truth centers associated with training real-world feet depicted in the multiple training images, respectively. The training data may also include the true 3D rotation, translation, and scaling of each training real-world foot depicted in each training image. In an example, the training data is used to train a machine learning technique to estimate multiple training dense outputs of the training real-world feet depicted in each training image. The truth center is then used to obtain one of the multiple training dense outputs for calculating one or more losses. The losses may include losses for 3D rotation, translation, and scaling; losses for the estimated center; and / or losses for the distance between the center of the foot and the pixel.

[0090] Once trained, the machine learning technique can receive a new image or video and can estimate multiple dense outputs for each pixel in the newly received image or video. The multiple dense outputs are then processed by one or more task decoders to obtain the 3D rotation, translation, and scale of one or more real-world feet depicted in the newly received image or video. The 3D rotation, translation, and scale of one or more real-world feet depicted in the newly received image or video can then be used to modify the 3D rotation, translation, and scale (and / or depth) of one or more AR shoe objects (e.g., meshes associated with the AR shoe objects). The modified AR shoe object is then placed within the newly received image or video.

[0091] Data communication architecture

[0092] Figure 4 is a schematic diagram illustrating the structure of a message 400 according to some examples, the message 400 being generated by a messaging client 104 for transmission to another messaging client 104 or a messaging server 118. The content of a particular message 400 is used to populate a message table 302 stored in a database 126 accessible by a messaging server 118. Similarly, the content of the message 400 is stored in memory as "in-transit" or "in-flight" data of a client device 102 or application server 114. The message 400 is shown to include the following example components:

[0093] Message identifier 402 : a unique identifier that identifies the message 400 .

[0094] Message text payload 404 : Text to be generated by a user via the user interface of the client device 102 and included in the message 400 .

[0095] Message image payload 406 : Image data captured by a camera component of the client device 102 or retrieved from a memory component of the client device 102 and included in the message 400 . Image data for a sent or received message 400 may be stored in the image table 312 .

[0096] Message video payload 408 : Video data captured by the camera component or retrieved from the memory component of the client device 102 and included in the message 400 . The video data for a message 400 that has been sent or received may be stored in the video table 304 .

[0097] Message audio payload 410 : audio data captured by a microphone or retrieved from a memory component of the client device 102 and included in the message 400 .

[0098] Message enhancement data 412: Enhancement data (e.g., filters, stickers, or other annotations or enhancements) representing enhancements to be applied to the message image payload 406, message video payload 408, or message audio payload 410 of the message 400. The enhancement data 412 for a sent or received message 400 may be stored in the enhancement table 310.

[0099] Message duration parameter 414: A parameter value indicating the amount of time in seconds that the content of a message (eg, message image payload 406, message video payload 408, message audio payload 410) will be presented to or made accessible to a user via messaging client 104.

[0100] Message geolocation parameters 416: Geolocation data (e.g., latitude and longitude coordinates) associated with the content payload of the message. Multiple message geolocation parameter 416 values ​​may be included in the payload, each of which is associated with a content item included in the content (e.g., a specific image within a message image payload 406, or a specific video within a message video payload 408).

[0101] Message story identifier 418: An identifier value that identifies one or more content collections (e.g., a "story" identified in story table 314) associated with a particular content item in message image payload 406 of message 400. For example, an identifier value may be used to associate multiple images within message image payload 406 with each of multiple content collections.

[0102] Message tags 420: Each message 400 may be tagged with a plurality of tags, each of which indicates the subject of the content included in the message payload. For example, where a particular image included in the message image payload 406 depicts an animal (e.g., a lion), a tag value indicating the relevant animal may be included within the message tags 420. The tag values ​​may be manually generated based on user input, or may be automatically generated using, for example, image recognition.

[0103] • Message sender identifier 422: An identifier (eg, a messaging system identifier, an email address, or a device identifier) ​​that indicates the user of the client device 102 on which the message 400 was generated and from which the message 400 was sent.

[0104] • Message recipient identifier 424: An identifier (eg, a messaging system identifier, an email address, or a device identifier) ​​that indicates the user of the client device 102 to which the message 400 is addressed.

[0105] The content (e.g., value) of each component of message 400 may be a pointer to a location in a table in which the content data value is stored. For example, the image value in message image payload 406 may be a pointer to a location in image table 312 (or the address of a location in image table 312). Similarly, the value in message video payload 408 may point to data stored in video table 304, the value stored in message enhancement data 412 may point to data stored in enhancement table 310, the value stored in message story identifier 418 may point to data stored in story table 314, and the values ​​stored in message sender identifier 422 and message recipient identifier 424 may point to user records stored in entity table 306.

[0106] AR Body Part Tracking System

[0107] Figure 5is a block diagram illustrating an example AR body part tracking system 224 according to an illustrative example. The AR body part tracking system 224 includes a set 510 of components that operate on a set 501 of input data (e.g., a monocular image (or video or one or more frames of video)) depicting a real-world foot (or multiple real-world feet). The AR body part tracking system 224 includes a machine learning technique module 512, a body part center decoding module 514, an image parallax module 517, a 3D rotation, translation and scaling module 516, an AR object module 518, a left and right body part classification module 519, and an image display module 520. All or some of the components of the AR body part tracking system 224 may be implemented by a server, in which case the monocular image 501 depicting the real-world foot is provided to the server by the client device 102. In some cases, some or all of the components of the AR body part tracking system 224 may be implemented by the client device 102 (e.g., via a web browser application or other application running the AR body part tracking system 224 locally or remotely on the client device 102), or may be distributed across a collection of client devices 102. In some cases, all or some of the components may be integrated into a single component (such as the machine learning technique module 512).

[0108] Although the disclosed examples are discussed with respect to real-world feet, similar techniques can be applied to tracking any other type of real-world body part (e.g., neck, shoulders, arms, legs, head, etc.).

[0109] The machine learning techniques module 512 receives a monocular image (or video) 501 depicting a real-world foot. The image or video may be received as part of a live video stream, a previously captured video stream, or a new image captured by a camera of the client device 102. The machine learning techniques module 512 applies one or more machine learning techniques to generate multiple dense outputs for each pixel in the image or video. For example, the machine learning techniques module 512 may simultaneously generate and output multiple dense outputs that may be processed by one or more task-specific decoders to add an AR shoe object to the image or video 501 depicting a real-world foot.

[0110] In the example, each pixel in the image 501 depicting a real-world foot is associated with a plurality of dense outputs generated by the machine learning technique module 512. That is, a first pixel in the image is associated with a first plurality of dense outputs, and a second pixel in the same image is associated with a second plurality of dense outputs. Each of the plurality of dense outputs (e.g., the first plurality of dense outputs and the second plurality of dense outputs) includes a plurality of values.

[0111] For example, a first dense output in a plurality of dense outputs includes a disk of pixels (e.g., white pixels) associated with the center of a real-world foot. That is, the first dense output in a plurality of dense outputs is generated by the machine learning technology module 512 as a representation of the estimated center of a real-world foot depicted in the image 501 of a real-world foot. A second dense output in a plurality of dense outputs includes the distance between each pixel in the pixel disk and the center of the real-world foot. A third dense output in a plurality of dense outputs includes a left or right classification. That is, the machine learning technology module 512 estimates whether a pixel associated with a plurality of dense outputs corresponds to a left foot or a right foot, and stores the indication as a binary value in a third dense output in a plurality of dense outputs. A fourth dense output in a plurality of dense outputs includes a 3D rotation of an AR shoe object relative to a 3D rotation of a real-world foot associated with a pixel corresponding to the plurality of dense outputs. A fifth dense output in a plurality of dense outputs includes a 2D translation of a real-world foot associated with a pixel corresponding to the plurality of dense outputs. A sixth dense output in a plurality of dense outputs includes a parallax of an image or video 501 depicting a real-world foot. The disparity may be the same for all pixels in the image, and the disparity may be a single channel image with allowed values ​​greater than 0.

[0112] The machine learning technology module 512 provides multiple dense outputs to one or more task-specific decoders. For example, the machine learning technology module 512 provides multiple dense outputs to the body part center decoding module 514, the image disparity module 517, the 3D rotation, translation and scaling module 516, and the left and right body part classification module 519.

[0113] During training, the machine learning technique module 512 receives a given training image (e.g., a monocular image or video depicting a real-world foot or multiple real-world feet or other body parts) from the training image data stored in the data structure 300. The training image can be generated by obtaining one or more images depicting a real-world foot or other body parts (neck, shoulder, torso, etc.). The one or more images are processed by a perspective N-point (PNP) process or algorithm to generate a 3D rotation, translation, zoom (and / or depth) of each real-world foot depicted in the one or more images. The one or more images are also associated with a true value center, which identifies the true value coordinates of the center of each real-world foot in the one or more images. The one or more images are also associated with a disparity around the center of each real-world foot in the real-world feet. The one or more images are also associated with a classification indicating whether each real-world foot in the real-world feet is a left foot or a right foot.

[0114] In some cases, the training images are generated by applying data augmentation techniques to a plurality of training images to generate additional training data. The data augmentation techniques may include at least one of: cropping, flipping, rotating, modifying color, or applying blur to a training real-world body part (e.g., a foot) depicted in a given one of the plurality of training images. For example, a transformation (corresponding to a given data augmentation technique) may be applied to a given training image to generate a new training image. The original training image and the transformed training image are paired, and an indication of the transformation used is stored.

[0115] The training images may include bounding boxes, 8×2 foot keypoints, category identifiers (e.g., indicating whether the foot is a left foot, a right foot, or footwear, such as a shoe without a foot), PNP results (rotation, translation intrinsic parameters), and additional metadata. The training images may be cropped using an agnostic cropping process or an adaptive cropping process. This results in different cropping strategies that enable the machine learning technique module 512 to operate in different use cases. The image aspect ratio is approximately preserved to avoid image distortion.

[0116] The agnostic cropping process involves: drawing a bounding box around the entire image and expanding the bounding box until the bounding box has a configured aspect ratio. After the bounding box is expanded, the area within the bounding box is reduced or enlarged to the specified image resolution. The adaptive cropping process selects a bounding box for the shoe within the image and scales the bounding box to achieve a specified aspect ratio. The bounding box is then enlarged or reduced to match the specified image resolution. In some cases, the cropping processes are blended such that a training image is generated by applying two different cropping processes to a foot depicted in an image. In some cases, the cropping processes are blended such that one training image is generated by applying a first cropping process to a foot depicted in a training image, and another training image is generated by applying a second cropping process to a foot depicted in another training image.

[0117] During training, the machine learning technique module 512 applies one or more machine learning techniques to a given training image. The machine learning technique module 512 extracts one or more features from a given training image to estimate multiple training dense outputs (e.g., dense activation maps) for a given training image. The estimated multiple training dense outputs are then processed by one or more task-specific decoders. For example, the estimated multiple training dense outputs are sampled at the center of a real-world body part (e.g., foot) using the true center coordinates associated with the training image. The true center coordinates are used to obtain 3D translation, rotation, scaling (and / or depth) from the estimated multiple training dense outputs associated with the training image. 3D rotation can be calculated using six channels corresponding to two 3D direction vectors stored in the estimated multiple training dense outputs.

[0118] can be obtained from the 2D coordinate x o ,y o The corresponding two channels calculate the translation, 2D coordinate x o ,y o represents the pixel coordinate offset relative to the center of the bounding box corresponding to the real-world foot. The 2D center is added to the 2D center of the real-world foot (x, y coordinates). The 3D translation (X, Y, and Z) can then be calculated based on the following back-projection model represented by Equation 1:

[0119] X=Z abs (xc x )

[0120] Y=Z abs (yc y )

[0121] Z=Z abs *f Equation 1

[0122] Where X, Y, and Z represent 3D translation, x and y represent the 2D position of the center of the foot in the real world, and Z abs is the absolute depth provided in logarithmic form by the estimated multiple training dense outputs (trained based on absolute depth or logarithm of absolute depth) (e.g., 1 / disparity in Equation 2 below), f is the focal length of the camera, c x and c y represents the center of the camera in the image. In one example, Z is calculated according to the following equation 2 abs :

[0123] Z abs =1 / e log (Parallax) Equation 2

[0124] The predicted and calculated 3D translation, rotation, scale (and / or depth) are used together with the camera intrinsic parameters to project the mesh of the AR shoe into the image using perspective projection, which produces N verts x 2 grid object.

[0125] The machine learning technique module 512 obtains known or predetermined truth information of the real-world body part (e.g., foot) depicted in the training image from the training data. For example, the machine learning technique module 512 obtains the truth 3D translation, rotation, scale (and / or depth); the truth disparity, the truth center coordinates, the truth center offset, the truth left-right classification, and / or the truth mesh reprojection. The machine learning technique module 512 calculates one or more losses by comparing one or more of the multiple training dense outputs with the corresponding truth real-world information (calculating the deviation between the two).

[0126] For example, the machine learning technique module 512 calculates the deviation between the estimated 3D rotation, translation, and scale of the training first real-world foot and the true 3D rotation, translation, and scale of the training first real-world foot associated with the first training image. For example, the L1 loss (parameter loss) between the predicted translation, rotation, and mesh output of each foot object is calculated.

[0127] As another example, the machine learning technique module 512 calculates the deviation between the estimated pixel corresponding to the center of the first real-world body part (e.g., foot) and the true center pixel coordinate. As another example, a window around the center position of each body part is sampled, and a mask is applied to mask the sampled area outside the window. The true absolute depth is expanded to match the shape of the sampled area, and the difference between the expanded true absolute depth and the window around the center position is minimized in the log-disparity space to train the machine learning technique module 512 to estimate the disparity provided by the plurality of training dense outputs.

[0128] As some examples, the machine learning technique module 512 calculates the deviation between the estimated left and right classification of each body part (e.g., foot) and the true classification associated with the first training image. That is, the machine learning technique module 512 can predict a single channel activation map for the left / right classification. The output sigmoid is calculated and sampled at the foot center location using the true center coordinate location. A binary cross entropy loss is used to train these sampled centers, where object 1 indicates the right foot and object 0 indicates the left foot.

[0129] Based on the difference threshold of the comparison (or deviation) of each loss or loss subset in the loss, the machine learning technique module 512 updates one or more coefficients or parameters, and obtains one or more additional training images of the real-world environment depicting one or more real-world feet. After a specified number of epochs or after a specified number of batches of training images have been processed and / or when the difference threshold (or deviation) (calculated based on the difference or deviation between the estimated multiple dense outputs and the corresponding true value information) reaches a specified value, the machine learning technique module 512 completes training, and the parameters and coefficients of the machine learning technique module 512 are stored as a trained machine learning technique.

[0130] In some examples, after training, the machine learning technique module 512 receives a monocular input image 501 depicting a real-world foot as a single RGB image or a video of multiple images from the client device 102. The machine learning technique module 512 applies the trained machine learning technique to the received input image to generate a plurality of dense outputs, each dense output being associated with a corresponding pixel in a plurality of pixels in the image.

[0131] In some examples, the plurality of dense outputs are provided to the first task-specific decoder. Specifically, the plurality of dense outputs are provided to the body part center decoding module 514. The body part center decoding module 514 processes the plurality of dense outputs to identify a center coordinate representing the center of each real-world foot depicted in the image or video received from the client device 102. For example, Fig. 6A As shown, the plurality of dense outputs include an image 600 including a white disk 610. The white disk 610 represents the estimated center of the real-world foot depicted in the image or video provided by the machine learning technique module 512. The body part center decoding module 514 scores the pixels in the white disk 610 to represent the likelihood that each pixel corresponds to the center of the real-world foot. In one example, the body part center decoding module 514 scores the pixels based on the whiteness level of the pixel value. That is, the whitest pixel in the white disk 610 can be associated with the highest score. Any other color disk can be used in a similar manner.

[0132] The body part center decoding module 514 selects a given one of the plurality of center positions based on the score of each of the plurality of center positions. For example, the body part center decoding module 514 selects the pixel with the whitest value. The body part center decoding module 514 then obtains a plurality of distances between each of the plurality of center positions and the center of a first real-world body part (e.g., a foot) from the plurality of dense outputs. For example, the plurality of dense outputs include an image 601, which represents a plurality of distances 611 between each pixel in a white disk 610 and an estimated center of a real-world foot depicted in the image. The body part center decoding module 514 identifies the coordinates of the selected pixel in the image 601, and obtains a distance associated with the selected pixel in the plurality of distances 611. The distance represents the distance between the selected pixel with the whitest value and the estimated center of the real-world foot depicted in the image.

[0133] The body part center decoding module 514 calculates the coordinates of the center pixel based on the offset between the distance between the selected pixel with the whitest value and the estimated center of the real-world foot depicted in the image. The body part center decoding module 514 provides the coordinates of the center pixel to the 3D rotation, translation, and scaling module 516. The 3D rotation, translation, and scaling module 516 implements a task decoder that accesses multiple dense outputs calculated for the center pixel coordinates to obtain the 3D rotation, translation, and scaling estimated for the center pixel coordinates.

[0134] like Figure 6CAs shown, the 3D rotation, translation, and scaling module 516 can provide a 3D rotation 630 for presenting the corresponding AR shoe object of the foot depicted in the image 604. In the example, the 3D rotation, translation, and scaling module 516 obtains the disparity from the multiple dense outputs from the image disparity module 517 to calculate the 3D translation. Specifically, the 3D rotation, translation, and scaling module 516 uses the forward projection model 620 (mapping 3D coordinates to 2D pixel coordinates) and / or the back projection model 622 (mapping 2D pixel coordinates to 3D coordinates) to calculate the 3D translation 603. As an example, the 3D rotation, translation, and scaling module 516 applies the coordinates (x, y) of the center pixel and the estimated disparity (D) to Equations 1 and 2 (given by Figure 6B The forward projection model 620 and the back projection model 622 shown in FIG. 6 are used to calculate the 3D translation. Figure 6C As shown in image 605 , the 2D pixel coordinate 632 of the center pixel is used to calculate the corresponding 3D coordinate 634 . The 3D coordinate is used to anchor the AR shoe to the real-world foot depicted in image 605 .

[0135] When processing video, the body part center decoding module 514 can apply various smoothing operations to the detected center pixel coordinates. For example, the body part center decoding module 514 can determine whether the center detected for the current frame matches the center detected for the previous frame. The body part center decoding module 514 can also obtain the previously calculated center coordinates, and apply hysteresis filtering based on their scores to select the center of the subsequent frame. In this way, the center of the subsequent frame may not necessarily be the pixel with the whitest value, but can also depend on the hysteresis filtering indicating the smoothness between the current center and the previous center. The body part center decoding module 514 can also apply 1 Euro filtering to the center coordinates. The body part center decoding module 514 can also apply momentum smoothing to the center pixel coordinates. In this case, the prediction (multiple dense outputs) calculated for the previous frame is stored and used for the subsequent frame to provide smoothing operations. The prediction from the previous frame can be combined with the multiple dense output predictions generated for the current frame in a weighted manner.

[0136] In a similar manner, the 3D rotation, translation, and scaling module 516 can also apply various smoothing operations (e.g., 1-Euro smoothing) to the 3D rotation, translation, and scaling calculated for a new frame relative to the 3D rotation, translation, and scaling calculated for a previous frame (e.g., an adjacent previous frame or a frame received within a threshold time period before the current frame).

[0137] In an example, the body part center decoding module 514 can apply 1 euro filtering to the center coordinates. In this case, adaptive weights are used to combine predictions from previous frames with multiple dense output predictions generated for the current frame. That is, when the amount to be tracked has a higher speed between frames, the weight can be reduced to a relatively low value, which reduces lag. If the speed is lower between frames, the weight can be increased to reduce jitter. Such 1 euro filtering can be applied individually or jointly to any of multiple dense outputs or calculation results derived from multiple dense outputs (e.g., 2D center prediction, X, Y world coordinate prediction, Z world coordinate prediction, and rotation prediction).

[0138] Return to reference Figure 5 , the 3D rotation, translation and scaling module 516 provides the calculated 3D rotation, translation and scaling to the AR object module 518. The body part center decoding module 514 provides the center pixel coordinates to the left and right body part classification module 519. The left and right body part classification module 519 implements a task decoder that accesses multiple dense outputs associated with an image or video to obtain a classification of the center pixel coordinates. For example, the multiple dense outputs of the center pixel coordinates may store a value indicating that the pixel is classified as a left foot. Alternatively, the multiple dense outputs of the center pixel coordinates may store a value indicating that the pixel is classified as a right foot. The left and right body part classification module 519 provides the AR object module 518 with a classification indicating whether the center pixel coordinate is a left foot or a right foot.

[0139] The AR object module 518 selects an AR object (e.g., an AR shoe object) based on the classification. For example, if the classification indicates that the center pixel coordinates are the left foot, the AR object module 518 selects the left shoe object. For example, if the classification indicates that the center pixel coordinates are the right foot, the AR object module 518 selects the right shoe object. The AR object module 518 modifies the 3D rotation, translation, and scaling of the selected AR shoe object. The AR object module 518 provides the modified AR shoe object to the image display module 520. The image display module 520 adds the modified AR shoe object to the image or video based on the 3D translation and scaling of the AR shoe object. In this way, the image display module 520 centers the AR shoe object on the real-world foot depicted in the image or video, which provides the illusion that the AR shoe object is part of the real-world environment depicted in the image or video.

[0140] Figure 7An illustrative user interface 700 is shown that demonstrates training of the machine learning technique module 512. For example, the machine learning technique module 512 may receive a training image depicting a real-world foot 710. The machine learning technique module 512 also receives ground truth keypoints 720 representing the real-world foot 710. The ground truth keypoints 720 include a point in the center representing the center of the real-world foot 710. The ground truth keypoints 720 are processed using PNP to obtain ground truth rotation and translation parameters of the real-world foot 710.

[0141] The machine learning technology module 512 processes the training image and generates a plurality of dense outputs. The plurality of dense outputs are processed to calculate an estimate of the 3D rotation, translation, and scale of the real-world foot 710. The estimate of the 3D rotation, translation, and scale of the real-world foot 710 is represented by a vertex 730. The estimate of the 3D rotation, translation, and scale of the real-world foot 710 is compared with the true value key point 720 to update the parameters of the machine learning technology module 512. In the example, the estimate of the 3D rotation, translation, and scale of the real-world foot 710 is used to generate a mesh object 740 representing an AR shoe object. The 3D rotation, translation, and scale of the mesh object 740 can be modified to overlay the AR shoe object on the image depicting the real-world foot 710. In one example, the first mesh object 740 can be modified based on the estimated 3D rotation, translation, and scale, and the second mesh object can be modified based on the true value 3D rotation, translation, and scale. The difference or deviation between the first mesh object and the second mesh object can be calculated and used to update the parameters of the machine learning technology module 512.

[0142] In some examples, the machine learning technique module 512 is trained based on an equivariance loss. In such a case, a training image is received that is paired with a transformed version of a training image depicting one or more real-world feet. That is, an augmentation technique (transformation) can be applied to the training image to generate a transformed version of the training image. The machine learning technique module 512 can first be applied to the training image to generate a first set of multiple dense outputs. The first set of multiple dense outputs (as described above) is processed to predict the 3D rotation, translation, and scale of one or more real-world feet and present a first mesh of an AR shoe object. Figure 8 As shown, a first mesh 810 of an AR shoe object is displayed in image 800. Subsequently, the machine learning technique module 512 can be applied to the transformed version of the training image to generate a second set of multiple dense outputs. The second set of multiple dense outputs is processed (as described above) to predict the 3D rotation, translation, and scale of one or more real-world feet and present a second mesh of the AR shoe object. Figure 8 As shown, a second mesh 820 of the AR shoe object is displayed in the image 801 .

[0143] After generating image 801, the AR body part tracking system 224 reapplies or reverses the enhancement techniques (e.g., transformations including any number of modifications such as rotation, blur, color change, etc.) that have been applied to the training image. For example, the AR body part tracking system 224 reapplies the inverse or opposite transformation of the transformation originally applied to the training image to image 801 (generated using the transformed version of the training image), or reverses the transformation originally applied to the training image. For example, the training image may be rotated 90 degrees clockwise to generate the transformed version of the training image. In this case, the AR body part tracking system 224 rotates the image 801 generated using the transformed version of the training image 90 degrees counterclockwise to reverse the transformation originally applied.

[0144] The AR body part tracking system 224 then aligns the image 800 with the first mesh 810 of the AR shoe object with the mesh that appears in the transformed training image after applying the inverse transform. This produces an image 802 in which two meshes 832 and 830 are presented. The deviation between the two meshes 832 and 830 is calculated and used to update the parameters of the machine learning technique module 512.

[0145] like Fig. 9 As shown, the AR body part tracking system 224 displays a graphical user interface 900. The graphical user interface 900 depicts an image or video of a real-world foot. The AR body part tracking system 224 can apply the machine learning technology module 512 to the received image to generate or estimate a plurality of dense outputs, each dense output being associated with a corresponding pixel in a plurality of pixels in the image. The AR body part tracking system 224 applies one or more task-specific decoders to the plurality of dense outputs to calculate the center of the real-world foot, the left / right classification, and the 3D rotation, translation, scaling, and / or depth of the real-world foot. The AR body part tracking system 224 receives input for browsing a menu 960 of different AR shoe objects.

[0146] In response to receiving input selecting a given AR shoe object 952, the AR body part tracking system 224 accesses the AR shoe object 952 to obtain a left copy and a right copy of the AR shoe object 952. The AR body part tracking system 224 selects a left copy or a right copy of the AR shoe object 952 based on a left / right classification of a center pixel determined by the AR body part tracking system 224 according to a plurality of dense outputs. The AR body part tracking system 224 modifies the 3D rotation, scale, translation, and depth of the selected AR shoe object 952. The AR body part tracking system 224 then presents the modified AR shoe object 950 on an image or video (e.g., real-time video). Based on the center determined according to the plurality of dense outputs, the AR shoe object 950 is centered on the real-world foot, and the AR shoe object 950 continuously moves and adaptively modifies the 3D rotation, scale, translation, and depth as the real-world foot moves in the video.

[0147] Fig.10 1000 is a flowchart of a process 1000 according to some examples. Although the flowchart may describe the operations as sequential processes, many of these operations may be performed in parallel or simultaneously. In addition, the order of the operations may be rearranged. When the operations of the process are completed, the process is terminated. The process may correspond to a method, a process, etc. The steps of a method may be performed in whole or in part, may be performed in combination with some or all of the steps in other methods, and may be performed by any number of different systems or any part thereof (e.g., a processor included in any system).

[0148] At operation 1001 , the client device 102 receives an image including a depiction of a first real-world body part (eg, a foot) in a real-world environment, as described above.

[0149] At operation 1002 , the client device 102 applies a machine learning technique to an image to generate a plurality of dense outputs, each dense output being associated with a respective pixel of a plurality of pixels in the image, as described above.

[0150] At operation 1003, the client device 102 applies a first task-specific decoder to the plurality of dense outputs to identify a pixel corresponding to a center of a first real-world body part, as described above. The center of the first real-world body part can be an exact point in the center of the body part or an approximate area surrounding a point in the middle of the body part.

[0151] At operation 1004 , the client device 102 applies a second task-specific decoder using the identified pixels to retrieve a three-dimensional (3D) rotation, translation, and scale of the first real-world body part from the plurality of dense outputs, as described above.

[0152] At operation 1005 , the client device 102 modifies an augmented reality (AR) object (eg, an AR shoe object) based on the 3D rotation, translation, and scaling of the first real-world body part, as described above.

[0153] At operation 1006 , the client device 102 modifies the image to include a depiction of the modified AR object, as described above.

[0154] Machine Architecture

[0155] Fig.11 It is a diagrammatic representation of a machine 1100 within which instructions 1108 (e.g., software, programs, applications, applet, app, or other executable code) may be executed for causing the machine 1100 to perform any one or more of the methods discussed herein. For example, the instructions 1108 may cause the machine 1100 to perform any one or more of the methods described herein. The instructions 1108 transform a general-purpose, unprogrammed machine 1100 into a specific machine 1100 that is programmed to perform the functions described and illustrated in the manner described. The machine 1100 may operate as a standalone device or may be coupled (e.g., networked) to other machines. In a networked deployment, the machine 1100 may operate as a server machine or a client machine in a server-client network environment, or as a peer machine in a peer-to-peer (or distributed) network environment. The machine 1100 may include, but is not limited to, a server computer, a client computer, a personal computer (PC), a tablet computer, a laptop computer, a netbook, a set-top box (STB), a personal digital assistant (PDA), an entertainment media system, a cellular phone, a smart phone, a mobile device, a wearable device (e.g., a smart watch), a smart home device (e.g., a smart appliance), other smart devices, a web appliance, a network router, a network switch, a network bridge, or any machine capable of sequentially or otherwise executing instructions 1108 specifying actions to be taken by the machine 1100. In addition, although only a single machine 1100 is shown, the term "machine" should also be considered to include a collection of machines that individually or jointly execute instructions 1108 to perform any one or more of the methods discussed herein. For example, the machine 1100 may include any of the client devices 102 or a number of server devices that form part of the messaging server system 108. In some examples, the machine 1100 may also include both a client system and a server system, wherein certain operations of a particular method or algorithm are performed on the server side and certain operations of the particular method or algorithm are performed on the client side.

[0156] The machine 1100 may include a processor 1102, a memory 1104, and an input / output (I / O) component 1138 that may be configured to communicate with each other via a bus 1140. In an example, the processor 1102 (e.g., a central processing unit (CPU), a reduced instruction set computing (RISC) processor, a complex instruction set computing (CISC) processor, a graphics processing unit (GPU), a digital signal processor (DSP), an application specific integrated circuit (ASIC), a radio frequency integrated circuit (RFIC), another processor, or any suitable combination thereof) may include, for example, a processor 1106 that executes instructions 1108 and a processor 1110. The term "processor" is intended to include multi-core processors, which may include two or more independent processors (sometimes referred to as "cores") that may execute instructions simultaneously. Although Fig.11 Multiple processors 1102 are shown, but the machine 1100 may include a single processor with a single core, a single processor with multiple cores (e.g., a multi-core processor), multiple processors with a single core, multiple processors with multiple cores, or any combination thereof.

[0157] The memory 1104 includes a main memory 1112, a static memory 1114, and a storage unit 1116, which are all accessible by the processor 1102 via the bus 1140. The main memory 1104, the static memory 1114, and the storage unit 1116 store instructions 1108 that embody any one or more of the methodologies or functions described herein. The instructions 1108 may also reside, completely or partially, within the main memory 1112, within the static memory 1114, within a machine-readable medium within the storage unit 1116, within at least one of the processors 1102 (e.g., within a cache memory of a processor), or within any suitable combination thereof during execution thereof by the machine 1100.

[0158] I / O components 1138 may include various components for receiving input, providing output, generating output, sending information, exchanging information, capturing measurements, etc. The specific I / O components 1138 included in a particular machine will depend on the type of machine. For example, a portable machine such as a mobile phone may include a touch input device or other such input mechanism, while a headless server machine will most likely not include such a touch input device. It should be appreciated that I / O components 1138 may include Fig.1111 and 12. In various examples, the I / O components 1138 may include a user output component 1124 and a user input component 1126. The user output component 1124 may include a visual component (e.g., a display such as a plasma display panel (PDP), a light emitting diode (LED) display, a liquid crystal display (LCD), a projector, or a cathode ray tube (CRT)), an acoustic component (e.g., a speaker), a tactile component (e.g., a vibration motor, a resistance mechanism), other signal generators, etc. The user input component 1126 may include an alphanumeric input component (e.g., a keyboard, a touch screen configured to receive alphanumeric input, an optical keyboard, or other alphanumeric input component), a point-based input component (e.g., a mouse, a touch pad, a trackball, a joystick, a motion sensor, or other pointing instrument), a tactile input component (e.g., a physical button, a touch screen or other tactile input component that provides the location and force of a touch or touch gesture), an audio input component (e.g., a microphone), etc.

[0159] In other examples, the I / O component 1138 may include a biometric component 1128, a motion component 1130, an environmental component 1132, or a positioning component 1134, as well as various other components. For example, the biometric component 1128 includes components for detecting expressions (e.g., hand expressions, facial expressions, voice expressions, body postures, or eye tracking), measuring biosignals (e.g., blood pressure, heart rate, body temperature, sweat, or brain waves), identifying people (e.g., voice recognition, retinal recognition, facial recognition, fingerprint recognition, or EEG-based recognition), etc. The motion component 1130 includes an acceleration sensor component (e.g., an accelerometer), a gravity sensor component, and a rotation sensor component (e.g., a gyroscope).

[0160] Environmental components 1132 include, for example, one or more cameras (with still image / photo and video capabilities), lighting sensor components (e.g., photometers), temperature sensor components (e.g., one or more thermometers that detect ambient temperature), humidity sensor components, pressure sensor components (e.g., barometers), acoustic sensor components (e.g., one or more microphones that detect background noise), proximity sensor components (e.g., infrared sensors that detect nearby objects), gas sensors (e.g., gas detection sensors that detect concentrations of hazardous gases for safety or measure pollutants in the atmosphere), or other components that can provide indications, measurements, or signals corresponding to the surrounding physical environment.

[0161] With respect to cameras, client device 102 may have a camera system including, for example, a front-facing camera on a front surface of client device 102 and a rear-facing camera on a rear surface of client device 102. The front-facing camera may, for example, be used to capture still images and videos (e.g., “selfies”) of a user of client device 102, which may then be enhanced with the enhancement data (e.g., filters) described above. For example, the rear-facing camera may be used to capture still images and videos in a more conventional camera mode, where the images are similarly enhanced with the enhancement data. In addition to the front-facing camera and the rear-facing camera, client device 102 may also include a 360° camera for capturing 360° photos and videos.

[0162] Additionally, the camera system of the client device 102 may include dual rear cameras (e.g., a main camera and a depth sensing camera), or even triple, quad, or quintuple rear camera configurations on the front and back sides of the client device 102. For example, these multiple camera systems may include a wide-angle camera, an ultra-wide-angle camera, a telephoto camera, a macro camera, and a depth sensor.

[0163] The positioning component 1134 includes a position sensor component (for example, a GPS receiver component), an altitude sensor component (for example, an altimeter or a barometer that detects air pressure, and the altitude can be obtained based on the air pressure), an orientation sensor component (for example, a magnetometer), etc.

[0164] A variety of technologies may be used to achieve communication. The I / O components 1138 also include a communication component 1136 that is operable to couple the machine 1100 to the network 1120 or device 1122 via a corresponding coupling or connection. For example, the communication component 1136 may include a network interface component or other suitable device that interfaces with the network 1120. In other examples, the communication component 1136 may include a wired communication component, a wireless communication component, a cellular communication component, a near field communication (NFC) component, Parts (e.g. Low power consumption), Device 1122 may be another machine or any of a variety of peripheral devices (eg, a peripheral device coupled via USB).

[0165] In addition, the communication component 1136 can detect the identifier or include a component that can be operated to detect the identifier. For example, the communication component 1136 can include a radio frequency identification (RFID) tag reader component, an NFC smart tag detection component, an optical reader component (e.g., an optical sensor for detecting one-dimensional bar codes such as universal product code (UPC) bar codes, multi-dimensional bar codes such as Quick Response (QR) codes, Aztec codes, Data Matrix, Dataglyph, MaxiCode, PDF417, Ultra Code, UCC RSS-2D bar codes, and other optical codes) or an acoustic detection component (e.g., a microphone for identifying a tagged audio signal). In addition, various information can be obtained via the communication component 1136, such as location via Internet Protocol (IP) geolocation, ... Signal triangulation to derive location, location via detection of NFC beacon signals that can indicate a specific location, etc.

[0166] Various memories (e.g., main memory 1112, static memory 1114, and memory of processor 1102) and storage unit 1116 may store one or more sets of instructions and data structures (e.g., software) implemented or used by any one or more of the methods or functions described herein. When executed by processor 1102, these instructions (e.g., instructions 1108) cause various operations to implement the disclosed examples.

[0167] The instructions 1108 may be sent or received over the network 1120 using a transmission medium via a network interface device (e.g., a network interface component included in the communication component 1136) and using any of a number of well-known transmission protocols (e.g., the Hypertext Transfer Protocol (HTTP)). Similarly, the instructions 1108 may be sent or received via a coupling (e.g., a peer-to-peer coupling) with the device 1122 using a transmission medium.

[0168] Software Architecture

[0169] Fig.121200 is a block diagram illustrating a software architecture 1204 that may be installed on any one or more of the devices described herein. The software architecture 1204 is supported by hardware, such as a machine 1202 including a processor 1220, a memory 1226, and an I / O component 1238. In this example, the software architecture 1204 may be conceptualized as a stack of layers, where each layer provides specific functionality. The software architecture 1204 includes layers such as an operating system 1212, a library 1210, a framework 1208, and an application 1206. In operation, the application 1206 invokes an API call 1250 through the software stack and receives a message 1252 in response to the API call 1250.

[0170] The operating system 1212 manages hardware resources and provides public services. The operating system 1212 includes, for example, a kernel 1214, services 1216, and drivers 1222. The kernel 1214 serves as an abstraction layer between the hardware and other software layers. For example, the kernel 1214 provides functions such as memory management, processor management (e.g., scheduling), component management, networking, and security settings. Services 1216 can provide other public services to other software layers. Drivers 1222 are responsible for controlling or interfacing with the underlying hardware. For example, drivers 1222 may include display drivers, camera drivers, or Low-power drivers, Flash drivers, Serial communication drivers (e.g., USB drivers), Drivers, audio drivers, power management drivers, etc.

[0171] The libraries 1210 provide a common low-level infrastructure used by the applications 1206. The libraries 1210 may include a system library 1218 (e.g., a C standard library) that provides functions such as memory allocation functions, string manipulation functions, mathematical functions, etc. In addition, the libraries 1210 may include an API library 1224, such as a media library (e.g., a library for supporting the presentation and manipulation of various media formats, such as Moving Picture Experts Group-4 (MPEG4), Advanced Video Coding (H.264 or AVC), Moving Picture Experts Group Layer-3 (MP3), Advanced Audio Coding (AAC), Adaptive Multi-Rate (AMR) audio codec, Joint Photographic Experts Group (JPEG or JPG), or Portable Network Graphics (PNG)), a graphics library (e.g., an OpenGL framework for presentation in two dimensions (2D) and three dimensions (3D) in graphical content on a display), a database library (e.g., SQLite providing various relational database functions), a web library (e.g., WebKit providing web browsing functions), etc. The library 1210 may also include various other libraries 1228 to provide many other APIs to the application 1206 .

[0172] The framework 1208 provides a common high-level infrastructure used by the applications 1206. For example, the framework 1208 provides various graphical user interface (GUI) functions, high-level resource management, and high-level positioning services. The framework 1208 can provide a wide range of other APIs that can be used by the applications 1206, some of which can be specific to a particular operating system or platform.

[0173] In an example, applications 1206 may include a home application 1236, a contacts application 1230, a browser application 1232, a book reader application 1234, a location application 1242, a media application 1244, a messaging application 1246, a game application 1248, and a variety of other applications such as external applications 1240. Applications 1206 are programs that perform functions defined in the program. Various programming languages ​​may be used to create one or more of the applications 1206 structured in various ways, such as an object-oriented programming language (e.g., Objective-C, Java, or C++) or a procedural programming language (e.g., C or assembly language). In a specific example, external applications 1240 (e.g., created by an entity other than the vendor of a particular platform using ANDROID TM or IOS TM Software Development Kit (SDK) can be used to develop applications on platforms such as IOS TM ANDROID TM , Mobile software running on the mobile operating system of the Phone or other mobile operating systems. In this example, the external application 1240 can activate the API call 1250 provided by the operating system 1212 to facilitate the functions described herein.

[0174] Glossary

[0175] "Carrier signal" refers to any intangible medium capable of storing, encoding or carrying instructions for execution by a machine and includes digital or analog communications signals or other intangible media to facilitate the transmission of such instructions. Instructions may be sent or received over a network using a transmission medium via a network interface device.

[0176] "Client Device" refers to any machine that interfaces with a communications network to obtain resources from one or more server systems or other client devices. A client device may be, but is not limited to, a mobile phone, a desktop computer, a laptop computer, a portable digital assistant (PDA), a smart phone, a tablet computer, an ultrabook, a netbook, a notebook computer, a multiprocessor system, a microprocessor-based or programmable consumer electronics product, a game console, a set-top box, or any other communications device that a user may use to access a network.

[0177] "Communications Network" means one or more parts of a network, which may be an ad hoc network, an intranet, an extranet, a virtual private network (VPN), a local area network (LAN), a wireless LAN (WLAN), a wide area network (WAN), a wireless WAN (WWAN), a metropolitan area network (MAN), the Internet, a part of the Internet, a part of the Public Switched Telephone Network (PSTN), a Plain Old Telephone Service (POTS) network, a cellular telephone network, a wireless network, A network, other type of network, or a combination of two or more such networks. For example, the network or a portion of the network may include a wireless network or a cellular network, and the coupling may be a code division multiple access (CDMA) connection, a global system for mobile communications (GSM) connection, or other type of cellular or wireless coupling. In this example, the coupling may implement any of various types of data transmission technologies, such as single carrier radio transmission technology (1xRTT), evolution data optimized (EVDO) technology, general packet radio service (GPRS) technology, enhanced data rates for GSM evolution (EDGE) technology, the third generation partnership project (3GPP) including 3G, fourth generation wireless (4G) networks, universal mobile telecommunications system (UMTS), high speed packet access (HSPA), world wide interoperability for microwave access (WiMAX), long term evolution (LTE) standards, other data transmission technologies defined by various standard setting organizations, other long distance protocols, or other data transmission technologies.

[0178] "Component" means a device, physical entity, or logic having boundaries defined by function or subroutine calls, branch points, APIs, or other techniques that provide partitioning or modularization of specific processing or control functions. Components may interface with other components via their interfaces to perform machine processes. A component may be a packaged functional hardware unit designed for use with other components and is part of a program that typically performs a specific one of the related functions.

[0179] Components may constitute software components (e.g., code implemented on a machine-readable medium) or hardware components. A "hardware component" is a tangible unit that is capable of performing certain operations and that can be configured or arranged in some physical manner. In various examples, one or more computer systems (e.g., stand-alone computer systems, client computer systems, or server computer systems) or one or more hardware components of a computer system (e.g., a processor or group of processors) may be configured by software (e.g., an application or application portion) as hardware components that operate to perform certain operations described herein.

[0180] Hardware components can also be implemented mechanically, electronically, or in any suitable combination thereof. For example, hardware components can include dedicated circuits or logic that are permanently configured to perform certain operations. Hardware components can be dedicated processors, such as field programmable gate arrays (FPGAs) or application specific integrated circuits (ASICs). Hardware components can also include programmable logic or circuits that are temporarily configured to perform certain operations by software. For example, hardware components can include software executed by general-purpose processors or other programmable processors. Once configured by such software, hardware components become specific machines (or specific components of machines) that are uniquely customized to perform configured functions, and are no longer general-purpose processors. It will be recognized that it can be decided whether to implement hardware components mechanically in a dedicated and permanently configured circuit or in a temporarily configured circuit (e.g., configured by software) for cost and time considerations. Therefore, the phrase "hardware components" (or "hardware-implemented components") should be understood to include tangible entities, i.e., entities that are physically constructed, permanently configured (e.g., hardwired) or temporarily configured (e.g., programmed) to operate in some way or perform certain operations described herein.

[0181] Consider an example where hardware components are temporarily configured (e.g., programmed), without configuring or instantiating each of the hardware components at any one time. For example, where the hardware components include a general-purpose processor that is configured by software to become a special-purpose processor, the general-purpose processor can be configured into different special-purpose processors (e.g., including different hardware components) at different times. The software configures one or more specific processors accordingly, for example, to constitute a specific hardware component at one time and to constitute different hardware components at different times.

[0182] Hardware components can provide information to other hardware components and receive information from other hardware components. Therefore, the described hardware components can be considered to be communicatively coupled. In the case of multiple hardware components simultaneously, communication can be realized by signal transmission (e.g., by appropriate circuits and buses) between or among two or more hardware components in the hardware components. In the example where multiple hardware components are configured or instantiated at different times, communication between such hardware components can be realized, for example, by storing information in a memory structure to which multiple hardware components have access rights and retrieving information in the memory structure. For example, a hardware component can perform an operation and store the output of the operation in a memory device communicatively coupled thereto. Then, other hardware components can access the memory device at a subsequent time to retrieve the stored output and process it. Hardware components can also initiate communication with input devices or output devices, and can operate resources (e.g., a collection of information).

[0183] The various operations of the example methods described herein may be performed at least in part by one or more processors that are temporarily configured (e.g., by software) or permanently configured to perform related operations. Whether temporarily configured or permanently configured, such a processor may constitute a processor-implemented component that operates to perform one or more operations or functions described herein. As used herein, "processor-implemented components" refer to hardware components implemented using one or more processors. Similarly, the method described herein may be implemented at least in part by a processor, wherein a specific one or more processors are examples of hardware. For example, at least some operations of the method may be performed by one or more processors 1102 or processor-implemented components. In addition, one or more processors may also operate to support the execution of related operations in a "cloud computing" environment or as a "software as a service" (SaaS) operation. For example, at least some of the operations may be performed by a group of computers (as an example of a machine including a processor), wherein these operations may be accessed via a network (e.g., the Internet) and via one or more appropriate interfaces (e.g., API). The execution of certain operations may be distributed between processors, not just residing in a single machine, but deployed across several machines. In some examples, the processor or processor-implemented components may be located in a single geographic location (e.g., in a home environment, an office environment, or a server farm). In other examples, the processor or processor-implemented components may be distributed across several geographic locations.

[0184] "Computer-readable storage media" refers to both machine storage media and transmission media. Thus, the term includes both storage devices / media and carrier / modulated data signals. The terms "machine-readable medium," "computer-readable medium," and "device-readable medium" mean the same thing and may be used interchangeably in this disclosure.

[0185] "Transient message" refers to a message that is accessible for a limited duration. Transient messages can be text, images, videos, etc. The access time of a transient message can be set by the sender of the message. Alternatively, the access time can be a default setting or a setting specified by the recipient. Regardless of the setting technique, the message is transient.

[0186] "Machine storage media" refers to a single or multiple storage devices and media (e.g., centralized or distributed databases, and associated caches and servers) that store executable instructions, routines, and data. Thus, the term should be considered to include, but is not limited to, solid-state memory and optical and magnetic media, including memory internal or external to the processor. Specific examples of machine storage media, computer storage media, and device storage media include: non-volatile memory, including, for example, semiconductor memory devices such as erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), FPGA, and flash memory devices; magnetic disks, such as internal hard disks and removable disks; magneto-optical disks; and CD-ROM and DVD-ROM disks. The terms "machine storage media," "device storage media," and "computer storage media" mean the same thing and may be used interchangeably in this disclosure. The terms "machine storage media," "computer storage media," and "device storage media" expressly exclude carrier waves, modulated data signals, and other such media, at least some of which are encompassed by the term "signal media."

[0187] “Non-transitory computer-readable storage medium” refers to tangible media capable of storing, encoding, or carrying instructions to be executed by a machine.

[0188] "Signal medium" refers to any intangible medium that is capable of storing, encoding or carrying instructions to be executed by a machine, and includes digital or analog communication signals or other intangible media that facilitate the communication of software or data. The term "signal medium" should be deemed to include any form of modulated data signals, carrier waves, etc. The term "modulated data signal" refers to a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal. The terms "transmission medium" and "signal medium" refer to the same thing and may be used interchangeably in this disclosure.

[0189] Changes and modifications may be made to the disclosed examples without departing from the scope of the present disclosure. These and other changes or modifications are intended to be included within the scope of the present disclosure as expressed in the appended claims.

Claims

1. A method comprising: receiving, by one or more processors, an image including a depiction of a first real-world body part in a real-world environment; applying, by the one or more processors, a machine learning technique to the image to generate a plurality of dense outputs, each dense output being associated with a respective pixel of a plurality of pixels in the image; applying a first task-specific decoder to the plurality of dense outputs to identify pixels corresponding to centers of the first real-world body part; applying a second task-specific decoder using the identified pixels to retrieve a three-dimensional (3D) rotation, translation, and scale of the first real-world body part from the plurality of dense outputs; modifying an augmented reality (AR) object based on the 3D rotation, translation, and scaling of the first real-world body part; and The image is modified to include a depiction of the modified AR object.

2. The method according to claim 1, wherein: The first real-world body part comprises a real-world foot, and wherein the AR object comprises an AR shoe object, the method further comprising applying a third task-specific decoder to the plurality of dense outputs to classify the identified pixels as a left foot or a right foot.

3. The method according to any one of claims 1 to 2, further comprising: The AR shoe object is selected between a left AR shoe object and a right AR shoe object based on classifying the identified pixels as a left foot or a right foot.

4. The method according to any one of claims 1 to 3, wherein: The center is a two-dimensional (2D) center, and the method further includes applying a back-projection model to the 2D center of the first real-world body part to calculate the 3D coordinates of the center of the first real-world body part.

5. The method according to claim 4, wherein: The AR object is modified based on the 3D coordinates of the center of the first real-world body part.

6. The method according to any one of claims 4 to 5, further comprising: A third task-specific decoder is applied to the plurality of dense outputs to obtain disparity of the image, wherein the back-projection model uses the disparity of the image to calculate the 3D coordinates.

7. The method according to any one of claims 1 to 6, wherein: The machine learning technique simultaneously generates the plurality of dense outputs, wherein each of the pixels in the image is associated with a plurality of values, a first of the plurality of dense outputs comprises a pixel disk associated with a center of the first real-world body part, a second of the plurality of dense outputs comprises a distance between each pixel in the pixel disk and the center of the first real-world body part, a third of the plurality of dense outputs comprises a left or right classification, a fourth of the plurality of dense outputs comprises a rotation of the first real-world body part, a fifth of the plurality of dense outputs comprises a translation of the first real-world body part, and a sixth of the plurality of dense outputs comprises a disparity.

8. The method according to any one of claims 1 to 7, wherein: Applying the first task-specific decoder to the plurality of dense outputs comprises: obtaining a plurality of center positions representing centers of different body parts from the plurality of dense outputs; scoring the plurality of central locations to score each of the plurality of central locations; and A given one of the plurality of center locations is selected based on the score of each of the plurality of center locations.

9. The method according to claim 8, wherein: The plurality of center locations comprises a white disk, and wherein scoring the plurality of center locations comprises assigning a score representing a whitest pixel value among pixels in the white disk.

10. The method according to any one of claims 1 to 9, further comprising: applying a third task-specific decoder to the plurality of dense outputs to obtain a plurality of distances between each of the plurality of center locations and a center of the first real-world body part; identifying a given distance from the plurality of distances associated with the whitest pixel value in the white disk; and The pixel coordinates corresponding to the given distance in the image are obtained as the identified pixels.

11. The method according to any one of claims 1 to 10, wherein: The image depicts a plurality of real-world feet, and wherein the machine learning technique estimates a plurality of centers for each of the plurality of real-world feet and estimates a corresponding 3D rotation and translation for each of the plurality of real-world feet.

12. The method according to any one of claims 1 to 11, wherein: The 3D rotation, translation and scaling are estimated without using perspective N-point (PNP) processing.

13. The method of any one of claims 1 to 12, further comprising training the machine learning technique using training data.

14. The method according to claim 13, wherein: Training the machine learning technique includes: receiving the training data, the training data comprising a plurality of training images and a plurality of ground truth centers associated with training real-world body parts respectively depicted in the plurality of training images, the training data comprising a ground truth rotation, translation, and scale for each of the training real-world body parts; applying the machine learning technique to a first training image of the plurality of training images to estimate a plurality of training dense outputs for a training real-world body part depicted in the first training image; obtaining a true center pixel coordinate associated with the first training image, the true center pixel coordinate representing the center of the training real-world body part depicted in the first training image; calculating one or more losses based on the truth center pixel coordinates and based on deviations associated with one of the plurality of training dense outputs and truth information associated with the first training image; and Parameters of the machine learning technique are updated based on the calculated deviations.

15. The method according to any one of claims 13 to 14, wherein: A first loss of the one or more losses comprises losses of the 3D rotation, translation and scaling, the method further comprising: applying the second task-specific decoder using the true center pixel coordinates to retrieve the estimated 3D rotation, translation, and scale of the training first real-world body part from the plurality of training dense outputs; and The deviation between the estimated 3D rotation, translation and scale of the training first real-world body part and the true rotation, translation and scale of the training first real-world body part associated with the first training image is calculated.

16. The method according to any one of claims 1 to 15, wherein: A second loss of the one or more losses comprises a loss of the estimated center, the method further comprising: applying the first task-specific decoder to the plurality of dense outputs to identify an estimated pixel corresponding to a center of the first real-world body part; and Calculate the deviation between the estimated pixel corresponding to the center of the first real-world body part and the true value center pixel coordinates.

17. The method according to any one of claims 1 to 16, further comprising: The training data is applied to perspective N-point (PNP) processing to generate true rotation, translation, and scale for each of the training real-world body parts.

18. The method of claim 17, further comprising applying data augmentation techniques to the plurality of training images to generate additional training data, the data augmentation techniques comprising at least one of: cropping, flipping, rotating, modifying color, or applying blur to a training real-world body part depicted in a given one of the plurality of training images.

19. A system comprising: one or more computer processors; as well as One or more computer-readable media storing instructions that, when executed by the one or more computer processors, cause the system to perform operations comprising: receiving an image including a depiction of a first real-world body part in a real-world environment; applying a machine learning technique to the image to generate a plurality of dense outputs, each dense output being associated with a corresponding pixel among a plurality of pixels in the image; applying a first task-specific decoder to the plurality of dense outputs to identify pixels corresponding to centers of the first real-world body part; applying a second task-specific decoder using the identified pixels to retrieve a three-dimensional (3D) rotation, translation, and scale of the first real-world body part from the plurality of dense outputs; modifying an augmented reality (AR) object based on the 3D rotation, translation, and scaling of the first real-world body part; and The image is modified to include a depiction of the modified AR object.

20. A non-transitory machine-readable storage medium comprising instructions that, when executed by one or more processors of one or more computing devices, cause the one or more computing devices to perform operations comprising: receiving an image including a depiction of a first real-world body part in a real-world environment; applying a machine learning technique to the image to generate a plurality of dense outputs, each dense output being associated with a corresponding pixel among a plurality of pixels in the image; applying a first task-specific decoder to the plurality of dense outputs to identify pixels corresponding to centers of the first real-world body part; applying a second task-specific decoder using the identified pixels to retrieve a three-dimensional (3D) rotation, translation, and scale of the first real-world body part from the plurality of dense outputs; modifying an augmented reality (AR) object based on the 3D rotation, translation, and scaling of the first real-world body part; and The image is modified to include a depiction of the modified AR object.