Selecting AR button on hand

By displaying multiple AR objects on the smart glasses platform and dynamically adjusting their selection areas, the problem of unintuitive user operations and steep learning curve is solved, and more efficient and accurate virtual content interaction is achieved.

CN119836613APending Publication Date: 2025-04-15SNAP INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202380063922.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2022-09-07
Filing Date
2023-09-05
Publication Date
2025-04-15

AI Technical Summary

Technical Problem

When interacting with virtual content, the existing smart glasses platform has unintuitive user operations and a steep learning curve, making it difficult for users to perform interactive actions accurately and waste resources.

Method used

By displaying multiple AR objects on the first real-world object and dynamically adjusting the object selection area of ​​each AR object based on the position of the second real-world object, the user is allowed to select virtual content above the AR object using his finger.

Benefits of technology

Improves the accuracy and efficiency of users' interaction with virtual content, reduces the information input and wrong selection required to complete tasks, and enhances the efficiency, appeal and practicality of electronic devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119836613A_ABST
    Figure CN119836613A_ABST
Patent Text Reader

Abstract

Systems and methods are provided for performing an augmented reality (AR) button selection operation on an AR device. The system displays, by an AR device, a plurality of AR objects on a display area overlapping a first real-world object, each of the plurality of AR objects being associated with an object selection area. The system calculates a first spatial relationship factor for a first AR object of the plurality of AR objects based on a position of the first AR object relative to a position of the second real-world object, and adjusts an object selection region for the first AR object based on the first spatial relationship factor. The system activates the first AR object in response to determining that the second real-world object overlaps the object selection area of the first AR object.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Priority claim

[0002] This application claims the benefit of U.S. patent application serial number 17 / 939,296, filed on September 7, 2022, which is incorporated herein by reference in its entirety. Background Art

[0003] Some eyeglass devices that support electronic devices, such as so-called smart glasses, allow users to interact with virtual content (e.g., augmented reality (AR) objects) while engaging in some activities. The user wears the eyeglass device and can view the real world environment through the eyeglass device while interacting with the virtual content displayed by the eyeglass device. BRIEF DESCRIPTION OF THE DRAWINGS

[0004] Each of the figures in the drawings depicts only examples of the present disclosure and should not be considered to limit the scope of the present disclosure.

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

[0006] Figure 2 is a diagrammatic representation of a messaging system having both client-side and server-side functionality according to some examples.

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

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

[0009] Figure 5 is a perspective view of an eyewear device according to some examples.

[0010] Figure 6 is a flow diagram illustrating example operations of an AR button selection system according to some examples.

[0011] Figures 7 to 9 are illustrative screens of graphical user interfaces for an AR button selection system according to some examples.

[0012] Fig.10 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.

[0013] Fig.11 is a block diagram illustrating a software architecture in which an example may be implemented. DETAILED DESCRIPTION

[0014] The following description discusses 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 the various examples of the disclosed subject matter. However, it will be apparent to those skilled in the art that the examples of the disclosed subject matter can be practiced without these specific details. Generally, known instruction instances, protocols, structures, and techniques need not be shown in detail.

[0015] Typical smart glasses platforms allow users to interact with various types of virtual content. Such platforms are configured to display virtual content in the lenses of the smart glasses on top of the real-world environment seen through the lenses of the smart glasses. In order to interact with the virtual content, the smart glasses typically include embedded sensors. The smart glasses can detect touch or slide inputs based on the information detected by the embedded sensors, and can then update the display of the virtual content. Interacting with the embedded sensors to perform various modifications to the virtual content is not very intuitive and has a very steep learning curve. Therefore, the user cannot accurately perform various desired interactions with the virtual content, which weakens the user's overall experience. In addition, due to the steep learning curve, users usually have to re-perform certain actions multiple times until they learn how to use the sensors, which wastes the resources of the smart glasses.

[0016] Some smart glasses platforms use hand or gesture recognition to allow users to interact with virtual content. Specifically, smart glasses can detect gestures in images captured by the smart glasses and can perform corresponding modifications to the virtual content. The detection of gestures used to perform virtual content selection (e.g., when multiple identical real-world objects (e.g., two hands) are tracked) lacks accuracy, which can lead to incorrect virtual object selection. In particular, using one hand to select an object displayed on the other hand is generally not detected with sufficient accuracy to allow seamless and accurate object navigation and selection. This can lead to a lack of use of the smart glasses and diminish the overall enjoyment of using the smart glasses.

[0017] The disclosed example improves the efficiency of using an electronic device by providing an AR system that allows a user to interact with virtual content or AR objects displayed by an AR device. In particular, the disclosed example can present an AR object on a first real-world object (e.g., a first real-world hand) and enable one of the AR objects to be selected by tracking and detecting the movement of a second real-world object (e.g., a second real-world hand or a finger or a portion of a second real-world hand). In this way, a user can use their right hand finger to select a given AR object displayed on their left hand by placing the finger on the given AR object or above the location of the given AR object. The disclosed example takes into account the spatial relationship factor between each of the displayed AR objects and the second real-world object so as to dynamically adjust the corresponding object selection area of ​​each of the displayed AR objects. This improves the accuracy of the detection of the correct AR object that the user intends to select. For example, the disclosed example maximizes or increases the size of the object selection area of ​​the first AR object relative to the object selection area of ​​the second AR object to increase the possibility of overlap between the second real-world object and the first AR object, thereby generating a better selection and activation of the first AR object than the second AR object.

[0018] Specifically, the disclosed technology displays multiple AR objects on a display area overlapping with a first real-world object through an AR device, each of the multiple AR objects being associated with an object selection area. The disclosed technology calculates a first spatial relationship factor of a first AR object among the multiple AR objects based on a position of the first AR object relative to a position of a second real-world object, and adjusts the object selection area of ​​the first AR object based on the first spatial relationship factor. The disclosed technology activates the first AR object in response to determining that the second real-world object overlaps with the object selection area of ​​the first AR object.

[0019] In this way, the disclosed examples improve the efficiency of electronic devices by reducing the amount of information pages and inputs required to complete tasks and reducing incorrect or inaccurate selections of AR objects. The disclosed examples also improve the efficiency, attractiveness, and practicality of electronic AR devices (e.g., eyeglass devices). Although the disclosed examples are provided in the context of electronic eyeglass devices, similar examples can be applied to any other type of AR wearable device, such as an AR hat, an AR watch, an AR belt, an AR ring, an AR bracelet, an AR earring, and / or an AR headset.

[0020] Networked computing environment

[0021] Figure 11 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 instance hosting multiple applications including a messaging client 104 and other external applications 109 (e.g., third-party applications). Each messaging client 104 is communicatively coupled to other instances of the messaging client 104 (e.g., hosted on respective other client devices 102), a messaging server system 108, and an external application server 110 via a network 112 (e.g., the Internet). The messaging client 104 may also communicate with locally hosted third-party applications 109 using an application program interface (API).

[0022] In some examples, the messaging system 100 includes an eyeglass device 119 that hosts the AR button selection system 107 and other applications. Although only one example of an eyeglass device 119 is shown, any number of eyeglass devices 119 may be included in the messaging system 100.

[0023] The eyewear device 119 may represent any type of AR device worn by a user, such as AR glasses, an AR hat, an AR watch, an AR belt, an AR ring, an AR bracelet, an AR earring, and / or an AR headset. The eyewear device 119 communicates with the user via the network 112 (which may include communicating via a dedicated short-range communication path, such as Bluetooth). TM or WiFi direct connection) is communicatively coupled to the client device 102. In some examples, the client device 102 includes a messaging client 104 that implements at least a portion of the AR button selection system 107. The AR button selection system 107 may include one or more machine learning models that have been trained based on training data to detect real-world objects, such as real-world hands, feet, or other body parts. Specifically, the AR button selection system 107 may capture one or more images depicting real-world objects. The AR button selection system 107 may process one or more images using the trained machine learning model to identify and segment one or more real-world objects from the image. The segmented objects are then processed to identify the three-dimensional (3D) position of parts of the object (e.g., fingers, toes, etc.) and detect the positioning of different parts. The AR button selection system 107 may provide data representing different positions of different real-world objects (e.g., a first real-world hand and a second real-world hand) that have been detected to the glasses device 119. The AR button selection system 107 may instruct the eyeglass device 119 and / or the client device 102 to adjust the size of the object selection area of ​​different AR objects presented by the eyeglass device 119 and / or the client device 102 .

[0024] In some examples, the AR button selection system 107 displays multiple AR objects on a display area overlapping with a first real-world object through an AR device (e.g., glasses device 119 and / or client device 102). Each of the multiple AR objects can be associated with an object selection area. The AR button selection system 107 calculates a first spatial relationship factor of a first AR object among the multiple AR objects based on the position of the first AR object relative to the position of the second real-world object. The AR button selection system 107 adjusts the object selection area of ​​the first AR object based on the first spatial relationship factor, and activates the first AR object in response to determining that the position of at least a portion of the second real-world object overlaps with the object selection area of ​​the first AR object.

[0025] In some examples, the AR button selection system 107 detects a first real-world object and a second real-world object within the real-world environment by applying one or more machine learning models to an image of the real-world environment captured by a camera device of the AR device. In some examples, the object selection area of ​​the first AR object is the first object selection area. In such a case, the AR button selection system 107 calculates a second spatial relationship factor of a second AR object in the plurality of AR objects based on a position of the second AR object relative to the second real-world object. The AR button selection system 107 adjusts the second object selection area of ​​the second AR object based on the second spatial relationship factor.

[0026] In some examples, the first object selection area includes a first three-dimensional (3D) height, size, and orientation, and the second object selection area includes a second 3D height, size, and orientation. In some examples, the AR button selection system 107 configures the first 3D height and size to be greater than the second 3D height and size in response to determining that the second real-world object is physically closer (closer in distance) to selecting the first AR object than the second AR object. In some examples, the AR button selection system 107 rotates the first object selection area relative to the second object selection area by a first degree in response to determining that the second real-world object is physically closer (closer in distance) to selecting the first AR object than the second AR object.

[0027] In some examples, the AR button selection system 107 draws or generates a first line from a first center of the first AR object to a point on the second real-world object. The AR button selection system 107 calculates a vector representing a directional velocity of the point on the second real-world object and generates a first spatial relation factor as a function (e.g., a dot product) of the first line and the vector.

[0028] In some examples, the AR button selection system 107 determines a first alignment factor between the first line and the vector based on the first spatial relationship factor, and determines a second alignment factor between a second line drawn from a second center of the second AR object to the point on the second real-world object. The AR button selection system 107 compares the first alignment factor to the second alignment factor. The AR button selection system 107 can determine, based on the comparison of the alignment factors, that the first alignment factor is better aligned (exceeds or crosses the alignment factor threshold) than the second alignment factor (which may not have crossed the alignment factor threshold). In some examples, the AR button selection system 107, in response to determining that the first alignment factor is better aligned than the second alignment factor, associates a larger dimension with the object selection area of ​​the first AR object compared to the object selection area of ​​the second AR object.

[0029] In some implementations, the first real-world object includes a first real-world hand or an inanimate object, such as a table, desk, chair, etc. In some implementations, the second real-world object includes a real-world stylus or a portion or finger of a second real-world hand. In some examples, multiple AR objects include a virtual keypad or keyboard, where each individual AR object is configured to be activated or caused to perform a different function or operation in response to its corresponding object selection area being overlapped by a second real-world object position.

[0030] In some examples, the AR button selection system 107 scales the size of each of the plurality of AR objects based on the size of the first real-world object. In some examples, the AR button selection system 107 continuously adjusts the object selection area as the first real-world object moves in the real-world environment. In some implementations, the AR button selection system 107 performs one or more operations in response to activating the first AR object, such as adding corresponding characters to a message or launching an application corresponding to or represented by the first AR object.

[0031] The messaging client 104 can communicate and exchange data with other messaging clients 104, eyewear devices 119, and messaging server systems 108 via the network 112. The data exchanged between the messaging clients 104 and between the messaging clients 104 and the messaging server systems 108 include functions (e.g., commands to activate functions) and payload data (e.g., text, audio, video, or other multimedia data).

[0032] 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 preferred 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. In some cases, the eyewear device 119 may be implemented as part of the client device 102, and vice versa.

[0033] 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, geolocation information, media enhancements and overlays, message content persistence conditions, social network information, and live event information. The exchange of data within the messaging system 100 is activated and controlled by functions available via a user interface (UI) of the messaging clients 104.

[0034] Turning now specifically to the messaging server system 108, an application program interface (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 handles incoming network requests via the Hypertext Transfer Protocol (HTTP) and several other related protocols.

[0035] The application program interface (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 application program interface (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 functions of the application server 114. An application program interface (API) server 116 exposes various functions supported by application server 114, including: account registration; login functionality; sending messages from a particular messaging client 104 to another messaging client 104 via application server 114, sending media files (e.g., images or videos) from messaging client 104 to messaging server 118, and possible access by another messaging client 104; setting up a collection of media data (e.g., a story); retrieving a friend list of a user of 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 within a social graph; and opening application events (e.g., related to messaging client 104).

[0036] The application server 114 hosts multiple 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 multiple message processing techniques and functions, particularly relating to the 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., referred to as 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.

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

[0038] The image processing server 122 is used to implement the scanning function of the augmented system 208. 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 one of the given identifiers to start the corresponding augmented reality experience. Starting the AR experience includes obtaining one or more augmented reality items associated with the AR experience and superimposing the augmented reality items on the image or video being presented.

[0039] 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 the social network server 124 include identifying other users of the messaging system 100 with whom a particular user has a relationship or that the particular user is "following," and identifying interests and other entities of a particular user.

[0040] 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 to launch or access 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).

[0041] In response to receiving a user selection of an option to launch or access 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 installed locally on the client device 102 can be independent of the messaging client 104 and launched separately from the messaging client 104, such as 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.

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

[0043] 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 group of users 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 has been recently used but is currently inactive (in the group of friends). The external resource may provide the ability to share items, states, conditions, or locations in an external resource with one or more members of a group of users in a chat session to participants in the conversation who each use the corresponding messaging client 104. The shared item may be an interactive chat card that members of the chat may interact with, such as to start a corresponding external resource, view specific information within an external resource, or bring members of the chat to a specific location or state within an external resource. Within a given external resource, a response message may be sent to the user on the messaging client 104. The external resource may selectively include different media items in the response based on the current context of the external resource.

[0044] 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 109 (or applets) may vary based on how the user launches the menu (e.g., from a conversational interface or from a non-conversational interface).

[0045] System Architecture

[0046] Figure 2 1 is a block diagram showing additional details about the messaging system 100 according to some examples. Specifically, the messaging system 100 is shown to include a messaging client 104 and an application server 114. The messaging system 100 contains a number of 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.

[0047] The transient timer system 202 is responsible for enforcing temporary or time-limited access to content by the messaging client 104 and the messaging server 118. The transient timer system 202 includes a plurality of timers that selectively enable access (e.g., for presentation and display) of 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). Further details regarding the operation of the transient timer system 202 are provided below.

[0048] 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 made available for a specified time period (e.g., the duration of the event to which the content relates). 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 about the existence of a particular collection to the user interface of the messaging client 104.

[0049] In addition, the collection management system 204 also includes a curation interface 206 that enables collection managers to manage and curate specific collections of content. For example, the curation interface 206 enables event organizers to curate content collections related to specific events (e.g., 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, users can be paid compensation to include user-generated content in a collection. In this case, the collection management system 204 operates to automatically pay such users to use their content.

[0050] The enhancement system 208 provides various functions that enable users to enhance (e.g., mark or otherwise modify or edit) media content associated with a message. For example, the enhancement system 208 provides functions related to the generation and publication of 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 supply 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 augmentation system 208 uses the geolocation of the client device 102 to identify a media overlay that includes the name of a business at the geolocation 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.

[0051] In some examples, the enhancement system 208 provides a user-based publishing platform that enables a user to select a geolocation on a map and upload content associated with the selected geolocation. 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 geolocation.

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

[0053] The mapping system 210 provides various geolocation functions and supports the presentation of map-based media content and messages by the messaging client 104. For example, the mapping system 210 is capable of displaying a user icon or avatar (e.g., stored in the profile data 316) on a map to indicate the current or past locations of the user's "friends" and media content (e.g., a collection of messages including photos and videos) generated by these friends in the context of the map. For example, a message posted by a user to the messaging system 100 from a particular geolocation can be displayed to the "friends" of a particular user 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 appropriate status avatars) 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.

[0054] 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 (e.g., chatting) within the context of game play, provides leaderboards for games, and also supports providing in-game rewards (e.g., game coins and items).

[0055] 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 a 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 application programming interface (API), which has 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.

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

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

[0058] 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 (such as a box art or other graphics) of the web-based external resource in the messaging client 104. Once the user selects a visual representation through the GUI of the messaging client 104 or instructs the messaging client 104 to access a feature of a web-based external resource, the messaging client 104 obtains the HTML5 file and instantiates the resources required to access the features of the web-based external resource.

[0059] 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 including 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 up 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 allows 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.

[0060] 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, an external resource including a full-scale external application (e.g., a third party or external application 109) is provided with access to a first type of user data (e.g., only a two-dimensional avatar of a user with or without different avatar features). As another example, an external resource including a small-scale version of an external application (e.g., a web-based version of a third-party application) is provided with access to a second type of user data (e.g., payment information, a two-dimensional avatar of a user, a three-dimensional avatar of a user, and an avatar with various avatar features). Avatar features include different ways to customize the look and feel of an avatar, such as different poses, facial features, clothing, etc.

[0061] Data Architecture

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

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

[0064] 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 stored in 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 and an entity type identifier (not shown).

[0065] The entity graph 308 stores information about the relationships and associations between entities. As examples only, such relationships may be interest-based or activity-based social relationships, professional relationships (e.g., working in a common company or organization).

[0066] Profile data 316 stores multiple types of profile data about a particular entity. Based on the privacy settings specified by the particular entity, profile data 316 can be selectively used and presented to other users of the messaging system 100. In the case where the entity is a person, profile data 316 includes, for example, a user name, phone number, address, settings (e.g., notification and privacy settings), and an avatar representation (or a collection of such avatar representations) selected by the user. The particular user can then selectively include one or more of these avatar representations in 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 transmit at a particular time.

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

[0068] Database 126 also stores enhancement data such as overlays or filters in enhancement table 310. Enhancement data is associated with and applied to videos (whose data is stored in video table 304) and images (whose data is stored in image table 312).

[0069] 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 the 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 the sending user based on geolocation. For example, a geolocation filter specific to a nearby or special location can be presented by the messaging client 104 within a user interface based on geolocation information determined by a global positioning system (GPS) unit of the client device 102.

[0070] Another type of filter is a data filter, which 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 at which the sending user is traveling, the battery life of the client device 102, or the current time.

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

[0072] As described above, augmented data includes augmented reality content items, overlays, image transformations, AR images, and similar items involving modifications that can be applied to image data (e.g., videos or images). This includes real-time modifications, which are modified using the device sensor (e.g., one or more cameras) of the client device 102 to capture an image and then use the modification to modify the image when the image is displayed on the screen of the client device 102. This also includes modifications to stored content (such as video clips in a gallery that can be modified). For example, in a client device 102 with access rights to multiple augmented reality content items, a user can use a single video clip with multiple augmented reality content items to view how different augmented reality content items will modify the stored clips. For example, by selecting different augmented reality content items for the same content, multiple augmented reality content items that apply different pseudo-random motion 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 being 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 function may simultaneously display how different augmented reality content items will look within different windows of the display. For example, this may enable multiple windows with different pseudo-random animations to be viewed simultaneously on the display.

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

[0074] 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 video stream can be generated using the device's sensors. In addition, computer animation models can be used to process any object, such as a person's face and parts of the human body, an animal, or a non-living thing (such as a chair, a car, or other objects).

[0075] In some examples, when a specific modification is selected together with the content to be transformed, the computing device identifies the element to be transformed, and then if the element to be transformed exists in the frame of the video, the element to be transformed is detected and tracked. The elements of the object are modified according to the modification request, thereby transforming the frame of the video stream. For different types of transformations, the transformation of the frame of the video stream can be performed by different methods. For example, for a frame transformation that mainly involves changing the form of the elements of the object, the feature points of each element of the object are calculated (for example, using an active shape model (Active Shape Model, ASM) or other known methods). Then, a grid based on the feature points is generated for each element of at least one element of the object. The grid is used to track the subsequent stages of each element 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 set of first points is generated for each element based on the modification request, and a set of second points is generated for each element based on the set of first points and the modification request. Then, the frame of the video stream can be transformed by modifying the elements of the object based on the set of first points and the set of second points and the grid. In this method, the background of the modified object can also be changed or distorted by tracking and modifying the background.

[0076] In some examples, the transformation of a partial area of ​​an object using elements of the object can be performed by calculating feature points of 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 these points. Then, the elements of the object are tracked by aligning the area of ​​each element with the position of 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; deleting at least part of the area from the frame of the video stream; including one or more new objects in 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 of the entire state space to be used to determine options for model animation.

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

[0078] Other methods and algorithms suitable for face detection can be used. For example, in some examples, landmarks are used to locate features, and landmarks represent distinguishable points that exist in most of the images considered. For example, for facial landmarks, the location of the left pupil can be used. If the initial landmarks are not recognizable (for example, if the person is wearing an eye patch), secondary landmarks can be used. Such a landmark identification process can be used for any such object. In some examples, a collection of landmarks forms a shape. The shape can be represented as a vector using the coordinates of the points in the shape. One shape is aligned with another shape using a similarity transformation (allowing translation, scaling, and rotation) that minimizes the average Euclidean distance between the shape points. The mean shape is the mean of the aligned training shapes.

[0079] In some examples, the landmark search begins with a mean shape aligned with the position and size of the face determined by a global face detector. Such a search then repeats the following steps until convergence occurs: the positioning of the shape points is adjusted by template matching of the image texture around each point to suggest a tentative shape, and the tentative shape is then conformed to the global shape model. In some systems, individual template matching 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 of the image pyramid from coarse to fine resolution.

[0080] 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, computational time, and power consumption. Complex image manipulations can include size and shape changes, emotion conversions (e.g., changing a face from a frown to a smile), state transitions (e.g., aging an object, reducing apparent age, changing gender), style transfer, application of graphical elements, and any other suitable image or video manipulations enabled by a convolutional neural network that has been configured to execute efficiently on the client device 102.

[0081] In some examples, a computer animation model for transforming image data can be used by a system in which a user can capture an image or video stream of the user (e.g., a selfie) using a client device 102 having a neural network, where the neural network operates as part of a messaging client 104 operating on the client device 102. A transformation system operating within the messaging client 104 determines the presence of a face within the image or video stream and provides a modification icon associated with the computer animation model to transform the data image, or the computer animation model can be presented as associated with an interface described herein. The modification icon includes the following changes, which can be the basis for modifying the face 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 smiley face on the user). Once the image or video stream is captured and the specified modification is selected, the modified image or video stream can be presented in a graphical user interface displayed on the client device 102. The transformation system can implement a complex convolutional neural network on a portion of the image or video stream to generate and apply the selected modification. That is, a user can capture an image or video stream, and once a modification icon has been selected, the modified result is presented to the user in real time or near real time. Furthermore, the modification can be persistent while the video stream is being captured and the selected modification icon remains toggled. Machine-taught neural networks can be used to implement such modifications.

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

[0083] 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 (each user whose record is stored 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.

[0084] A collection may also constitute a "live story", which is a collection of content from multiple users created manually, automatically, or using a combination of manual and automatic techniques. For example, a "live story" may constitute a curated stream of user-submitted content from different locations and events. Users whose client devices have location services enabled and who are at a co-located event at a particular time may be presented with the option of contributing content to a particular live story, for example, via a 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.

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

[0086] As mentioned above, the video table 304 stores video data, which in one example is associated with a message whose record is stored in 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 various images and videos stored in the image table 312 and the video table 304.

[0087] Data communication architecture

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

[0089] Message identifier 402: a unique identifier that identifies the message 400;

[0090] 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;

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

[0092] 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 of the message 400 sent or received may be stored in the video table 304;

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

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

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

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

[0097] Message story identifier 418: An identifier value that identifies one or more content collections (e.g., "Stories" 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;

[0098] 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 may be included in the message tags 420 indicating the relevant animal. The tag value may be manually generated based on user input or may be automatically generated using, for example, image recognition;

[0099] Message sender identifier 422: an identifier indicating the user of the client device 102 on which the message 400 was generated and from which the message 400 was sent (eg, a messaging system identifier, an email address, or a device identifier); and

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

[0101] The content (e.g., value) of the various components of message 400 may be pointers to locations in a table where content data values ​​are stored. For example, the image value in message image payload 406 may be a pointer to a location within image table 312 (or the address of a location within image table 312). Similarly, the value within message video payload 408 may point to data stored within 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.

[0102] Glasses equipment

[0103] Figure 5 A front perspective view of an eyeglass device 119 in the form of a pair of smart glasses including an AR button selection system 107 according to some examples is shown. The eyeglass device 119 includes a body 503, the body 503 including a frame (front piece) or a frame 506 and a pair of temples 509, the temples 509 connected to the frame 506 for supporting the frame 506 in an appropriate position on the user's face when the eyeglass device 119 is worn. The frame 506 can be made of any suitable material such as plastic or metal, including any suitable shape memory alloy. The frame 506 can include a touch input interface, which is configured to receive touch input from the user (e.g., one finger touch, two finger touches, or a combination thereof together with dragging a finger along the frame 506 such as a lateral end piece 521).

[0104] The eyewear device 119 includes a pair of optical elements in the form of a pair of lenses 512 held by corresponding optical element holders in the form of a pair of rims 515 forming part of the frame 506. The rims 515 are connected by a bridge 518. In other examples, one or both of the optical elements may be a display, a display assembly, or a combination of lenses and a display.

[0105] The frame 506 includes a pair of end pieces 521 defining lateral ends of the frame 506. In this example, various electronic components are housed in one or both of the end pieces 521. The temples 509 are coupled to the respective end pieces 521. In this example, the temples 509 are coupled to the frame 506 by respective hinges so as to be hingedly moved between a wearable mode and a folded mode, in which the temples 509 are pivoted toward the frame 506 to lie substantially flat on the frame 506. In other examples, the temples 509 may be coupled to the frame 506 by any suitable means, or may be rigidly or fixedly fastened to the frame 506 so as to be integral therewith.

[0106] Each of the temples 509 includes a front portion coupled to the frame 506 and any suitable rear portion for coupling to the user's ear, such as Figure 5 In some examples, the frame 506 is formed from a single piece of material so as to have a single or unitary structure. In some examples, the entire body 503 (including both the frame 506 and the temples 509) can be a single or unitary structure.

[0107] The eyeglass device 119 has onboard electronic components, including a computing device, such as a computer 524, or a low-power processor, which can be of any suitable type in different examples so as to be carried by the body 503. In some examples, the computer 524 is at least partially housed in one or both temples of the temple 509. In this example, various components of the computer 524 are housed in the lateral end piece 521 of the frame 506. The computer 524 includes one or more processors together with a memory (e.g., a volatile storage device, such as a random access memory or a register), a storage device (e.g., a non-volatile storage device), a wireless communication circuit system (e.g., a BLE communication device and / or a WiFi direct connection device), and a power supply. The computer 524 includes a low-power circuit system, a high-speed circuit system, and in some examples, a display processor. Various examples may include these elements in different configurations or integrated together in different ways.

[0108] The computer 524 further includes a battery 527 or other suitable portable power source. In one example, the battery 527 is disposed in one of the temples 509. Figure 5 In the illustrated eyewear device 119 , a battery 527 is shown as being disposed in one of the end pieces 521 , electrically coupled to the remainder of the computer 524 housed in the corresponding end piece 521 .

[0109] The eyeglass device 119 supports a camera, in this example, including a camera 530 mounted in one of the end pieces 521 and facing forward so as to be more or less aligned with the viewing direction of the wearer of the eyeglass device 119. The camera 530 is configured to capture digital images (also referred to herein as digital photographs or pictures) of the real world environment as well as digital video content. The operation of the camera 530 is controlled by a camera controller provided by the computer 524, and image data representing images or videos captured by the camera 530 is temporarily stored on a memory forming part of the computer 524. In some examples, the eyeglass device 119 may have a pair of cameras 530, for example housed by respective end pieces 521.

[0110] The onboard computer 524 and the lens 512 are configured together to provide an AR button selection system 107 that presents multiple AR objects (representing different AR buttons) on a first real-world object (e.g., a first real-world hand depicted in the real-world environment of the image captured by the camera 530) and enables selection of one of the AR objects using a second real-world object (e.g., a second real-world hand, stylus, finger, toe, or other (animate or inanimate) object depicted in the real-world environment of the image captured by the camera 530). Specifically, the lens 512 can display virtual content (e.g., an AR object including a virtual keyboard or keypad) and one or more real-world objects of the real-world environment. This makes it appear to the user that the virtual content is integrated within the real-world environment viewed by the user through the lens 512. In response to detecting an overlap between the position of the second real-world object and the object selection area associated with the single AR object, a single AR object or element of the virtual content can be activated.

[0111] In some examples, the AR button selection system 107 is configured to dynamically adjust the size of the object selection area of ​​each individual object based on the spatial relationship factor between the individual object and the second real-world object. For example, the AR button selection system 107 draws or generates a first (virtual) line from the first center of the first AR object to a point on the second real-world object, and calculates a vector representing the directional velocity of the point on the second real-world object. The AR button selection system 107 can calculate the dot product between the first line and the velocity to determine the alignment factor. When the value of the alignment factor is closer to the maximum alignment threshold (e.g., a smaller difference between the alignment factor and the maximum alignment threshold), the object selection area of ​​the first AR object can be increased. Similarly, when the value of the alignment factor becomes further away from the maximum alignment threshold (e.g., a larger difference between the alignment factor and the maximum alignment threshold), the object selection area of ​​the first AR object can be reduced.

[0112] In some examples, the virtual content is received from the client device 102. In some examples, the virtual content is received directly from the application server 114.

[0113] The eyeglass device 119 includes an accelerometer and / or a gyroscope and a touch interface and a voice command system. Based on input received by the eyeglass device 119 from the accelerometer and the touch interface and the voice command system, the eyeglass device 119 can control user interaction with virtual content. The eyeglass device 119 may include a communication device for communicating with the client device 102. Based on such communication with the client device 102, the eyeglass device 119 can determine the real-world position of a real-world object used to interact with the virtual content.

[0114] The eyewear device 119 also includes one or more communication devices, such as a Bluetooth Low Energy (BLE) communication interface. Such a BLE communication interface enables the eyewear device 119 to wirelessly communicate with the client device 102. Instead of or in addition to the BLE communication interface, other forms of wireless communication such as a WiFi direct connection interface may also be used. The BLE communication interface implements a standard number of BLE communication protocols.

[0115] The first communication protocol implemented by the BLE interface of the eyeglass device 119 enables an unencrypted link to be established between the eyeglass device 119 and the client device 102. In this first protocol, the link layer communication (physical interface or medium) between the eyeglass device 119 and the client device 102 includes unencrypted data. In this first protocol, the application layer (the communication layer that operates on the physically exchanged data) encrypts and decrypts the data that is physically exchanged in an unencrypted form on the link layer of the BLE communication interface. In this way, the data exchanged on the physical layer may be freely read by the eavesdropping device, but if the decryption operation is not performed in the application layer, the eavesdropping device will not be able to decipher the exchanged data.

[0116] The second communication protocol implemented by the BLE interface of the eyeglass device 119 enables an encrypted link to be established between the eyeglass device 119 and the client device 102. In this second protocol, the link layer communication (physical interface) between the eyeglass device 119 and the client device 102 receives data from the application layer and adds a first type of encryption to the data before exchanging the data through the physical medium. In this second protocol, the application layer (the communication layer that operates on the physically exchanged data) may or may not use the second type of encryption to encrypt and decrypt the data that is physically exchanged in an encrypted form using the first type of encryption on the link layer of the BLE communication interface. That is, the data may be first encrypted by the application layer, and then the data may be further encrypted by the physical layer before being exchanged through the physical medium. After being exchanged through the physical medium, the data is decrypted by the physical layer and then decrypted again by the application layer (e.g., using different types of encryption). In this way, the data exchanged on the physical layer cannot be read by the eavesdropping device because the data is encrypted in the physical medium.

[0117] In some examples, the client device 102 communicates with the eyeglass device 119 using the first protocol and / or the second protocol to exchange images or videos or virtual content between the messaging client 104 and the eyeglass device 119. In some examples, the client device 102 communicates with the eyeglass device 119 using the first protocol and / or the second protocol to exchange interaction data including movement information of one or more real-world objects.

[0118] AR button selection system

[0119] Figure 6 600 is a flowchart illustrating example operations of the AR button selection system 107 according to some examples when performing process 600. Process 600 may be embodied in computer-readable instructions for execution by one or more processors such that the operations of process 600 may be performed in part or in whole by functional components of the AR button selection system 107; therefore, process 600 is described below by way of example with reference to process 600. However, in other examples, at least some of the operations of process 600 may be deployed on various other hardware configurations. Therefore, process 600 is not intended to be limited to the AR button selection system 107, but may be implemented in whole or in part by any other component. Some or all of the operations of process 600 may be performed in parallel, out of order, or omitted entirely.

[0120] At operation 601, as discussed above and below, the AR button selection system 107 displays multiple AR objects on a display area overlapping with a first real-world object via an AR device (e.g., the glasses device 119 and / or the client device 102), each of the multiple AR objects being associated with an object selection area.

[0121] At operation 602 , the AR button selection system 107 calculates a first spatial relation factor of a first AR object among a plurality of AR objects based on a position of the first AR object relative to a position of a second real-world object, as discussed above and below.

[0122] At operation 603 , the AR button selection system 107 adjusts the object selection region of the first AR object based on the first spatial relationship factor, as discussed above and below.

[0123] At operation 604 , the AR button selection system 107 activates the first AR object in response to determining that the second real-world object overlaps the object selection region of the first AR object, as discussed above and below.

[0124] Figures 7 to 9 is an illustrative screen of a graphical user interface of the AR button selection system 107 according to some examples. Figures 7 to 9 The screen shown in may be provided by the messaging client 104 of one or more client devices 102 , the AR button selection system 107 , and / or other applications implemented on one or more client devices 102 and / or the eyeglass device 119 .

[0125] Figure 7A first user interface 700 of the eyeglass device 119 generated at a first point in time and a second user interface 701 of the eyeglass device 119 generated at a second point in time are shown. The AR button selection system 107 can display a first AR object 720 (e.g., a first AR button) and a second AR object 730 within the lens of the eyeglass device 119 or on the display of the client device 102. The first AR object 720 and the second AR object 730 can be displayed on a first real-world object (not shown), such as a first real-world hand, a table, a chair, a foot, or other animate or inanimate real-world objects.

[0126] The AR button selection system 107 can detect a second real-world object 710 in the same real-world environment as the first real-world object by using a camera of the eyewear device 119 and / or from an image captured by the client device 102 and provided to the eyewear device 119. The AR button selection system 107 can, for example, detect a second real-world hand, foot, finger, toe, stylus, or other real-world object. The second real-world object 710 can move toward the first AR object 720 and the second AR object 730 in 3D space.

[0127] The AR button selection system 107 may calculate, generate, and / or draw a first virtual line 724 extending from a center point of the first AR object 720 toward a point, edge, or center of the second real-world object 710. The AR button selection system 107 may also calculate, generate, and / or draw a direction velocity vector 722 representing the current direction and speed at which the second real-world object 710 is moving. Similarly, the AR button selection system 107 may calculate, generate, and / or draw a second virtual line 734 extending from a center point of the second AR object 730 toward a point, edge, or center of the second real-world object 710. The AR button selection system 107 may calculate multiple of these virtual lines in a similar manner for each of a plurality of AR objects displayed by the glasses device 119 on the first real-world object.

[0128] The AR button selection system 107 may calculate a spatial relationship factor for each of a plurality of AR objects displayed by the glasses device 119 on the first real-world object. In some cases, the spatial relationship factor may be calculated as a function of a virtual line drawn from a given AR object in the AR objects and a directional velocity vector 722 of the second real-world object 710. For example, the AR button selection system 107 may calculate a first spatial relationship factor based on a dot product of the directional velocity vector 722 and the first virtual line 724. This may represent an alignment factor between the directional velocity vector 722 and the first virtual line 724. The first spatial relationship factor may be compared with a spatial relationship threshold (e.g., a maximum alignment threshold). Based on the difference or deviation value between the first spatial relationship factor and the spatial relationship threshold, the AR button selection system 107 may adjust the object selection area 726 of the first AR object 720.

[0129] Similarly, the AR button selection system 107 can calculate a second spatial relationship factor based on the dot product of the directional velocity vector 722 and the second virtual line 734. This can represent an alignment factor between the directional velocity vector 722 and the second virtual line 734. The second spatial relationship factor can be compared with a spatial relationship threshold (e.g., a maximum alignment threshold). Based on the difference or deviation value between the second spatial relationship factor and the spatial relationship threshold, the AR button selection system 107 can adjust the object selection area 736 of the second AR object 730.

[0130] For example, the AR button selection system 107 may adjust the orientation, two-dimensional 2D or 3D size (e.g., length, width, and / or height) of the object selection area 726 based on the difference or deviation value between the first spatial relationship factor and the spatial relationship threshold. In some cases, the displayed AR button may also change size in the same manner based on the spatial relationship. That is, the difference or deviation value between the first spatial relationship factor and the spatial relationship threshold may be a first value corresponding to the first orientation, 3D size (e.g., length, width, and / or height) of the object selection area 726. The AR button selection system 107 may adjust the orientation, 3D size (e.g., length, width, and / or height) of the object selection area 736 based on the difference or deviation value between the second spatial relationship factor and the spatial relationship threshold. That is, the difference or deviation value between the second spatial relationship factor and the spatial relationship threshold may be a second value corresponding to the second orientation, 3D size (e.g., length, width, and / or height) of the object selection area 736. The second value may be greater than the first value. In such a case, the second orientation, 3D size (e.g., length, width, and / or height) of the object selection area 736 may be greater than the first orientation, 3D size (e.g., length, width, and / or height) of the object selection area 726. That is, as the alignment between the directional velocity of the second real-world object 710 and the corresponding virtual line of the given AR object improves or becomes better, the AR button selection system 107 increases the orientation and / or size of the corresponding object selection area. This may increase the likelihood that the second real-world object 710 overlaps the object selection area of ​​the second AR object 730 to activate the function corresponding to the AR object 730 over the first AR object 720.

[0131] When the second real-world object 710 moves in the real-world environment, the AR button selection system 107 continuously or periodically calculates or recalculates a virtual line between each of the plurality of AR objects displayed on the first real-world object and the second real-world object 710. In addition, the AR button selection system 107 continuously or periodically calculates or recalculates a direction velocity vector of the second real-world object 710. For example, as shown in the user interface 701, at a later time point relative to the time point of the first user interface 700, the second real-world object 710 is detected as being closer to the second AR object 730 than the first AR object 720. In such a case, the updated virtual line 735 of the second AR object 730 is better aligned with the updated direction velocity vector 723 relative to the direction velocity vector 722 and the second virtual line 734. In such a case, the AR button selection system 107 increases the orientation and / or size of the object selection area 737 relative to the object selection area 736. This increases the possibility that the second real-world object 710 overlaps the object selection area of ​​the second AR object 730 to activate a function corresponding to the AR object 730 preferentially with respect to the object selection area 736 over the first AR object 720 .

[0132] Similarly, as shown in the user interface 701, at a later point in time relative to the point in time of the first user interface 700, the second real-world object 710 is detected as being closer to the first AR object 720 than the second AR object 730. In such a case, the updated virtual line 725 of the first AR object 720 is less aligned with the updated direction velocity vector 723 relative to the direction velocity vector 722 and the first virtual line 724. In such a case, the AR button selection system 107 reduces the orientation and / or size of the object selection area 727 relative to the object selection area 726 and / or the object selection area 737. This reduces the possibility that the second real-world object 710 overlaps the object selection area of ​​the first AR object 720 to activate the function corresponding to the AR object 720 relative to the object selection area 726. In this way, the AR button selection system 107 dynamically adjusts the object selection areas of different AR objects continuously or periodically based on the likelihood that the user intends to select a particular AR object (e.g., based on an alignment factor between the directional velocity vector of the second real-world object 710 relative to a virtual line drawn or generated between the corresponding AR object center and a point on the second real-world object 710).

[0133] Figure 8A user interface 800 of the eyewear device 119 generated at a first point in time is shown. The AR button selection system 107 may receive an image depicting a real-world environment 810 being viewed using the eyewear device 119 and / or the client device 102. The real-world environment 810 may include a first real-world object 820 and a second real-world object 830. The AR button selection system 107 may detect the first real-world object 820 and the second real-world object 830.

[0134] In some examples, the AR button selection system 107 displays multiple AR objects, including a menu object and a dismiss (X) object for selecting or alternating between various sets of AR objects, or dismissing these AR objects. For example, the AR button selection system 107 displays a first AR object 840 (e.g., a first AR button), a second AR object 850, and a third AR object 860 superimposed on the real-world environment 810 within the lens of the eyewear device 119 or on the display of the client device 102. The first AR object 720 and the second AR object 730 can be positioned and displayed on the first real-world object 820 (e.g., a first real-world hand, such as a left hand).

[0135] As previously discussed, the AR button selection system 107 may calculate a spatial relationship factor between each of the plurality of AR objects and the second real-world object 830 (e.g., a second real-world hand such as a finger of the right hand). Based on the spatial relationship factor, the AR button selection system 107 may adjust the corresponding object selection area of ​​each of the plurality of AR objects (which is not displayed or included in the user interface presented on the glasses device 119). For example, the AR button selection system 107 may calculate, generate, and / or draw a first virtual line extending from the center point of the first AR object 840 toward a point, edge, or center of the second real-world object 830. The AR button selection system 107 may also calculate, generate, and / or draw a direction velocity vector representing the current direction and speed at which the second real-world object 830 is moving. Similarly, the AR button selection system 107 may calculate, generate, and / or draw a second virtual line extending from the center point of the second AR object 850 toward a point, edge, or center of the second real-world object 830. The AR button selection system 107 may calculate multiple of these virtual lines for each of the multiple AR objects displayed by the eyewear device 119 on the first real-world object in a similar manner.

[0136] In some cases, the AR button selection system 107 adjusts the orientation, 3D size (e.g., length, width, and / or height) of the object selection area 842 of the first AR object 840 based on the difference or deviation value between the first spatial relationship factor and the spatial relationship threshold. That is, the difference or deviation value between the first spatial relationship factor and the spatial relationship threshold may be a first value corresponding to the first orientation, 3D size (e.g., length, width, and / or height) of the object selection area 842. The AR button selection system 107 may adjust the orientation, 3D size (e.g., length, width, and / or height) of the object selection area 852 of the second AR object 850 based on the difference or deviation value between the second spatial relationship factor and the spatial relationship threshold. That is, the difference or deviation value between the second spatial relationship factor and the spatial relationship threshold may be a second value corresponding to the second orientation, 3D size (e.g., length, width, and / or height) of the object selection area 852. The second value may be greater than the first value. In such a case, the second orientation, 3D size (e.g., length, width, and / or height) of the object selection area 852 may be greater than the first orientation, 3D size (e.g., length, width, and / or height) of the object selection area 842. This may increase the likelihood that the second real-world object 830 overlaps the object selection area of ​​the second AR object 850 to activate a function corresponding to the AR object 850 over the first AR object 840.

[0137] When the second real-world object 830 moves in the real-world environment, the AR button selection system 107 continuously or periodically calculates or recalculates a virtual line between each of the plurality of AR objects displayed on the first real-world object and the second real-world object 830. In addition, the AR button selection system 107 continuously or periodically calculates or recalculates a direction velocity vector of the second real-world object 830. For example, as shown in the user interface 900, at a later time point relative to the time point of the user interface 800, the second real-world object 830 is detected as being closer to the second AR object 850 than the first AR object 840. In such a case, the AR button selection system 107 increases the orientation and / or size of the object selection area 952 relative to the previously used object selection area 954 and / or object selection area 852. This increases the possibility that the second real-world object 830 overlaps with the object selection area of ​​the second AR object 850 to activate the function corresponding to the AR object 850 over the first AR object 840 and the third AR object 860.

[0138] Similarly, if Fig. 9As shown in the user interface 900 of FIG. 1 , the second real-world object 830 is detected as being closer to the first AR object 840 than the second AR object 850. In such a case, the AR button selection system 107 reduces the orientation and / or size of the object selection area 954 relative to the object selection areas 952 and 956 and / or the object selection area 842. This reduces the likelihood that the second real-world object 830 overlaps the object selection area of ​​the first AR object 840 to activate the function corresponding to the AR object 840. In this manner, the AR button selection system 107 dynamically adjusts the object selection areas of different AR objects continuously or periodically based on the likelihood that the user intends to select a particular AR object (e.g., based on an alignment factor between the directional velocity vector of the second real-world object 830 relative to a virtual line drawn or generated between the corresponding AR object center and a point on the second real-world object 830).

[0139] In some examples, the AR button selection system 107 may determine that the second real-world object 830 overlaps the given object selection area by more than a threshold amount. In such a case, the AR button selection system 107 automatically activates a function corresponding to the associated AR object or performs an operation corresponding to the associated AR object, such as playing an audible sound, changing the color of the AR object, adding characters represented by a virtual keypad or keyboard key of the AR object to the message. Any other type of operation associated with and / or represented by the corresponding AR object may be performed, such as controlling various disclosed aspects of the messaging client 104.

[0140] Machine Architecture

[0141] Fig.101000 in which instructions 1008 (e.g., software, programs, applications, applet, application (app) or other executable code) may be executed for causing the machine 1000 to perform any one or more of the methods discussed herein. For example, the instructions 1008 may cause the machine 1000 to perform any one or more of the methods described herein. The instructions 1008 convert a general purpose, unprogrammed machine 1000 into a specific machine 1000 that is programmed to perform the functions described and illustrated in the manner described. The machine 1000 may operate as a standalone device or may be coupled (e.g., networked) to other machines. In a networked deployment, the machine 1000 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 1000 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 device, a network router, a network switch, a network bridge, or any machine capable of sequentially or otherwise executing instructions 1008 specifying actions to be taken by the machine 1000. In addition, although only a single machine 1000 is shown, the term "machine" should also be taken to include a collection of machines that individually or jointly execute instructions 1008 to perform any one or more of the methods discussed herein. For example, the machine 1000 may include any of the client device 102 or a plurality of server devices that form part of the messaging server system 108. In some examples, the machine 1000 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 a particular method or algorithm are performed on the client side.

[0142] The machine 1000 may include a processor 1002, a memory 1004, and an input / output (I / O) component 1038 that may be configured to communicate with each other via a bus 1040. In an example, the processor 1002 (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 1006 that executes instructions 1008 and a processor 1010. The term "processor" is intended to include a multi-core processor that may include two or more independent processors (sometimes referred to as "cores") that may execute instructions simultaneously. Although Fig.10 Multiple processors 1002 are shown, but the machine 1000 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.

[0143] The memory 1004 includes a main memory 1012, a static memory 1014, and a storage unit 1016, all of which are accessible by the processor 1002 via the bus 1040. The main memory 1004, the static memory 1014, and the storage unit 1016 store instructions 1008 that implement any one or more of the methods or functions described herein. The instructions 1008 may also reside, completely or partially, in the main memory 1012, in the static memory 1014, in the machine-readable medium 1018 in the storage unit 1016, in at least one of the processors 1002 (e.g., in a cache memory of a processor), or in any suitable combination thereof during execution thereof by the machine 1000.

[0144] I / O components 1038 may include various components that receive input, provide output, generate output, send information, exchange information, capture measurements, etc. The specific I / O components 1038 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 be less likely to include such a touch input device. It should be understood that I / O components 1038 may include Fig.101024 and 1026. In various examples, the I / O components 1038 may include a user output component 1024 and a user input component 1026. The user output component 1024 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 1026 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 another pointing instrument), a tactile input component (e.g., a physical button, a touch screen or other tactile input component that provides location and force of a touch or touch gesture), an audio input component (e.g., a microphone), etc.

[0145] In other examples, I / O components 1038 may include biometric components 1028, motion components 1030, environment components 1032, or position components 1034, as well as a wide range of other components. For example, biometric components 1028 include components for detecting expressions (e.g., hand expressions, facial expressions, voice expressions, body postures, or eye tracking), measuring biosignals (e.g., blood pressure, heart rate, body temperature, sweat, or brain waves), identifying people (e.g., voice recognition, retinal recognition, facial recognition, fingerprint recognition, or EEG-based recognition), etc. Motion components 1030 include acceleration sensor components (e.g., accelerometers), gravity sensor components, rotation sensor components (e.g., gyroscopes).

[0146] Environmental components 1032 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 for detecting concentrations of hazardous gases for safety purposes or for measuring pollutants in the atmosphere), or other components that can provide indications, measurements, or signals corresponding to the surrounding physical environment.

[0147] With respect to cameras, client device 102 can 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 can, for example, be used to capture still images and videos of a user of client device 102 (e.g., a "selfie"), which can then be enhanced with the enhancement data (e.g., filters) described above. For example, the rear-facing camera can be used to capture still images and videos in a more traditional camera mode, which are similarly enhanced using the enhancement data. In addition to the front and rear cameras, client device 102 can also include a 360° camera for capturing 360° photos and videos.

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

[0149] The location component 1034 includes a positioning 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.

[0150] Various technologies may be used to implement communications. The I / O components 1038 also include a communication component 1036 that is operable to couple the machine 1000 to the network 1020 or the device 1022 via a corresponding coupling or connection. For example, the communication component 1036 may include a network interface component or another suitable device that interfaces with the network 1020. In other examples, the communication component 1036 may include a wired communication component, a wireless communication component, a cellular communication component, a near field communication (NFC) component, Components (e.g. Low power consumption), Components and other communication components for providing communication via other forms. Device 1022 can be another machine or any peripheral device among various peripheral devices (e.g., a peripheral device coupled via USB).

[0151] In addition, the communication component 1036 can detect the identifier or include a component operable to detect the identifier. For example, the communication component 1036 can include a radio frequency identification (RFID) tag reader component, an NFC smart tag detection component, an optical reader component (e.g., an optical sensor for detecting one-dimensional bar codes such as universal product code (UPC) bar codes, multi-dimensional bar codes such as quick response (QR) codes, Aztec codes, data matrix, data symbol (Dataglyph), maximum code (MaxiCode), PDF417, UltraCode, UCC RSS-2D bar codes, and other optical codes) or an acoustic detection component (e.g., a microphone for identifying an audio signal of a tag). In addition, various information can be obtained via the communication component 1036, such as obtaining positioning via Internet Protocol (IP) geolocation, ... Positioning is obtained through signal triangulation, positioning is obtained via detection of NFC beacon signals that can indicate a specific position, etc.

[0152] Various memories (e.g., main memory 1012, static memory 1014, and memory of processor 1002) and storage unit 1016 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. These instructions (e.g., instructions 1008) when executed by processor 1002 cause various operations to implement the disclosed examples.

[0153] The instructions 1008 may be sent or received over the network 1020 via a network interface device (e.g., a network interface component included in the communications component 1036) using a transmission medium and using any of a number of well-known transmission protocols (e.g., the Hypertext Transfer Protocol (HTTP)). Similarly, the instructions 1008 may be sent or received via a coupling (e.g., a peer-to-peer coupling) with the device 1022 using a transmission medium.

[0154] Software Architecture

[0155] Fig.11 1100 is a block diagram illustrating a software architecture 1104 that may be installed on any one or more of the devices described herein. The software architecture 1104 is supported by hardware such as a machine 1102 including a processor 1120, a memory 1126, and an I / O component 1138. In this example, the software architecture 1104 may be conceptualized as a stack of layers, where each layer provides specific functionality. The software architecture 1104 includes layers such as an operating system 1112, a library 1110, a framework 1108, and an application 1106. In operation, the application 1106 invokes an API call 1150 through the software stack and receives a message 1152 in response to the API call 1150.

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

[0157] The libraries 1110 provide a common low-level infrastructure used by the applications 1106. The libraries 1110 may include a system library 1118 (e.g., a C standard library) that provides functions such as memory allocation functions, string manipulation functions, mathematical functions, etc. In addition, the libraries 1110 may include an API library 1124, such as a media library (e.g., a library for supporting the presentation and operation of various media formats, such as Moving Picture Experts Group-4 (MPEG4), Advanced Video Coding (H.264 or AVC), Moving Picture Experts Group-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 presenting in two dimensions (2D) and three dimensions (3D) in graphical content on a display), a database library (e.g., SQLite providing various relational database functions), a web library (e.g., WebKit providing web browsing functions), etc. The library 1110 may also include various other libraries 1128 to provide many other APIs to the application 1106 .

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

[0159] In an example, applications 1106 may include a home application 1136, a contacts application 1130, a browser application 1132, a book reader application 1134, a positioning application 1142, a media application 1144, a messaging application 1146, a game application 1148, and a variety of other applications such as external applications 1140. Applications 1106 are programs that execute functions defined in the program. Various programming languages ​​may be used to create one or more of the applications 1106 constructed in various ways, such as an object-oriented programming language (e.g., Objective-C, Java, or C++) or a procedural programming language (e.g., C or assembly language). In a specific example, external applications 1140 (e.g., an application created by an entity other than a vendor of a particular platform using ANDROID TM or IOS TM Software Development Kit (SDK) can be used to develop applications on platforms such as IOS TM ANDROID TM , Mobile software running on a mobile operating system or other mobile operating system. In this example, the external application 1140 can activate an API call 1150 provided by the operating system 1112 to facilitate the functions described herein.

[0160] Glossary

[0161] "Carrier signal" in this context refers to any intangible medium capable of storing, encoding or carrying instructions, transitory or non-transitory, for execution by a machine, and includes digital or analog communications signals or other intangible media to facilitate communication of such instructions. Instructions may be transmitted or received over a network via a network interface device using a transitory or non-transitory transmission medium and using any of a number of well-known transmission protocols.

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

[0163] A "communication network" in this context refers to 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 rate for GSM evolution (EDGE) technology, the third generation partnership project (3GPP) including 3G, fourth generation wireless (4G) network, 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.

[0164] "Ephemeral messages" in this context refer to messages that are accessible for a limited duration in time. Ephemeral messages can be text, images, videos, etc. The access time of ephemeral messages 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 ephemeral.

[0165] "Machine-readable medium" in this context refers to a component, device, or other tangible medium capable of temporarily or permanently storing instructions and data, and may include, but is not limited to, random access memory (RAM), read-only memory (ROM), buffer memory, flash memory, optical media, magnetic media, cache memory, other types of storage devices (e.g., erasable programmable read-only memory (EEPROM)), and / or any suitable combination thereof. The term "machine-readable medium" should be considered to include a single medium or multiple media (e.g., a centralized or distributed database or associated cache memory and server) capable of storing instructions. The term "machine-readable medium" should also be considered to include any medium or combination of multiple media capable of storing instructions (e.g., code) executed by a machine, such that the instructions, when executed by one or more processors of the machine, cause the machine to perform any one or more of the methods described herein. Therefore, "machine-readable medium" refers to a single storage device or device, as well as a "cloud-based" storage system or storage network comprising multiple storage devices or devices. The term "machine-readable medium" does not include the signal itself.

[0166] "Component" in this context refers to a device, a physical entity, or logic with the following boundaries, which is defined by a function or subroutine call, a branch point, an API, or other technical definitions that provide partitioning or modularization for a specific processing or control function. Components can be docked with other components via their interfaces to perform machine processing. Components can be packaged functional hardware units designed for use with other components, and can be part of a program that generally performs a specific function in related functions. Components can constitute software components (e.g., codes embodied on a machine-readable medium) or hardware components. "Hardware components" are tangible units that can perform certain operations and can be configured or arranged in a certain physical manner. In various examples, one or more computer systems (e.g., independent computer systems, client computer systems, or server computer systems) or one or more hardware components (e.g., processors or processor groups) of a computer system can be configured by software (e.g., applications or application parts) to operate to perform certain operations as described herein. Hardware components.

[0167] The hardware components may also be implemented mechanically, electronically, or in any suitable combination thereof. For example, the hardware components may include a dedicated circuit system or logic that is permanently configured to perform certain operations. The hardware components may be a dedicated processor such as a field programmable gate array (FPGA) or an ASIC. The hardware components may also include a programmable logic or circuit system that is temporarily configured to perform certain operations by software. For example, the hardware components may include software executed by a general-purpose processor or other programmable processor. Once configured by such software, the 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 a general-purpose processor. It should be understood that it may be decided for cost and time considerations whether to implement the hardware components mechanically in a dedicated and permanently configured circuit system or in a temporarily configured (e.g., configured by software) circuit system. 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. 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 be a special-purpose processor, the general-purpose processor can be configured to be a different special-purpose processor (e.g., including different hardware components) at different times. The software configures one or more specific processors accordingly, for example, to constitute a specific hardware component at one time and to constitute a different hardware component at a different time.

[0168] 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 coupled in communication. In the case of multiple hardware components simultaneously, communication can be realized by signal transmission between or among two or more hardware components (for example, by appropriate circuits and buses). 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 accessed by multiple hardware components and retrieving information in the memory structure. For example, a hardware component can perform an operation, and the output of the operation is stored in a memory device coupled in communication with it. Then, other hardware components can access the memory device at a subsequent time to retrieve the stored output and process it.

[0169] The hardware component may also initiate communication with an input device or an output device, and may operate on a resource (e.g., a collection of information). 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, a "processor-implemented component" refers to a hardware component implemented using one or more processors. Similarly, the methods 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 of the operations of the method may be performed by one or more processors or processor-implemented components. In addition, one or more processors may also operate to support the execution of related operations in a "cloud computing" environment or as a "software as a service" (SaaS) operation. For example, at least some of the operations may be performed by a group of computers (as an example of a machine including a processor), wherein these operations may be accessed via a network (e.g., the Internet) and via one or more appropriate interfaces (e.g., APIs). The execution of certain operations may be distributed among processors, rather than residing only in a single machine, but may be deployed across multiple machines. In some examples, a processor or a processor-implemented component may be located in a single geographic location (e.g., in a home environment, an office environment, or a server farm). In other examples, a processor or a processor-implemented component may be distributed across multiple geographic locations.

[0170] A "processor" in this context refers to any circuit or virtual circuit (a physical circuit simulated by logic executed on an actual processor) that manipulates data values ​​according to control signals (e.g., "commands," "opcodes," "machine codes," etc.) and produces corresponding output signals used to operate a machine. For example, a processor may be 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 ASIC, a radio frequency integrated circuit (RFIC), or any combination thereof. A processor may also be a multi-core processor having two or more independent processors (sometimes referred to as "cores") that can execute instructions simultaneously.

[0171] A "timestamp" in this context refers to a sequence of characters or encoded information that identifies when some event occurred, for example, thereby giving a date and time of day, sometimes accurate to a fraction of a second.

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

[0173] Modules, components and logic

[0174] Certain examples are described herein as including logic or multiple components, modules, or mechanisms. A module may constitute a software module (e.g., a code contained on a machine-readable medium or in a transmission signal) or a hardware module. A "hardware module" is a tangible unit that can perform certain operations and can be configured or arranged in a certain physical manner. In various examples, one or more computer systems (e.g., a stand-alone computer system, a client computer system, or a server computer system) or one or more hardware modules of a computer system (e.g., a processor or a group of processors) are configured by software (e.g., an application or an application portion) to be a hardware module for performing certain operations as described herein.

[0175] In some examples, the hardware module is implemented mechanically, electronically, or any suitable combination thereof. For example, the hardware module may include a dedicated circuit system or logic that is permanently configured to perform certain operations. For example, the hardware module may be a dedicated processor such as a field programmable gate array (FPGA) or an application specific integrated circuit (ASIC). The hardware module may also include a programmable logic or circuit system that is temporarily configured to perform certain operations by software. For example, the hardware module may include software contained in a general-purpose processor or other programmable processor. It should be understood that it can be decided whether to implement the hardware module mechanically in a dedicated and permanently configured circuit system or to implement the hardware components in a circuit system of a temporary configuration (e.g., configured by software) for cost and time considerations.

[0176] Therefore, the phrase "hardware module" should be understood to include a tangible entity, that is, an entity that is physically constructed, permanently configured (e.g., hardwired) or temporarily configured (e.g., programmed) to operate in a certain manner or perform certain operations described herein. As used herein, a "hardware-implemented module" refers to a hardware module. Considering an example in which a hardware module is temporarily configured (e.g., programmed), it is not necessary to configure or instantiate each hardware module in a hardware component at any one time. For example, in the case where a hardware module includes a general-purpose processor that becomes a special-purpose processor through software configuration, the general-purpose processor can be configured as a different special-purpose processor (e.g., including different hardware modules) at different times. Software can configure a specific one or more processors accordingly, for example, to constitute a specific hardware module at one time and to constitute different hardware modules at different times.

[0177] A hardware module can provide information to other hardware components and receive information from other hardware modules. Therefore, the described hardware modules can be considered to be communicatively coupled. In the case of multiple hardware modules being present at the same time, communication can be achieved by signal transmission between or among two or more hardware modules (e.g., by appropriate circuits and buses). In an example in which multiple hardware modules are configured or instantiated at different times, communication between or among such hardware modules can be achieved, for example, by storing information in a memory structure accessed by multiple hardware modules and retrieving information in the memory structure. For example, a hardware module performs an operation, and the output of the operation is stored in a memory device communicatively coupled thereto. Then, other hardware modules can access the memory device at a subsequent time to retrieve and process the stored output. The hardware module can also initiate communication with an input device or an output device, and can operate on resources (e.g., a collection of information).

[0178] 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 the relevant operations. Whether temporarily or permanently configured, such processors constitute processor-implemented modules that operate to perform one or more operations or functions described herein. As used herein, a "processor-implemented module" refers to a hardware module implemented using one or more processors.

[0179] Similarly, the method described herein can be implemented at least in part by a processor, wherein the specific one or more processors are examples of hardware. For example, at least some operations of the method can be performed by one or more processors or a module implemented by the processor. In addition, one or more processors can also be operated to support the execution of related operations in a "cloud computing" environment or as a "software as a service" (SaaS) operation. For example, at least some operations in the operation can be performed by a group of computers (as an example of a machine including a processor), wherein these operations can be accessed via a network (e.g., the Internet) and via one or more appropriate interfaces (e.g., API).

[0180] The execution of certain operations can be distributed among processors, not just resident in a single machine, but can be deployed on several machines. In some examples, the processor or the module implemented by the processor is 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 the module implemented by the processor is distributed across several geographic locations.

Claims

1. A method comprising: displaying, by the AR device, a plurality of AR objects on a display area overlapping the first real-world object, each of the plurality of AR objects being associated with an object selection area; calculating a first spatial relation factor of a first AR object among the plurality of AR objects based on a position of the first AR object relative to a position of a second real-world object; adjusting an object selection area of ​​the first AR object based on the first spatial relationship factor; as well as The first AR object is activated in response to determining that the second real-world object overlaps with the object selection area of ​​the first AR object.

2. According to the method of claim 1, the AR device comprises an AR glasses device.

3. The method according to claim 1, further comprising: The first real-world object and the second real-world object within the real-world environment are detected by the AR device by applying one or more machine learning models to an image of the real-world environment captured by a camera of the AR device.

4. The method according to claim 1, wherein: The object selection area of ​​the first AR object is a first object selection area, further comprising: calculating a second spatial relationship factor of a second AR object among the plurality of AR objects based on a position of the second AR object relative to the second real-world object; and A second object selection area of ​​the second AR object is adjusted based on the second spatial relationship factor.

5. The method according to claim 4, wherein: The first object selection area comprises a first three-dimensional (3D) height, size, and orientation, and wherein the second object selection area comprises a second 3D height, size, and orientation.

6. The method according to claim 5, further comprising: In response to determining that the second real-world object is physically closer to the first AR object than the second AR object, the first 3D height and size are configured to be greater than the second 3D height and size.

7. The method according to claim 6, further comprising: In response to determining that the second real-world object is physically closer to selecting the first AR object than the second AR object, the first object selection area is rotated a first degree relative to the second object selection area.

8. The method according to claim 1, further comprising: drawing a first line from a first center of the first AR object to a point on the second real-world object; calculating a vector representing a directional velocity of the point on the second real-world object; as well as The first spatial relationship factor is generated as a function of the first line and the vector.

9. The method according to claim 8, further comprising: determining a first alignment factor between the first line and the vector based on the first spatial relationship factor; determining a second alignment factor between a second line drawn from a second center of a second AR object to the point on the second real-world object; as well as The first alignment factor is compared to the second alignment factor.

10. The method according to claim 9, further comprising: It is determined based on the comparison that the first alignment factor is better aligned than the second alignment factor.

11. The method according to claim 10, further comprising: In response to determining that the first alignment factor is better aligned than the second alignment factor, a larger dimension is associated with the object selection area of ​​the first AR object than with the object selection area of ​​the second AR object.

12. The method according to claim 9, wherein: The first real-world object includes a first real-world hand.

13. The method according to claim 12, wherein: The second real-world object includes a real-world stylus or a portion or finger of a second real-world hand.

14. The method according to claim 8, wherein: The function comprises a dot product of the first line and the vector.

15. The method according to claim 1, wherein: The plurality of AR objects include a virtual keypad or keyboard.

16. The method according to claim 1, further comprising: The size of each of the plurality of AR objects is scaled based on the size of the first real-world object.

17. The method according to claim 1, further comprising: The object selection area is continuously adjusted as the first real-world object moves in the real-world environment.

18. The method of claim 1, further comprising: One or more operations are performed in response to activating the first AR object.

19. A system comprising: Storage devices for augmented reality (AR) devices; as well as a processor coupled to the storage device and configured to perform operations comprising: displaying, by the AR device, a plurality of AR objects on a display area overlapping the first real-world object, each of the plurality of AR objects being associated with an object selection area; calculating a first spatial relation factor of a first AR object among the plurality of AR objects based on a position of the first AR object relative to a position of a second real-world object; adjusting an object selection area of ​​the first AR object based on the first spatial relationship factor; and The first AR object is activated in response to determining that the second real-world object overlaps with the object selection area of ​​the first AR object.

20. A non-transitory machine-readable storage medium comprising instructions that, when executed by one or more processors of a machine, cause the machine to perform operations comprising: displaying, by the AR device, a plurality of AR objects on a display area overlapping the first real-world object, each of the plurality of AR objects being associated with an object selection area; calculating a first spatial relation factor of a first AR object among the plurality of AR objects based on a position of the first AR object relative to a position of a second real-world object; adjusting an object selection area of ​​the first AR object based on the first spatial relationship factor; as well as The first AR object is activated in response to determining that the second real-world object overlaps with the object selection area of ​​the first AR object.