Real-time garment exchange

By extracting and combining motion and appearance features in images through machine learning technology, it solves the difficulty of identifying and replacing the whole body and the complexity of skeleton generation in existing AR systems when not using depth sensors, achieving efficient and realistic AR graphics addition and Adjustments have been made to improve user experience and image quality.

CN118613834APending Publication Date: 2024-09-06SNAP INC
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202280084786.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2021-12-21
Filing Date
2022-12-12
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

Existing augmented reality (AR) systems have difficulty identifying and replacing the user's whole body without using depth sensors, resulting in reduced image quality and poor visual effects, and the method of generating human skeletons increases processing complexity and resource requirements, limiting Real-time application of AR graphics on small-scale mobile devices.

Method used

Through machine learning technology, combined with neural networks, the motion and appearance features in the image are extracted, new images or videos are generated, and AR graphics are efficiently added and adjusted, avoiding the complexity and resource requirements of skeleton generation.

Benefits of technology

It improves the efficiency of seamlessly adding AR graphics to images or videos, reduces design constraints and resource requirements, improves image quality and user experience, and makes the display of AR fashion items more realistic and suitable for small-scale mobile devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118613834A
    Figure CN118613834A
Patent Text Reader

Abstract

Methods and systems are disclosed for performing operations for converting garments in a video from one real-world object to another real-world object in real-time. The operations include: receiving a first video including a depiction of a first person wearing a first garment in a first pose; and obtaining a second video including a depiction of a second person wearing the second garment in the second pose. The operations include modifying a gesture of the second person to match a first gesture of the first person depicted in the first video. The operations include: generating a whole body segmentation of a second garment worn by a second person in a second video; and changing an appearance of the first person from wearing the first garment to wearing the second garment based on a full body segmentation of the second garment worn by the second person in the second video.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Priority claim

[0002] This application is a continuation of U.S. patent application serial number 17 / 557,652 filed on December 21, 2021, which is incorporated herein by reference in its entirety. Technical Field

[0003] The present disclosure generally relates to providing an augmented reality (AR) 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, one or more of the most significant digits in a reference numeral refers 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 motion and appearance transfer system according to some examples.

[0011] Figure 6 and Figure 7 is a graphical representation of the output of a motion and appearance transfer system according to some examples.

[0012] Figure 8is a flow diagram illustrating example operation of a motion and appearance conversion system according to some examples.

[0013] Fig. 9 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.10 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, VR and AR systems display an image representing a given user by capturing an image of the given user and further using a depth sensor to obtain a depth map of the real-world human body depicted in the image. By processing the depth map and the image together, the VR and AR systems can detect the positioning of the user in the image and can modify the user or the background in the image appropriately. While such systems work well, the need for a depth sensor limits their scope of application. This is because adding a depth sensor to a user device for the purpose of modifying the image increases the overall cost and complexity of the device, making them less attractive.

[0017] Some systems do not require the use of a depth sensor to modify an image. For example, some systems allow a user to replace the background in a video conference in which the user's face is detected. Specifically, such systems can use specialized techniques optimized for recognizing the user's face to identify the background in an image depicting the user's face. These systems can then replace only those pixels that depict the background, so that the real-world background is replaced with an alternative background in the image. However, such systems are generally unable to recognize the user's entire body. Therefore, if the user is greater than a threshold distance from the camera, so that more than just the user's face is captured by the camera, the replacement of the background using the alternative background begins to fail. In this case, the image quality is severely affected, and multiple parts of the user's face and body may be inadvertently removed by the system because the system mistakenly identifies such parts as belonging to the background of the image rather than the foreground. In addition, when more than one user is depicted in an image or video feed, such systems are unable to properly replace the background. Because such systems are generally unable to distinguish the entire body of the user in the image from the background, these systems are also unable to apply visual effects to certain parts of the user's body, such as clothing articles, clothing or fashion accessories and items (e.g., jewelry, handbags, wallets, etc.).

[0018] Some AR systems allow AR graphics to be added to images or videos to provide an attractive AR experience. Such systems can receive AR graphics from designers, and can scale and position AR graphics within images or videos. In order to improve the placement and positioning of AR graphics on people depicted in images or videos, such systems detect people depicted in images or videos, and generate a skeleton (rig) representing people's bones. Then, the skeleton is used to adjust the AR graphics based on the movement changes of the skeleton. Although such methods usually work well, it is necessary to generate a skeleton of a person in real time to adjust the placement of AR graphics, which increases processing complexity and power and memory requirements. This makes such systems inefficient or unable to run on small-scale mobile devices without sacrificing computing resources or processing speed. In addition, the skeleton only represents the movement of the skeleton or bone structure of a person in an image or video, and does not consider any kind of external physical properties of a person, such as density, weight, skin properties, etc. Therefore, any AR graphics in these systems can be adjusted in scale and positioning, but cannot be deformed based on other physical properties of a person. In addition, AR graphic designers usually need to create compatible skeletons for their AR graphics or AR fashion items.

[0019] The disclosed technology improves the efficiency of using an electronic device by using a combination of machine learning techniques (e.g., neural networks) to simultaneously extract appearance and motion features of a person depicted in one image and present a new image depicting the person having the same motion but with different appearance features corresponding to the person depicted in a different image. By using machine learning techniques to simultaneously extract appearance and motion features, the disclosed technology can apply one or more visual effects to an image or video associated with a person depicted in the image or video in real time in a more efficient manner, and without the need to generate a skeleton or bone structure of the depicted object.

[0020] In one example, a first client device of a first person may be used to capture a first image or video of the first person and a second image or video of the second person, respectively. Motion features of the first person may be extracted from the captured first image or video and used to adjust the motion of the second person. That is, machine learning techniques may be applied to combine the appearance features of the second person with the motion features of the first person to present a new image or video depicting the second person performing a motion corresponding to the motion of the first person without changing the appearance of the first person. After the motion of the second person is adjusted, partial or full-body clothing segmentation is applied to one or more garments worn by the second person. Then, partial or full-body clothing segmentation of one or more garments worn by the second person is used to replace the garment worn by the first person depicted in the first image or video.

[0021] This simplifies the process of adding AR graphics to images or videos, thereby significantly reducing the design constraints and costs when generating such AR graphics, and reducing processing complexity, power, and memory requirements. This also improves the illusion that the AR graphics are part of the real-world environment depicted in the image or video depicting the object. This enables AR graphics to be seamlessly and efficiently added to the underlying image or video in real time on small-scale mobile devices. The disclosed technology can be applied exclusively or primarily to mobile devices without the need for the mobile device to send images / videos to a server. In other examples, the disclosed technology can be applied exclusively or primarily to a remote server, or can be distributed between a mobile device and a server.

[0022] Thus, a realistic display can be provided that shows a user wearing an AR fashion item while changing the user's real-world posture or motion based on the posture or motion of different users. This improves the overall experience of the user when using the electronic device. In addition, by providing such an AR experience without using a depth sensor, the total amount of system resources required to complete the task is reduced. As used herein, "clothing articles", "fashion items" and "clothing" are used interchangeably and should be understood to have the same meaning.

[0023] Networked computing environment

[0024] Figure 1 1 is a block diagram illustrating an example messaging system 100 for exchanging data (e.g., messages and associated content) over a network. 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 corresponding 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 such as the external application 109 using an application program interface (API).

[0025] 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).

[0026] The messaging server system 108 provides server-side functionality to specific 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.

[0027] 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 of the messaging client 104.

[0028] Turning now specifically to the messaging server system 108, an API server 116 is coupled to 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 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.

[0029] 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).

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

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

[0032] 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 AR experiences on the client device 102 when an image is captured by the client device 102. Specifically, the messaging client 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 AR experiences to the user. The user can select a given identifier in the identifier to start the corresponding AR experience or perform the desired image modification (for example, replace the clothing worn by the user in the video or recolor the clothing worn by the user in the video or modify the clothing based on the gesture performed by the user).

[0033] The social network server 124 supports various social networking functions and services and makes these functions and services available to the messaging server 118. To this end, the social network server 124 maintains and accesses the 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.

[0034] 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 application 109. The external resource can be a third-party application (external application 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 the far end of the client device 102 (e.g., on a third-party 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).

[0035] In response to receiving a user selection of an option for launching or accessing a feature of an external resource (external application 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.

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

[0037] 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 who each use the corresponding 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 the corresponding external resource, view specific information in the external resource, or bring members of the chat to a specific location or state in the external resource. In 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.

[0038] 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).

[0039] In an example, the messaging client 104 enables a user to start an AR experience in which a first person (e.g., a user of the messaging client 104) is depicted wearing one or more garments worn by a second person depicted in another image. In particular, the messaging client 104 implemented on the first client device of the first person can be used to capture an image or video of the second person. The messaging client 104 implemented on the first client device of the first person can also be used to capture an image or video of the first person. The motion features of the first person can be extracted from the captured image or video. The messaging client 104 on the first client device can extract the appearance features of the second person from the image or video. The messaging client 104 can apply machine learning techniques to combine the appearance features of the second person with the motion features of the first person to present a new image or video depicting the second person performing a motion corresponding to the motion of the first person without changing the appearance of the second person. In an example, this results in modifying the posture of the second person to match the posture of the first person without changing the appearance of the second person (e.g., the clothes worn by the second person). The segmentation of the second person's clothing (whole body or partial body) can be performed after modifying the posture or motion of the second person. This segmentation is used to obtain the pixel values ​​and positions of the clothing worn by the second person performing the gesture of the first person. These pixel values ​​and positions are replicated using a mask and used to modify the corresponding pixel values ​​and positions of the first person.

[0040] This causes the appearance of the first person to change from wearing one garment or article of clothing to wearing another garment or article of clothing being worn by the second person. In some implementations, similar techniques may be applied to replace the garment worn by the second person with the garment worn by the first person. In this way, the first person may view, in real time, how the first person looks wearing the second person's real-world article of clothing or fashion item. The article of clothing, garment, or fashion item may include a shirt, pants, skirt, dress, jewelry, wallet, furniture item, household item, goggles, lenses, AR logo, AR badge, wallet, pants, shorts, skirt, jacket, T-shirt, top, glasses, jewelry, earrings, bunny ears, hat, earmuffs, or any other suitable item or object. Figure 5 Additional details of this AR experience are discussed in detail in the motion and appearance transformation system 224 .

[0041] System Architecture

[0042] Figure 21 is a block diagram showing additional details about the messaging system 100 according to some examples. Specifically, the messaging system 100 is shown to include 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 enhancement system 208, a map system 210, a game system 212, and an external resource system 220.

[0043] 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 (e.g., for presentation and display) to messages and associated content 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.

[0044] 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., for 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.

[0045] The collection management system 204 also includes a curation interface 206 that allows a collection manager to manage and curate a particular collection of content. For example, the curation interface 206 enables an event organizer to curate a collection of content related to a particular event (e.g., to remove 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 may 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 use of their content.

[0046] 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. Media overlays 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, media overlays can include text, graphic elements, or images that can be superimposed 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 a 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 by the database server 120.

[0047] 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 the context 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.

[0048] 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 AR 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 the identifier of the presented AR experience). Once the AR experience is selected, one or more images, videos, or AR graphical elements are retrieved and presented as an overlay on top of the 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 AR 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 AR graphical elements are retrieved and rendered as an overlay on top of the image captured and displayed by the front-facing camera of the client device 102 .

[0049] 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).

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

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

[0052] The mapping system 210 provides various geo-location functions and supports the presentation of map-based media content and messages by the messaging client 104. For example, the mapping system 210 enables the display of user icons or avatars (e.g., stored in the profile data 316) on a map 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, a message posted by a user to the messaging system 100 from a particular geographic location can be displayed to a particular user's "friends" on the mapping 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 (e.g., using an appropriate status avatar) via the messaging client 104, where the location and status information is similarly displayed to the selected user within the context of the mapping interface of the messaging client 104.

[0053] 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., game coins and items).

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

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

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

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

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

[0059] 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 2D avatar of a user, a three-dimensional (3D) 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.).

[0060] The motion and appearance conversion system 224 enables a user to initiate an AR experience in which a user (e.g., a first person) is depicted wearing clothing worn by a second person depicted in another image. Figure 5 An exemplary implementation of motion and appearance conversion system 224 is shown and described.

[0061] Specifically, the motion and appearance conversion 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 a red, green, and blue (RGB) camera to capture a monocular image of the user. The AR / VR application applies various trained machine learning techniques to the captured image of the user to generate appearance and motion features representing the user depicted in the image or video, and applies one or more AR visual effects to the captured image or video based on the motion and / or appearance features of a different user depicted in another image or video (e.g., 3D pose, 3D body mesh, full body or whole body segmentation, a set of dense key points, texture, color, and / or clothing segmentation). In some implementations, the AR / VR application continuously captures images of the user and updates the motion and / or appearance features in real time or periodically to continuously or periodically update one or more visual effects of the application. This allows the user to move around in the real world and see one or more visual effects (e.g., the motion of another user applied to the user's appearance) update in real time.

[0062] Data Architecture

[0063] Figure 3 is a 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 should be understood 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, and 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 can 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, etc.

[0071] In one example, a filter is an overlay displayed as an overlay on 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 AR content items (eg, corresponding to an applied AR experience). AR content items or AR 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 AR content items, overlays, image transformations, AR images, AR logos or badges, 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 the 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 has access to multiple AR content items, a user can use a single video clip with multiple AR content items to see how different AR content items will modify the stored clips. For example, by selecting different AR content items for the content, multiple AR 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 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 AR 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 AR content items or other such transformation systems using the data to modify content may involve: detection of real-world objects (e.g., faces, hands, bodies, cats, dogs, surfaces, objects, etc.); tracking such objects in video frames 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 3D mesh model of one or more objects, and using transformations and animated textures of the models within the video to implement the transformations. In other examples, tracking of points on the object may be used to place an image or texture (which may be 2D or 3D) 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., a frame of an image or video). Thus, AR content items or elements involve both: images, models, and textures used to create transformations on 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 frame transformations that mainly involve 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 (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 first group of first points is generated for each element based on the modification request, and a group of second points is generated for each element based on the group 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 group of first points, the group of second points and the grid. In such a method, the background of the modified object can 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 feature points for each element of the object and generating a grid based on the calculated feature 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 may 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 may be used. For certain models to be animated, some feature points may 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 that use body / person detection to transform image data, the body / person is detected on the image using a specific body / person detection algorithm (e.g., 3D human pose estimation and mesh reconstruction process). Then, the ASM algorithm is applied to the body / person area of ​​the image to detect body / person feature reference points.

[0080] Other methods and algorithms suitable for body / person detection can be used. For example, in some examples, landmarks are used to locate features, and the landmarks represent distinguishable points that exist in most of the images considered. For example, for body / person landmarks, the position of the left arm can be used. If the initial landmark is not identifiable, a secondary landmark 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 position and size of the body / person determined by the global body / person detector. Such a search then repeats the steps of proposing tentative shapes by template matching the image texture around each point to adjust the position 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, 3D human pose estimation, 3D body mesh reconstruction, 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 body / person within the image or video stream and provides a modification icon associated with the computer animation model for transforming the data image, or the computer animation model can exist in association with the interface described herein. The modification icon includes the following changes, which can be the basis for modifying the body / person of the user 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 image of the user 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 for 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 an interface for initiating the selection of a specific computer animation model and content capture (e.g., initiated from a content creator user interface). In various examples, after the modification icon is initially selected, the modification can be persistent. The user can switch the modification on or off by tapping or otherwise selecting the body / person being modified by the transformation system, and store it for later viewing or browsing to other areas of the imaging application. In the case of multiple faces modified by the transformation system, the user can globally switch the modification on or off by tapping or selecting a single body / person modified and displayed in the graphical user interface. In some examples, each body / person in a group of multiple bodies / persons can be modified individually, or such modifications can be switched individually by tapping or selecting a single body / person or a series of individual bodies / persons displayed in 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 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 implementations, 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] Trained machine learning techniques 307 store parameters that have been trained during training of the motion and appearance conversion system 224. For example, trained machine learning techniques 307 store trained parameters of one or more neural network machine learning techniques.

[0090] Data communication architecture

[0091] Figure 4is 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:

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

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

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

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

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

[0097] Message enhancement data 412 : Enhancement data (eg, 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 for a sent or received message 400 may be stored in the enhancement table 310 .

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

[0099] 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, where each of these parameter values ​​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).

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

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

[0102] • 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.

[0103] • 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.

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

[0105] Motion and appearance transformation system

[0106] Figure 5is a block diagram illustrating an example motion and appearance conversion system 224 according to some examples. The motion and appearance conversion system 224 includes a set of components 510 that operates on a set of input data (e.g., one or more monocular images or videos depicting real-world objects such as people or training data). The set of input data is obtained during a training phase from one or more databases ( Figure 3 ) and, for example, from the RGB camera of the client device 102 when the AR / VR application is used by the messaging client 104. The motion and appearance conversion system 224 includes multiple machine learning technologies (e.g., a first machine learning technology module and a second machine learning technology module). In particular, the motion and appearance conversion system 224 includes an appearance extraction module 512, a motion extraction module 514, an AR effect module 519, an image rendering module 518, a 3D body tracking module 513, and a full body segmentation module 515.

[0107] The motion and appearance conversion system 224 can enable an AR experience in which a first person can be depicted as wearing an outfit worn by a second person. For example, the motion and appearance conversion system 224 enables the first person to capture a first video or image of the first person, such as using a front-facing camera of the first person's client device 102. The first video or image can depict the first person performing a first gesture or motion and wearing a first outfit (e.g., a T-shirt, pants, jewelry, etc.). The motion and appearance conversion system 224 captures the first image or video of the first person, for example, by activating a front- or rear-facing image capture device (camera) of the first person's client device 102.

[0108] The motion and appearance conversion system 224 enables the first person to capture or receive a second video or image of the second person, for example, using a rear camera or via a message received in a communication session (e.g., a chat interface). The second video or image may depict the second person performing a second gesture or movement and wearing a second garment, which is different from the first garment and the first gesture or movement worn by the first person depicted in the first image or video. In some examples, the motion and appearance conversion system 224 may receive the second video or image of the second person from the client device 102 of the second person in real time, rather than using the client device 102 of the first person to capture the second image or video. For example, the motion and appearance conversion system 224 may enable the first person to capture the second image or video of the second user by pointing the image capture device (e.g., front or rear camera) of the client device 102 of the first person in the direction of the second person. In another example, the motion and appearance conversion system 224 may enable the second person to capture the second image or video of the second person using the client device 102 of the second person, and send the captured second image or video from the client device 102 of the second person to the client device 102 of the first person via the communication session.

[0109] The motion and appearance conversion system 224 applies the appearance extraction module 512 to extract the appearance features of the second person from the second image or video depicting the second person. In some cases, the appearance extraction module 512 extracts the appearance features and the motion features of the second person from the second image or video depicting the second person at the same time, but only retains the appearance features. The motion and appearance conversion system 224 also extracts the motion features of the first person from the first image or video by applying the motion extraction module 514 to the first image or video depicting the first person. The motion extraction module 514 can extract the appearance features and the motion features of the first person from the first image or video depicting the first person at the same time, but only retains the motion features. The motion and appearance features can be extracted by applying the first image or video and the second image or video to a feature extraction network (e.g., a first neural network or a first machine learning technique). The first image or video and the second image or video can be applied to the first neural network in parallel or sequentially to extract appearance and / or motion features from the first image or video and the second image or video. That is, the appearance extraction module 512 and the motion extraction module 514 can be implemented by the first neural network or machine learning technique.

[0110] The motion and appearance conversion system 224 can then present a new image or video that depicts a second person in the pose of the first person but wearing a second garment. In one example, the motion and appearance conversion system 224 applies the appearance features of the second person extracted from the second image or video together with the motion features of the first person extracted from the first image or video to an image generation system (e.g., a second neural network implemented by the image rendering module 518). The image rendering module 518 can present a third image or video depicting the second person in the pose or motion of the first person based on the appearance and motion features received from the first machine learning technology module. The image rendering module 518 can then apply another neural network implemented by the full body segmentation module 515 to generate a segmentation of the garment worn by the second person now in the pose of the first person. That is, the full body segmentation module 515 can be applied to a third image or video depicting the second person in the pose or motion of the first person.

[0111] After generating the segmentation, the mask can be applied to the third image or video to obtain the pixel values ​​and positions of the clothing worn by the second person. Then, the image rendering module 518 can use the appearance and motion features of the first video depicting the first person wearing the clothing worn by the second person and use the pixel values ​​and positions of the clothing worn by the second person to render a fourth new image or video. Specifically, the image rendering module 518 can replace the pixel values ​​and positions of the first video with the pixel values ​​and positions obtained by using the mask applied to the third video. This produces a fourth image or video, which depicts the first person wearing the second clothing worn by the second person depicted in the second video instead of the first clothing. In some examples, the image rendering module 518 can implement a single neural network that is trained to render a new image or video that replaces the clothing worn by the person in the first video with a different clothing worn by another person in the second video. In this case, the image rendering module 518 can present only one new image or video based on receiving motion and appearance features extracted from the first video depicting the first person wearing the first clothing and the second video depicting the second person wearing the second clothing.

[0112] During training, the motion and appearance conversion system 224 receives a set of training images or videos from the training data 501. The motion and appearance conversion system 224 applies one or more machine learning techniques to the given set of training images or videos using the first machine learning technique module and the second machine learning technique module. The first machine learning technique module and the second machine learning technique module extract one or more features from the given set of training images or videos to present an estimated image or video that depicts a person with a specific appearance that matches the appearance of another person (e.g., the clothing of the person in the estimated image or video can be modified to match the clothing worn by the other person). The first machine learning technique module and the second machine learning technique module can be trained end-to-end until a stopping criterion is met.

[0113] In an example, to train the first and second machine learning techniques of the motion and appearance conversion system 224, the motion and appearance conversion system 224 obtains a first pair of training images or videos. The first pair of training images or videos includes a first training image or video that depicts a given person wearing a particular article of clothing (full body or partial body attire) and performing a first motion or gesture. The first pair of training images or videos includes a second training image or video that depicts the same given person wearing a different article of clothing (full body or partial body attire) and performing a second motion or gesture. In some cases, the second training image or video depicts the same given person wearing the same article of clothing (full body or partial body attire) and performing a second motion or gesture.

[0114] The first training image or video is applied to a first machine learning technique (e.g., motion extraction module 514) to extract one or more motion features from the first training image or video. In an example, the first machine learning technique extracts both appearance and motion features, but the motion extraction module 514 retains only the motion features of the first training image or video. The motion or posture features may include 2D or 3D full body or partial body segmentation, a full body mesh, 3D posture information, and / or a set of dense key points.

[0115] The second training image or video is applied to the first machine learning technique (e.g., appearance extraction module 512) to extract one or more appearance features from the second training image or video. In the example, the first machine learning technique extracts both appearance and motion features, but the appearance extraction module 512 retains only the appearance features of the second training image or video. The appearance features may include 2D or 3D texture and pixel color information as well as full or partial body segmentation and full or partial clothing article (garment) segmentation and / or a set of dense key points.

[0116] The appearance features extracted from the second training image or video and the motion features extracted from the first training image or video are applied to an image rendering module 518 (e.g., a second machine learning technique). The image rendering module 518 generates or estimates a new image or video in which a given person depicted in the first training image or video is depicted wearing the same particular article of clothing as the given person depicted in the second training image or video. That is, the second machine learning technique is trained to generate an image or video that preserves the motion of the person in the first image, but has an appearance in which the clothing is replaced to replicate the clothing worn by another person in the second image or video.

[0117] In one example, to generate an image or video that retains the motion of a person in a first image but has an appearance in which clothing is replaced to replicate clothing worn by another person in a second image or video, the image rendering module 518 generates or renders one or more intermediate images or videos. Specifically, the image rendering module 518 can generate the intermediate images or videos by applying motion features of a given person depicted in a first training image or video and appearance features of a given person depicted in a second training image or video to a neural network. The neural network renders the intermediate images or videos based on the received motion and appearance features to depict the given person in the second training image or video performing the motion or gesture of the given person in the first training image or video. In this way, the intermediate images can represent the given person in the second training image or video as wearing the same clothing but in a different posture or motion corresponding to the posture or motion of the given person in the first training image or video.

[0118] The intermediate image or video is applied to a full body segmentation module 515. The full body segmentation module 515 implements a neural network that is trained to generate segmentations of articles of clothing (whole body or partial body) worn by the person depicted in the image or video. The full body segmentation module 515 outputs a segmentation of the boundaries or regions of the intermediate image that identify the full body attire or clothing worn by a given person. The full body segmentation module 515 can also apply a mask based on the segmentation to obtain a set of pixels (values ​​and positions) representing the clothing worn by the given person in the intermediate image. The image rendering module 518 uses these obtained pixel groups to replace a corresponding set of pixels in the first training image or video of the given person. This produces a new image or video that retains the movement of the person in the first training image but has the appearance of clothing worn by the given person in the second training image or video where the clothing is replaced to replicate.

[0119] The motion and appearance conversion system 224 compares the generated or estimated new image or video with the second training image or video to calculate the deviation. Specifically, during training, the motion and appearance conversion system 224 presents an image or video that is close to the second training image or video in which the person depicted in the first training image is wearing a different outfit. That is, the motion and appearance conversion system 224 adapts the appearance and motion of the same person depicted in one outfit in the first training image to match the different outfit of the same person depicted in the second training image. Based on the closeness of the presented image or video to the second training image or video, the motion and appearance conversion system 224 makes a determination that the training is complete.

[0120] In an example, the motion and appearance conversion system 224 updates one or more parameters of the first machine learning technique and / or the second machine learning technique based on the calculated deviation. The motion and appearance conversion system 224 determines whether the calculated deviation is within a threshold error, or whether a certain number of iterations or epochs have been performed to determine whether the stopping criteria are met. In response to determining that the stopping criteria have been met, the motion and appearance conversion system 224 completes the training and stores the parameters and coefficients of the machine learning technique in the trained machine learning technique 307. In response to determining that the stopping criteria have not been met, the motion and appearance conversion system 224 obtains a second pair of training images or videos, which depicts the same person wearing different clothing articles and performing different motions or gestures. The motion and appearance conversion system 224 iterates the above training process to present a new image in which the clothing worn by the person in one of the training images or videos is modified to mirror or replicate the clothing worn by the person in the second of the training images or videos. The parameters of the first machine learning technique and / or the second machine learning technique are updated again, and the deviation is calculated to determine whether the stopping criteria are met.

[0121] In this way, the motion and appearance conversion system 224 trains the machine learning technology module to establish a relationship between the appearance and motion of a person in a first image or video, the appearance and motion of a person in a second image or video, and the presented images or videos of the person in the first image or video wearing different clothing corresponding to the clothing worn by the second person in the second image or video.

[0122] After the motion and appearance conversion system 224 trains the first machine learning technology module and the second machine learning technology module, the motion and appearance conversion system 224 can receive a new image pair. The motion and appearance conversion system 224 can generate a new image in which the appearance of a person in one of the new image pairs is modified so that the clothing worn by the person is changed to match the clothing worn by the person in the second image in the new image pair. In particular, the motion and appearance conversion system 224 can receive input from a first person, which selects a first image or video depicting a first person performing a first motion and wearing a first clothing. The AR effect module 519 can receive input from the first person to activate an AR experience in which the clothing of another person in the target image or video is used to modify the first clothing worn by the first person in the first image or video. In response, the motion and appearance conversion system 224 receives a target image or video depicting a second person wearing a second clothing and performing a second motion or gesture. The motion and appearance conversion system 224 can extract motion features of the first person depicted in the first image or video, and can extract appearance features of the second person depicted in the target image or video. The motion and appearance conversion system 224 applies the appearance features and the motion features to a second neural network (eg, the image rendering module 518).

[0123] The image rendering module 518 renders an intermediate image or video depicting the second person wearing the second garment and performing the first movement or gesture of the first person. In some examples, the image rendering module 518 renders the intermediate image or video based on the 3D body tracking information obtained from the 3D body tracking module 513 and the full body segmentation obtained from the full body segmentation module 515. The 3D body tracking module 513 can continuously track the movement of the first person depicted in the first image or video so that the image rendering module 518 can continuously and in real time update the movement or gesture of the second person depicted in the second image or video. The full body segmentation module 515 can continuously generate a full body segmentation of the first person depicted in the first image or video so that the image rendering module 518 can continuously and in real time update the movement and appearance of the second person in the intermediate image or video.

[0124] The image rendering module 518 applies the full-body clothing segmentation to the intermediate image or video to generate the full-body clothing segmentation. That is, after generating the intermediate image or video for depicting the second person wearing the second clothing in the posture of the first person depicted in the first image or video, the clothing segmentation of the second person can be generated. Then, the mask is applied to the clothing segmentation to obtain the pixels corresponding to the clothing worn by the second person. Then, the image rendering module 518 uses the obtained pixels to present a new image or video based on the first image or video, in which the first person is depicted as wearing the second clothing worn by the second person in the second image or video. In one example, the image rendering module 518 copies and pastes the pixels of the second clothing obtained from the mask generated based on the intermediate image or video to the corresponding pixel positions of the first video depicting the first person wearing the first clothing. This produces a depiction of the first person wearing the second clothing.

[0125] Figure 6 is a graphical representation of the output of the motion and appearance conversion system 224 according to some examples. Specifically, Figure 6 A 3D body mesh 600 extracted by a first machine learning technique module (e.g., appearance extraction module 512 and motion extraction module 514) is shown. The 3D body mesh 600 can be associated with one or more appearance and / or motion features also extracted by the first machine learning technique module. In one example, the one or more appearance and / or motion features can include a 3D pose of a person depicted in one of the images or videos, a full body segmentation, a set of dense key points, texture, color, and / or clothing segmentation of a person depicted in the image or video.

[0126] In one example, if Figure 7 As shown in diagram 700 of FIG. 700 , the motion and appearance conversion system 224 may receive a first image or video 710, for example, from a rear-facing camera of a first person's client device 102. The first image or video 710 depicts a second person performing a first motion while wearing a first garment (e.g., a shirt and pants or a dress). The motion and appearance conversion system 224 may receive a second image or video 720, for example, from a front (or rear) camera of the first person's client device 102. The second image or video 720 may depict the first person performing a second motion and wearing a second garment (e.g., a second shirt and pants).

[0127] The first image or video 710 may be received simultaneously with the second image or video 720. In this case, the front camera and the rear camera of the first person's client device 102 may be activated simultaneously. The display of the client device 102 may display the image or video captured by the front camera in one area of ​​the screen and the image or video captured by the rear camera in a second area of ​​the screen. These areas may overlap, so that the image or video captured by the front camera is displayed on top of the image or video captured by the rear camera, for example in a top corner or a bottom corner.

[0128] In one example, the first image or video 710 may be received and captured in real time along with the second image or video 720. In one example, the second image or video 720 may be initially captured and received prior to capturing the first image or video 710. In one example, the first image or video 710 may be initially captured and received prior to capturing the second image or video 720.

[0129] The motion and appearance conversion system 224 can apply a first instance 730 of the first machine learning technique to the first image or video 710. The first instance 730 of the first machine learning technique can extract appearance features from the first image or video 710. The appearance features represent how a second person looks in the first image or video, including texture and color of the second person and clothing segmentation of the second person. The motion and appearance conversion system 224 can apply a second instance 731 of the first machine learning technique to the second image or video 720. The second instance 731 of the first machine learning technique can extract motion features from the second image or video 720. The motion features represent how the first person moves in the second image or video, including 3D body pose and 3D body segmentation of the first person.

[0130] The motion and appearance conversion system 224 applies the appearance and motion features extracted from the first image or video 710 and the second image or video 720 to the second machine learning technique 740. The second machine learning technique 740 renders a new image or video 750 that depicts the first person having the appearance of the first person and wearing the second clothing worn by the second person depicted in the first image or video 710. The new image or video 750 can be displayed on the same client device 102 along with the first image or video and the second image or video so that the first person can see the changes to the first person's clothing in real time.

[0131] Figure 8800 is a flow chart of a process 800 performed by the motion and appearance transformation system 224 according to some examples. Although the flow chart may describe the operations as a sequential process, 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. A process may correspond to a method, a procedure, 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).

[0132] At operation 801, the motion and appearance conversion system 224 (e.g., the client device 102 or the server) receives a first video that includes a depiction of a first person wearing a first garment in a first pose (as described above). For example, a second image or video 720 may be received from a front-facing camera of the first person's client device 102 that depicts the first person wearing the first garment and in the first pose.

[0133] At operation 802, the motion and appearance conversion system 224 obtains a second video including a depiction of a second person wearing a second garment in a second pose (as described above). For example, a first image or video 710 may be received from a rear camera of the first person's client device 102, the first image or video 710 depicting the second person wearing the second garment and in a second pose.

[0134] At operation 803, the motion and appearance conversion system 224 modifies the pose of the second person depicted in the second video from the second pose to the first pose to match the first pose of the first person depicted in the first video (as described above). For example, the second machine learning technique 740 can generate or render an intermediate image or video in which the pose of the second person is modified to mirror or replicate the pose of the first person depicted in the second image or video 720. The intermediate image or video can be generated or rendered based on the motion and appearance features extracted from the first image or video 710 and the second image or video 720 by the first machine learning technique instance 730 and the second machine learning technique instance 731.

[0135] At operation 804, after modifying the pose of the second person to match the first pose of the first person, the motion and appearance conversion system 224 generates a full body segmentation of the second garment worn by the second person in the second video (as described above). For example, the second machine learning technique 740 can apply full body segmentation (or full body garment segmentation) to the intermediate image or video to generate a segmentation of the second garment worn by the second person, the segmentation representing the boundaries of the second garment.

[0136] At operation 805, the motion and appearance conversion system 224 changes the appearance of the first person from wearing the first garment to wearing the second garment based on the full body segmentation of the second garment worn by the second person in the second video (as described above). For example, the second machine learning technique 740 can obtain pixels from the segmentation of the second garment to modify the corresponding pixel values ​​of the second image or video 720. This produces a new image or video depicting the first person wearing the second garment instead of the first garment.

[0137] Machine Architecture

[0138] Fig. 9 It is a diagrammatic representation of a machine 900 within which instructions 908 (e.g., software, programs, applications, applet, app, or other executable code) may be executed for causing the machine 900 to perform any one or more of the methods discussed herein. For example, the instructions 908 may cause the machine 900 to perform any one or more of the methods described herein. The instructions 908 transform a general-purpose, unprogrammed machine 900 into a specific machine 900 that is programmed to perform the functions described and shown in the manner described. The machine 900 may operate as a standalone device or may be coupled (e.g., networked) to other machines. In a networked deployment, the machine 900 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 900 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 908 specifying actions to be taken by the machine 900. In addition, although only a single machine 900 is shown, the term "machine" should also be considered to include a collection of machines that individually or jointly execute instructions 908 to perform any one or more of the methods discussed herein. For example, the machine 900 may include any of the client device 102 or a number of server devices that form part of the messaging server system 108. In some examples, the machine 900 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.

[0139] The machine 900 may include a processor 902, a memory 904, and an input / output (I / O) component 938 that may be configured to communicate with each other via a bus 940. In an example, the processor 902 (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 906 and a processor 910 that execute instructions 908. 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. 9 Multiple processors 902 are shown, but the machine 900 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.

[0140] The memory 904 includes a main memory 912, a static memory 914, and a storage unit 916, which are all accessible by the processor 902 via the bus 940. The main memory 904, the static memory 914, and the storage unit 916 store instructions 908 that embody any one or more of the methods or functions described herein. The instructions 908 may also reside, completely or partially, within the main memory 912, within the static memory 914, within a machine-readable medium within the storage unit 916, within at least one of the processors 902 (e.g., within a cache memory of a processor), or within any suitable combination thereof during execution thereof by the machine 900.

[0141] The I / O components 938 may include various components for receiving input, providing output, generating output, sending information, exchanging information, capturing measurements, etc. The specific I / O components 938 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 the I / O components 938 may include Fig. 9924 and 926. In various examples, the I / O components 938 may include a user output component 924 and a user input component 926. The user output component 924 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 926 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.

[0142] In other examples, the I / O component 938 may include a biometric component 928, a motion component 930, an environmental component 932, or a position component 934, as well as various other components. For example, the biometric component 928 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, sweating, or brain waves), identifying people (e.g., voice recognition, retinal recognition, facial recognition, fingerprint recognition, or EEG-based recognition), etc. The motion component 930 includes an acceleration sensor component (e.g., an accelerometer), a gravity sensor component, and a rotation sensor component (e.g., a gyroscope).

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

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

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

[0146] The position component 934 includes a position sensor component (e.g., a GPS receiver component), an altitude sensor component (e.g., an altimeter or barometer that detects air pressure, from which the altitude can be obtained), an orientation sensor component (e.g., a magnetometer), and the like.

[0147] A variety of technologies can be used to achieve communication. The I / O component 938 also includes a communication component 936, which is operable to couple the machine 900 to the network 920 or the device 922 via a corresponding coupling or connection. For example, the communication component 936 may include a network interface component or other suitable device that interfaces with the network 920. In other examples, the communication component 936 may include a wired communication component, a wireless communication component, a cellular communication component, a near field communication (NFC) component, a Bluetooth component (e.g., Bluetooth low energy), a Wi-Fi component, and other communication components that provide communication via other modalities. The device 922 can be any peripheral device of another machine or a variety of peripheral devices (e.g., a peripheral device coupled via USB).

[0148] In addition, the communication component 936 can detect the identifier or include a component that can be operated to detect the identifier. For example, the communication component 936 may 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 a one-dimensional barcode such as a universal product code (UPC) barcode, a multi-dimensional barcode such as a quick response (QR) code, an Aztec code, a data matrix, a data symbol (Dataglyph), a maximum code (MaxiCode), PDF417, Ultra Code, UCC RSS-2D barcode, and other optical codes) or an acoustic detection component (e.g., a microphone for identifying a marked audio signal). In addition, various information can be derived via the communication component 936, such as a location derived via Internet Protocol (IP) geolocation, a location derived via Wi-Fi signal triangulation, a location derived via detection of an NFC beacon signal that can indicate a specific location, etc.

[0149] Various memories (e.g., main memory 912, static memory 914, and memory of processor 902) and storage unit 916 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 902, these instructions (e.g., instructions 908) cause various operations to implement the disclosed examples.

[0150] The instructions 908 may be sent or received over the network 920 using a transmission medium via a network interface device (e.g., a network interface component included in the communication component 936) and using any of several well-known transmission protocols (e.g., HTTP). Similarly, the instructions 908 may be sent or received via a coupling (e.g., a peer-to-peer coupling) with the device 922 using a transmission medium.

[0151] Software Architecture

[0152] Fig.10 1000 is a block diagram illustrating a software architecture 1004 that may be installed on any one or more of the devices described herein. The software architecture 1004 is supported by hardware, such as a machine 1002 including a processor 1020, a memory 1026, and an I / O component 1038. In this example, the software architecture 1004 may be conceptualized as a stack of layers, where each layer provides specific functionality. The software architecture 1004 includes layers such as an operating system 1012, a library 1010, a framework 1008, and an application 1006. In operation, the application 1006 invokes an API call 1050 through the software stack and receives a message 1052 in response to the API call 1050.

[0153] The operating system 1012 manages hardware resources and provides public services. The operating system 1012 includes, for example, a core 1014, a service 1016, and a driver 1022. The core 1014 serves as an abstraction layer between the hardware and other software layers. For example, the core 1014 provides functions such as memory management, processor management (e.g., scheduling), component management, networking, and security settings. The service 1016 can provide other public services for other software layers. The driver 1022 is responsible for controlling the underlying hardware or interfacing with the underlying hardware. For example, the driver 1022 may include a display driver, a camera driver, a Bluetooth or Bluetooth low energy driver, a flash drive, a serial communication driver (e.g., a USB driver), a WI-FI driver, an audio driver, a power management driver, etc.

[0154] The library 1010 provides a common low-level infrastructure used by the application 1006. The library 1010 may include a system library 1018 (e.g., a C standard library) that provides functions such as memory allocation functions, string manipulation functions, mathematical functions, etc. In addition, the library 1010 may include an API library 1024, 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 rendering in 2D and 3D in graphics 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 1010 may also include various other libraries 1028 to provide many other APIs to the application 1006 .

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

[0156] In the example, the application 1006 may include a home application 1036, a contact application 1030, a browser application 1032, a book reader application 1034, a location application 1042, a media application 1044, a messaging application 1046, a game application 1048, and a variety of other applications such as an external application 1040. Application 1006 is a program that executes the functions defined in the program. Various programming languages ​​can be used to create one or more of the applications 1006 constructed in various ways, such as object-oriented programming languages ​​(e.g., Objective-C, Java, or C++) or procedural programming languages ​​(e.g., C or assembly language). In a specific example, an external application 1040 (e.g., an application developed using ANDROID or IOS SDK by an entity other than a supplier of a specific platform) can be a mobile software running on a mobile operating system such as IOS, ANDROID, WINDOWS Phone, or other mobile operating systems. In this example, the external application 1040 can activate an API call 1050 provided by the operating system 1012 to facilitate the functions described herein.

[0157] Glossary

[0158] "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.

[0159] "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, desktop computer, laptop computer, PDA, smart phone, tablet computer, ultrabook, netbook, notebook computer, multiprocessor system, microprocessor-based or programmable consumer electronics, game console, set-top box, or any other communications device that a user may use to access a network.

[0160] "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.

[0161] "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.

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

[0163] 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 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 a specific machine (or a specific component of a machine) that is uniquely customized to perform the configured function, 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 (e.g., configured by software) circuit 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.

[0164] 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, such as to constitute a specific hardware component at one time and to constitute different hardware components at different times.

[0165] 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).

[0166] 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 or processor-implemented components. In addition, one or more processors may also be operated to support the execution of related operations in a "cloud computing" environment or operate as "software as a service" (SaaS). 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 resident 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.

[0167] "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.

[0168] "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.

[0169] "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."

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

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

[0172] 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, include: receiving, by one or more processors, a first video including a depiction of a first person wearing a first garment in a first pose; obtaining a second video including a depiction of a second person wearing a second garment in a second pose; modifying a second pose of the second person depicted in the second video from the second pose to the first pose to match a first pose of the first person depicted in the first video; generating a full body segmentation of a second garment worn by the second person in the second video after modifying the second pose of the second person to match the first pose of the first person; and Based on the full body segmentation of the second clothing worn by the second person in the second video, appearance data representing the appearance of the first person is changed from wearing the first clothing to wearing the second clothing.

2. The method according to claim 1, in, Changing the appearance data associated with the first person includes: extracting appearance and motion data associated with the first person from the first video; extracting appearance and motion data associated with the second person from the second video; modifying the athletic data associated with the second person to match the athletic data associated with the first person; After modifying the motion data associated with the second person, applying a mask to the appearance data associated with the second person based on the full body segmentation to obtain pixels corresponding to the second garment; replacing portions of the appearance data associated with the first person based on the pixels in the mask applied to the appearance data associated with the second person; and Based on replacing the portion of the appearance data associated with the first person, a third video is generated, the third video including a depiction of the first person wearing the second garment instead of the first garment.

3. The method according to any one of claims 1 to 2, further comprising: include: applying the mask to appearance data associated with the first person to identify a set of target pixels; as well as The pixels corresponding to the second garment are copied to the set of target pixels.

4. The method according to any one of claims 1 to 3, in, Modifying the second person's posture includes: extracting appearance data associated with the second person from the second video; extracting the movement of the first person from the first video; and A third video is generated that includes a depiction of the second person having appearance data associated with the second person and motion data associated with the first person.

5. The method according to claim 4, further comprising: include: applying a mask to the third video to obtain a set of pixels corresponding to the second garment; as well as Pixels within the mask are copied to corresponding pixel locations in the first video to generate a fourth video that includes a depiction of the first person wearing the second garment instead of the first garment.

6. The method according to any one of claims 1 to 5, in, The appearance data associated with the second person includes three-dimensional (3D) pose, full body segmentation, a set of dense keypoints, texture, color, and clothing segmentation.

7. The method according to any one of claims 1 to 6, in, Extracting the appearance and motion data associated with the first person and the second person includes applying a first machine learning technique to the first video and the second video, the first machine learning technique being trained to estimate appearance and motion data associated with an input video.

8. The method according to claim 7, in, The first machine learning technique is trained to simultaneously generate a three-dimensional (3D) pose of a given real-world object depicted in the input video, a full-body segmentation of the given real-world object, a set of dense key points, texture, color of the given real-world object, and clothing segmentation of the given real-world object.

9. The method according to any one of claims 1 to 8, further comprising: include: The motion data associated with the first person extracted from the first video and the appearance data associated with the second person extracted from the second video are applied to a second machine learning technique, and the second machine learning technique is trained to apply the motion data associated with a third person to the appearance data associated with a fourth person and present a new video depicting the third person wearing the fourth person's clothes.

10. The method of claim 9, further comprising training the first machine learning technique and the second machine learning technique by iterating through a series of operations, the series of operations include: receiving a first training video depicting a training person in a first training posture and wearing a first training garment; receiving a second training video depicting the training person in a second training posture and wearing a second training garment; applying the first machine learning technique to the first training video and the second training video to generate first and second sets of estimated appearance and motion data associated with the training person; as well as Applying first and second sets of estimated appearance and motion data associated with the training person to the second machine learning technique to generate a depiction of the training person wearing the second training garment.

11. The method according to any one of claims 1 to 10, further comprising: include: calculating a deviation between the generated depiction of the training person wearing the second training garment and the second training video depicting the training person wearing the second training garment; as well as One or more parameters of the first machine learning technique and the second machine learning technique are updated based on the calculated deviation.

12. The method according to any one of claims 1 to 11, in, The first machine learning technique includes an appearance and motion data extraction module, and the second machine learning technique includes an image generator module.

13. The method according to any one of claims 1 to 12, further comprising: include: capturing the second video depicting the second person using an image capture device of the first person's client device; as well as After capturing the second video, capturing the first video depicting the first person using the image capture device, wherein a third video is generated in response to capturing the first video after capturing the second video, the third video depicting the first person wearing a second garment worn by the second person.

14. The method according to claim 13, in, The second video is captured using a rear camera of the client device, and the first video is captured using a front camera of the client device.

15. The method according to any one of claims 1 to 14, in, The first video and the second video are captured simultaneously using different cameras of the client device.

16. The method according to any one of claims 1 to 15, in, As the first video and the second video are captured, a third video is generated in real time depicting changes in the appearance of the first person.

17. A system, include: processor; as well as A memory component, wherein the memory component stores instructions, and when the instructions are executed by the processor, the processor performs operations, the operations comprising: receiving a first video including a depiction of a first person wearing a first garment in a first pose; obtaining a second video including a depiction of a second person wearing a second garment in a second pose; modifying a second pose of the second person depicted in the second video from the second pose to the first pose to match a first pose of the first person depicted in the first video; generating a full body segmentation of a second garment worn by the second person in the second video after modifying the second pose of the second person to match the first pose of the first person; and Based on full body segmentation of the second clothing worn by the second person in the second video, appearance data representing the appearance of the first person is changed from wearing the first clothing to wearing the second clothing.

18. The system according to claim 17, in, Changing the appearance data associated with the first person includes: extracting appearance and motion data associated with the first person from the first video; extracting appearance and motion data associated with the second person from the second video; modifying the athletic data associated with the second person to match the athletic data associated with the first person; After modifying the motion data associated with the second person, applying a mask to the appearance data associated with the second person based on the full body segmentation to obtain pixels corresponding to the second garment; replacing portions of the appearance data associated with the first person based on the pixels in the mask applied to the appearance data associated with the second person; and Based on replacing the portion of the appearance data associated with the first person, a third video is generated, the third video including a depiction of the first person wearing the second garment instead of the first garment.

19. The system according to any one of claims 17 to 18, wherein the operation further include: applying the mask to appearance data associated with the first person to identify a set of target pixels; as well as The pixels corresponding to the second garment are copied to the set of target pixels.

20. A computer-readable storage medium having instructions stored thereon, wherein when the instructions are executed by a processor, the processor is caused to perform an operation, wherein the operation include: receiving a first video including a depiction of a first person wearing a first garment in a first pose; obtaining a second video including a depiction of a second person wearing a second garment in a second pose; modifying a second pose of the second person depicted in the second video from the second pose to the first pose to match a first pose of the first person depicted in the first video; generating a full body segmentation of the second garment worn by the second person in the second video after modifying the second pose of the second person to match the first pose of the first person; and Based on full body segmentation of the second clothing worn by the second person in the second video, appearance data representing the appearance of the first person is changed from wearing the first clothing to wearing the second clothing.

Citation Information

Cited By

  • Real-time garment exchange

    US12223672B2

  • Side-by-side character animation from realtime 3D body motion capture

    US12243173B2

  • Real-time upper-body garment exchange

    US12646268B2