Dynamic switching between RGB and IR capture

By setting a switchable filter in the camera device of the AR device, dynamically switching to capture visible light and IR images, the problem of high resource consumption of AR system on resource-constrained devices is solved, and more efficient AR operation and extended battery life are achieved.

CN119522445APending Publication Date: 2025-02-25SNAP INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202380052009.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2022-07-07
Filing Date
2023-07-06
Publication Date
2025-02-25

AI Technical Summary

Technical Problem

When existing AR systems are implemented on resource-constrained devices, the total available physical resource space needs to be considered, and capturing IR and visible light images using multiple sensors will increase resource consumption and reduce battery life.

Method used

By providing a switchable filter in front of the lens of the imaging device or between the lens and the image sensor, visible light and IR images are dynamically captured, reducing resource consumption and improving the efficiency of AR operation.

Benefits of technology

This technology reduces the amount of resources required to achieve AR operations on mobile AR devices, extends the device's battery life, and improves the applicability of the AR experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119522445A_ABST
    Figure CN119522445A_ABST
Patent Text Reader

Abstract

Aspects of the present disclosure relate to a system for capturing infrared (IR) images using an RGB camera. The system captures, by a camera of a client device, a first image including visible light representing a real-world environment. The system receives a strobe signal for capturing an infrared (IR) image by a camera device. In response to receiving the strobe signal, the system switches a filter associated with a lens of the camera device to pass IR light to an image sensor of the camera device, captures a second image comprising IR illumination of the real-world environment, and switching the filter to allow the visible light to pass through to reach an image sensor of the camera device after capturing the second image.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Priority claim

[0002] This application claims the benefit of priority to U.S. patent application serial number 17 / 859,484, filed on July 7, 2022, which is incorporated herein by reference in its entirety. Technical Field

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

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

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

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

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

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

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

[0010] Figure 5 is a diagrammatic representation of an IR and RGB image capture system according to some examples.

[0011] Figure 6 and Figure 7 is a diagrammatic representation of the operation of an IR and RGB image capture system according to some examples.

[0012] Figure 8 is a flow diagram illustrating example operation of an IR and RGB image capture system according to some examples.

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

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

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

[0016] AR systems typically use various sensors to accurately detect and track real-world objects in real-world environments. For example, AR systems typically include visible image cameras, such as red, green, and blue (RGB) cameras for capturing images based on visible light. These can be used to identify scene elements in the real world and obtain the context of the scene. AR systems also include IR sensors and IR cameras separate from the visible light cameras. These IR sensors and IR cameras are used to track certain objects to perform various AR operations. When such a system is implemented on a resource-constrained device (such as AR glasses or other AR mobile devices), the total available physical resource space needs to be considered. In addition, the hardware and software requirements of such a system need to operate efficiently to maintain the battery life of the device.

[0017] One way to maintain and reduce the amount of physical resource space used by a mobile AR system is to have a visible light camera capture a single image that depicts both visible light and IR reflections of the real-world environment. Such an image can then be processed to detect and track objects. However, a single image that includes both IR reflections and visible light reflections typically tends to provide a poor or inaccurate representation of the real-world environment and can lead to errors when performing AR operations. Some other systems adapt tracking and object detection algorithms to process such images or avoid using IR reflections. However, the complexity involved in modifying such algorithms ultimately uses more software resources and reduces the battery life of mobile AR devices.

[0018] The disclosed technology solves these technical problems by providing a switchable filter associated with a visible light camera to dynamically capture a set of visible light images and another set of IR images. That is, the disclosed technology uses a single camera to perform two functions - capturing visible light images and IR images. This reduces the amount of resources required to implement various AR operations (such as hand tracking or object tracking) on ​​mobile AR devices. In addition, by using one sensor (e.g., a camera) instead of multiple sensors (e.g., a camera and an IR sensor) to capture information for tracking objects and performing AR operations, the physical resources used by the disclosed technology are reduced. This allows the disclosed technology to improve its applicability in mobile devices.

[0019] Specifically, the disclosed technology sets a filter in front of the lens of the camera device or between the lens of the camera device and the image sensor. The filter is activated to selectively pass visible light or IR illumination of the real world environment. When the filter is set (e.g., positioned in front of the lens) to pass visible light (and block IR illumination), the image sensor and the camera capture an RGB image (an image including RGB pixels) or a visible light representation of the real world environment. In response to receiving a strobe signal, the filter is set (e.g., removed from the front of the lens) to block visible light and enable IR illumination to pass. In this way, the image sensor can capture IR illumination of the real world environment. In some cases, the two images (visible light image and IR illumination image) are processed together or separately to perform AR operations. In some examples, the filter is a mechanical filter mechanically positioned in place to block or pass certain spectra of light or IR illumination. In some examples, the filter is implemented as a microelectromechanical system (MEMS) device and is electronically controlled to pass / block certain spectra of light.

[0020] In these ways, the techniques described herein improve the efficiency of using an electronic device and the overall experience of a user when using an electronic device.

[0021] Networked computing environment

[0022] 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 of which hosts a number of applications including a messaging client 104 and other external applications 109 (e.g., third-party applications). Each messaging client 104 is communicatively coupled to other instances of the messaging client 104 (e.g., hosted on respective other client devices 102), a messaging server system 108, and an external application server 110 via a network 112 (e.g., the Internet). The messaging client 104 may also communicate with locally hosted third-party applications (also referred to as "external applications" and "external apps") 109 using an application programming interface (API).

[0023] In some examples, client device 102 may include AR glasses or an AR headset, where virtual content is displayed within the lenses of the glasses while the user views the real world environment through the lenses. For example, an image may be presented on a transparent display that enables the user to view content presented on the display and real-world objects simultaneously.

[0024] The messaging clients 104 (sometimes referred to as client applications) are able to communicate and exchange data with other messaging clients 104 and with a messaging server system 108 via a network 112. The data exchanged between messaging clients 104 and between messaging clients 104 and messaging server system 108 includes functions (e.g., commands to activate functions) and payload data (e.g., text, audio, video, or other multimedia data).

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

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

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

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

[0029] The application server 114 hosts several server applications and subsystems, including, for example, a messaging server 118, an image processing server 122, and a social network server 124. The messaging server 118 implements several message processing technologies and functions, particularly those related to 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., called stories or galleries). These collections are then made available to the messaging client 104. In view of the hardware requirements for such processing, other processor- and memory-intensive data processing can also be performed on the server side by the messaging server 118.

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

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

[0032] The social network server 124 supports various social networking functions and services and makes these functions and services available to the messaging server 118. To this end, the social network server 124 maintains and accesses the entity graph 308 (e.g., Figure 3 ). Examples of functions and services supported by social network server 124 include identifying other users in messaging system 100 who have a relationship with a particular user or who the particular user is "following," and also identifying interests and other entities of a particular user.

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

[0034] In response to receiving a user selection of an option for launching or accessing a feature of an external resource (e.g., an 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, an external application 109 installed locally on the client device 102 can be launched independently of the messaging client 104 and separately from the messaging client 104, for example, by selecting an icon corresponding to the external application 109 on a 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 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.

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

[0036] 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 launch an external resource that was recently used but is currently inactive (in the friend group). The external resource may provide the participants of the conversation (each participant using a corresponding messaging client 104) with the ability to share items, conditions, states, or locations in the external resource with one or more members of the user group in the chat session. The shared item may be an interactive chat card that members of the chat may interact with, such as launching a corresponding external resource, viewing specific information within an external resource, or bringing 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.

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

[0038] System Architecture

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

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

[0041] 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, such as the duration of an event related to the content. For example, content related to a concert can be made available as a "story" for the duration of the concert. The collection management system 204 can also be responsible for publishing an icon that provides notification of the existence of a particular collection to the user interface of the messaging client 104.

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

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

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

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

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

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

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

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

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

[0051] The external resource system 220 provides the messaging client 104 with an interface for communicating with the external application server 110 to launch or access external resources. Each external resource (application) server 110 hosts, for example, a small-scale version of an application based on a markup language (e.g., HTML5) or an external application (e.g., a game, utility, payment, or ride-sharing application outside the messaging client 104). The messaging client 104 can launch the web-based resource by accessing an HTML5 file from an external resource (application) server 110 associated with a web-based resource (e.g., application). 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 APIs that have functions that can be called or activated by web-based applications. 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.

[0052] 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 (reference) 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.

[0053] The SDK stored on the messaging server 118 effectively provides a bridge between external resources (e.g., a third party or external application 109 or applet and a messaging client 104). This provides users with a seamless experience of communicating with other users on the messaging client 104 while retaining the look and feel of the messaging client 104. In some examples, in order to bridge the communication between the external resource and the messaging client 104, the SDK facilitates the communication between the external resource server 110 and the messaging client 104. In some examples, the WebViewJavaScriptBridge running on the client device 102 establishes two one-way communication channels between the external resource and the messaging client 104. Messages are sent asynchronously via these communication channels between the external resource 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.

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

[0055] The messaging client 104 presents a GUI (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 GUI of the external resource, which includes the functions and features of the external resource. In response to determining that the launched external resource has not been previously authorized to access the user data of the messaging client 104, after a threshold time period (e.g., 3 seconds) of displaying the login page or title screen of the external resource, the messaging client 104 slides up a menu (e.g., animating the menu to emerge from the bottom of the screen to the middle or other part of the screen) for authorizing the external resource to access the user data. The menu identifies the type of user data that the external resource will be authorized to use. In response to receiving the user selection of the accept option, the messaging client 104 adds the external resource to the list of authorized external resources and enables the external resource to access the user data from the messaging client 104. In some examples, the messaging client 104 authorizes the external resource to access the user data according to the OAuth 2 framework.

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

[0057] The IR and RGB image capture system 224 utilizes a single visible light camera (e.g., an RGB camera) to capture both visible light images (e.g., RGB images) and IR images in an interlaced manner. For example, an IR filter can be placed in association with the camera (e.g., in front of the lens of the camera of the client device 102 and / or between the image sensor of the camera and the lens). The IR filter can block all light except IR spectrum light reflections. When the IR filter is placed in association with the camera, any image captured by the camera can be processed to obtain tracking information based on depth information determined by the IR reflection of the light. When the IR filter is removed from the path of the light received by the camera, the image captured by the camera includes a visible light image (e.g., an RGB image) and optionally an IR reflection (if the IR lighting device is active). These visible light images can be used to generate various AR experiences presented to the user. In some examples, a visible light filter can be used in addition to or as an alternative to the IR filter. In such a case, the visible light filter, when placed in association with the camera, allows all visible light to pass through and blocks IR reflections of the light from being received by the camera's image sensor.

[0058] In this manner, since fewer hardware resources are required because a single camera can perform the functions of two or more sensors or devices, the physical and software resources of the client device 102 are minimized and reduced in providing an AR experience on the client device 102 .

[0059] Data Architecture

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

[0061] 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 within the message data stored in message table 302 are described.

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

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

[0064] The profile data 316 stores multiple types of profile data about a particular entity. Based on the privacy settings specified by the particular entity, the 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, the profile data 316 includes, for example, a user name, phone number, address, and settings (e.g., notification and privacy settings), as well as 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 within the content of messages transmitted via the messaging system 100 and on a map interface displayed to other users by the messaging client 104. The collection of avatar representations can include a "status avatar" that presents a graphical representation of a state or activity that a user can select to communicate at a particular time.

[0065] Where the entity is a group, the 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 related to the group (eg, notifications).

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

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

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

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

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

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

[0072] Thus, data and various systems using AR content items or other such transformation systems using the data to modify content may involve: detection of objects (e.g., faces, hands, bodies, cats, dogs, surfaces, objects, etc.); tracking such objects as they leave the field of view in a video frame, enter the field of view in a video frame, and move around the field of view in a video frame; and modifying or transforming such objects as they are tracked. In various examples, different methods for implementing such transformations may be used. Some examples may involve: generating a 3D mesh model of one or more objects, and using transformations and animated textures of the models within 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 2D or 3D) at a tracked location. In yet another example, a neural network analysis of a video frame may be used to place an image, model, or texture in content (e.g., a frame of an image or video). Thus, an AR content item refers to both images, models, and textures used to create transformations in the content, as well as additional modeling and analysis information required to implement such transformations using object detection, tracking, and placement.

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

[0074] In some examples, when a specific modification is selected together with the content to be transformed, the element to be transformed is identified by a computing device, and then if the element exists in a frame of a video, it 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 refers to a variation of the elements of the object, the characteristic points of each element of the object are calculated (for example, using an active shape model (ASM) or other known methods). Then, a grid based on the characteristic points is generated for each element of at least one element of the object. The grid is used for the subsequent stage of tracking the elements of the object in the video stream. During the tracking process, the grid mentioned for each element is aligned with the position of each element. Then, additional points are generated on the grid. A set of first points is generated for each element based on the modification request, and a set of second points is generated for each element based on the set of first points and the modification request. Then, the frame of the video stream can be transformed by modifying the elements of the object based on the set of first points, the set of second points and the grid. In such a method, the background of the modified object can also be changed or distorted by tracking and modifying the background.

[0075] In some examples, a transformation that changes some areas of an object using elements of an object can be performed by calculating characteristic points of each element of the object and generating a grid based on the calculated characteristic points. Points are generated on the grid, and then various areas are generated based on the points. The elements of the object are then tracked by aligning the area for each element with the position for each element of at least one element, and the properties of the area can be modified based on the modification request, thereby transforming the frame of the video stream. Depending on the specific modification request, the properties of the mentioned area can be transformed in different ways. Such modifications may involve: changing the color of the area; removing at least some partial areas 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 characteristic points may be selected as control points for the entire state space to be used to determine options for model animation.

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

[0077] Other methods and algorithms suitable for face detection can be used. For example, in some examples, landmarks are used to locate features, which 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 landmark is not recognizable (for example, if the person has an eye mask), secondary landmarks can be used. Such a landmark identification process can be used for any such object. In some examples, a set of landmarks forms a shape. The 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 average of the aligned training shapes.

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

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

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

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

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

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

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

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

[0086] The data structure 300 may also store training data for training one or more machine learning techniques (models) to segment real-world objects or items of a real-world environment depicted in an image corresponding to a location (e.g., a room in a home). The training data may include multiple images and videos and their corresponding ground-truth room segmentations. The images and videos may include a mixture of all kinds of real-world objects that may appear in different rooms in a home or residence. One or more machine learning techniques may be trained to extract features of a received input image or video and establish a relationship between the extracted features and the segmentation. Once trained, the machine learning technique may receive a new image or video and may compute the segmentation of the item depicted in the newly received image or video.

[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 memory as "in-transit" or "in-flight" data of a client device 102 or application server 114. The message 400 is shown as including 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 a camera component of the client device 102 or retrieved from a memory component of the client device 102 and included in the message 400 . Image data for a 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 for a message 400 that has been 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, message video payload 408, or message audio payload 410 of the message 400. The enhancement data 412 for a sent or received message 400 may be stored in the enhancement table 310.

[0095] • Message duration parameter 414: A parameter value indicating the amount of time in seconds that the content of a message (eg, message image payload 406, message video payload 408, message audio payload 410) will be presented to or made accessible to a user via 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 which is associated with a content item included in the content (e.g., a specific image within a message image payload 406, or a specific video within a message video payload 408).

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

[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 within 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 (eg, a messaging system identifier, an email address, or a device identifier) ​​that indicates the user of the client device 102 on which the message 400 was generated and from which the message 400 was sent.

[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 contents (e.g., values) of the various components of message 400 may be pointers to locations in a table in which content data values ​​are stored. For example, the image value in message image payload 406 may be a pointer (or address) to a location in image table 312. Similarly, the value within message video payload 408 may point to data stored in video table 304, the value stored within 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 within message sender identifier 422 and message recipient identifier 424 may point to user records stored in entity table 306.

[0102] IR and RGB Image Capture Systems

[0103] Figure 5 is a diagrammatic representation of IR and RGB image capture system 224 according to some examples. IR and RGB image capture system 224 may include image capture module 512, visible image module 514, IR image module 516, and / or IR illumination module 518.

[0104] Image capture module 512 includes or is associated with a camera of client device 102. The camera may include an image sensor (e.g., a CMOS image sensor), a lens, and one or more filters. Image capture module 512 may include an AR experience controller. Image capture module 512 communicates with visible image module 514 and IR image module 516 to obtain one or more visible light images and one or more IR illumination images of a real-world environment. Image capture module 512 may implement one or more machine learning models to process visible light images and IR illumination images to generate and provide one or more AR experiences.

[0105] For example, the image capture module 512 receives the visible light image and presents the image on the display as a real-time video feed captured by a camera. The image capture module 512 can add one or more virtual AR elements to the displayed image. The image capture module 512 can process the visible light image to identify one or more real-world objects (e.g., real-world hands) depicted in the image. The image capture module 512 can select the type of one or more virtual AR elements based on the one or more real-world objects depicted in the identified image.

[0106] In some examples, the image capture module 512 processes the IR illumination image to track positions and changes associated with one or more real-world objects and / or one or more other real-world objects. Based on tracking the real-world objects, the image capture module 512 updates one or more virtual AR elements and / or performs one or more other functions. For example, the image capture module 512 recognizes a gesture performed by a real-world object based on the IR illumination image and / or the visible light image of the real-world object. Based on the gesture, the image capture module 512 performs a corresponding function, such as turning or rotating or activating an AR element.

[0107] In some examples, to capture a visible light image, the image capture module 512 sends a message to the visible image module 514 to enable the image sensor to receive visible light representing the real-world environment. Based on the visible light received by the image sensor, the image sensor generates an image including red, green, and blue pixels depicting the real-world environment. In response to the message, the visible image module 514 can convert or switch a filter that allows visible light to pass to enable or activate. For example, the visible image module 514 can place a filter in front of the lens of the camera of the client device. As another example, the visible image module 514 can place a filter in the light path between the lens of the camera and the image sensor. In some examples, the visible image module 514 can remove an IR filter (configured to block all light except IR reflection or light in the IR spectrum) in the light path from the real-world environment to the image sensor to allow all visible light to pass. In some examples, the visible image module 514 places an IR filter (configured to block IR reflection or light in the IR spectrum) in the light path to block IR reflection. This can improve the image quality captured by the image sensor.

[0108] Specifically, the visible image module 514 may place a visible light filter that allows all visible light to pass through and an IR filter that blocks IR reflections in the light path to the image sensor (e.g., in front of the lens of the camera or between the lens and the image sensor). In some cases, the visible image module 514 may remove all filters from the light path to the image sensor. In some cases, the visible image module 514 may only place an IR filter to block IR reflections in the light path.

[0109] In some cases, the visible light and / or IR filters can be mechanically moved to a location to be placed in the light path. In some cases, the visible light and / or IR filters are implemented by MEMS devices and can be electronically activated to perform light passing and / or light blocking functions. Any combination of mechanical and / or MEMS filtering devices can be used to perform the disclosed functions and operations.

[0110] In some examples, in order to capture an IR image (e.g., an image including IR illumination of a real-world environment), the image capture module 512 sends a message to the IR image module 516 to enable the image sensor to receive IR illumination or IR reflections of the real-world environment. In response to the message, the IR image module 516 communicates with the IR illumination module 518 to temporarily turn on the IR illumination device or transmitter. The IR illumination device or transmitter may be continuously turned on, or may be turned on for a period of time required for the IR reflection of light in the image captured by the image sensor. That is, the IR image module 516 may instruct the IR illumination module 518 to turn on the IR illumination device, while the IR image module 516 places a filter in the optical path to the image sensor to allow only light of the IR spectrum to pass through to reach the image sensor. The IR illuminator of the IR illumination module 518 may be a component of the camera and controlled by a camera controller or an external signal from a system controller or processor. In some examples, the IR illumination module 518 is external to the camera and may be controlled by a camera controller or a system controller or processor.

[0111] In some examples, the IR image module 516 converts or switches an IR filter that allows IR light to pass through to an enabled or activated mode. For example, the IR image module 516 can place an IR filter in front of the lens of the camera of the client device to block all light except IR reflections or light in the IR spectrum. As another example, the IR image module 516 can place the filter in the light path between the lens of the camera and the image sensor. In some examples, the visible image module 514 can remove the visible light filter (configured to block IR light except visible light) in the light path from the real world environment to the image sensor to allow only IR light to pass through. In some examples, the IR image module 516 places a visible light filter (configured to block visible light) in the light path to block visible light reflections.

[0112] Specifically, the IR image module 516 may place an IR light filter that allows IR light to pass and a visible light filter that blocks visible light in the light path to the image sensor (e.g., in front of the lens of the camera or between the lens and the image sensor). In some cases, the IR image module 516 only places a visible light filter to block visible light reflections in the light path.

[0113] Figure 6 and Figure 7 is a diagrammatic representation of the operation of the IR and RGB image capture system 224. Figure 6, the IR and RGB image capture system 224 includes an image sensor 610, one or more lenses 630, and one or more filters 620 and filter 640. In some cases, the IR and RGB image capture system 224 includes only filter 620. In some cases, the IR and RGB image capture system 224 includes only filter 640. In order to capture visible light images, the IR and RGB image capture system 224 can place an IR filter (e.g., filter 640) in the light path from the real world environment to the image sensor 610. The IR filter can block all IR light and pass all visible light. In another implementation, the IR and RGB image capture system 224 can place an IR filter (e.g., filter 620) in the light path from the real world environment to the image sensor 610.

[0114] In some cases, to capture an IR image (e.g., an image representing IR illumination of a real-world environment), the IR and RGB image capture system 224 may place a visible light filter (e.g., filter 640) in the light path from the real-world environment to the image sensor 610. The visible light filter may block all visible light and pass light in the IR spectrum. In another implementation, the IR and RGB image capture system 224 may place a visible light filter (e.g., filter 620) in the light path from the real-world environment to the image sensor 610.

[0115] like Figure 7 As shown in , example timing diagram 700 represents the capture of a series of visible light images and IR images by the same visible light camera of client device 102. Specifically, timing diagram 700 represents the timing operation of filter 710, illuminator 720, and image sensor or camera 730 of the camera of client device 102. In some examples, at a first point in time 712, image capture module 512 indicates that filter 710 is configured to allow all visible light to pass. For example, IR filter 710 can be placed in the light path to the image sensor to block all IR reflections of light. While filter 710 allows all visible light to pass, camera 730 captures a series of visible light images 732 (which may include a series of video frames).

[0116] The image capture module 512 may determine the need to capture an IR image. In response, the image capture module 512 sends an enable signal or control signal by sending an ON message 722 at a second time point. In response to the enable signal or control signal, the IR lighting module 518 activates an IR lighting device such as an illuminator 720 (when the illuminator 720 is active or the ON message 722 is in effect). In addition, when the illuminator 720 is active or the ON message 722 is in effect, the filter 710 places a visible light filter or an IR filter to block all visible light and only allow light of the IR spectrum to reach the image sensor through the optical path. The filter is placed for the time period 714 shown in the timing diagram 700. In addition, when the illuminator 720 is active or the ON message 722 is in effect, the camera captures one or more IR images 734 (e.g., images in which all light except the light of the IR spectrum has been blocked by the filter). In this way, the IR image 734 is interlaced or multiplexed with the visible light image 732.

[0117] Once one or more IR images 734 have been captured or received by the image sensor, the image capture module 512 deactivates the ON message 722 (to turn off the illuminator 720). In response, the visible light filter and / or the IR filter are removed to allow visible light to pass through to be received by the image sensor, and optionally block light in the IR spectrum. In addition, the camera now captures another series of visible light images 736. This enables the same camera to capture a multiplexed or interleaved image stream 738 that includes a set of visible light images and a set of IR images. In this way, as shown in FIG. Figure 7 As shown in , the camera is synchronized with the illuminator 720 so that an IR image can be captured simultaneously with turning on the IR illuminator 720.

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

[0119] At operation 801 , as discussed above, the client device 102 captures a first image including visible light representing a real-world environment via a camera of the client device.

[0120] At operation 802 , as discussed above, the client device 102 receives a strobe signal for capturing an infrared (IR) image by a camera.

[0121] At operation 803 , as discussed above, the client device 102 switches a filter associated with the lens of the camera in response to the strobe signal to pass IR light to the image sensor of the camera.

[0122] At operation 804 , as discussed above, the client device 102 captures a second image including IR illumination of the real-world environment in response to the strobe signal.

[0123] At operation 805 , as discussed above, the client device 102 switches the filter to allow visible light to pass to the image sensor of the camera after capturing the second image.

[0124] Machine Architecture

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

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

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

[0128] The I / O components 938 may include various components for receiving input, providing output, generating output, sending information, exchanging information, capturing measurements, etc. The specific I / O components 938 included in a particular machine will depend on the type of machine. For example, a portable machine such as a mobile phone may include a touch input device or other such input mechanism, while a headless server machine will most likely not include such a touch input device. It will be appreciated that the I / O components 938 may include Fig. 9 924 and 926. In various examples, the I / O components 938 may include a user output component 924 and a user input component 926. The user output component 924 may include a visual component (e.g., a display such as a plasma display panel (PDP), a light emitting diode (LED) display, a liquid crystal display (LCD), a projector, or a cathode ray tube (CRT)), an acoustic component (e.g., a speaker), a tactile component (e.g., a vibration motor, a resistance mechanism), other signal generators, etc. The user input component 926 may include an alphanumeric input component (e.g., a keyboard, a touch screen configured to receive alphanumeric input, an optical keyboard, or other alphanumeric input component), a pointing-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 that provides the location and force of a touch or touch gesture, or other tactile input component), an audio input component (e.g., a microphone), etc.

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

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

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

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

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

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

[0135] In addition, the communication component 936 can detect the identifier or include a component that is capable of operating to detect the identifier. For example, the communication component 936 may include a radio frequency identification (RFID) tag reader component, an NFC smart tag detection component, an optical reader component (e.g., an optical sensor for detecting a one-dimensional barcode such as a universal product code (UPC) barcode, a multi-dimensional barcode such as a Quick Response (QR) code, an Aztec code, a data matrix, a data symbol (Dataglyph), a maximum code (MaxiCode), PDF417, Ultra Code, UCC RSS-2D barcode, and other optical codes) or an acoustic detection component (e.g., a microphone for identifying a tagged audio signal). In addition, various information can be derived via the communication component 936, such as a location derived via Internet Protocol (IP) geolocation, a location derived via Wi-Fi, and a location derived via Wi-Fi. Location derived from signal triangulation, location derived via detection of NFC beacon signals that can indicate a specific location, etc.

[0136] Various memories (e.g., main memory 912, static memory 914, and memory of processor 902) and storage unit 916 may store one or more sets of instructions and data structures (e.g., software) implemented or used by any one or more of the methods or functions described herein. When executed by processor 902, these instructions (e.g., instructions 908) cause various operations to implement the disclosed examples.

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

[0138] Software Architecture

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

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

[0141] The library 1010 provides a common low-level infrastructure used by the application 1006. The library 1010 may include a system library 1018 (e.g., a C standard library) that provides functions such as memory allocation functions, string manipulation functions, mathematical functions, etc. In addition, the library 1010 may include an API library 1024, such as a media library (e.g., a library for supporting the presentation and manipulation of various media formats such as Moving Picture Experts Group-4 (MPEG4), Advanced Video Coding (H.264 or AVC), Moving Picture Experts Group Layer-3 (MP3), Advanced Audio Coding (AAC), Adaptive Multi-Rate (AMR) audio codec, Joint Photographic Experts Group (JPEG or JPG), or Portable Network Graphics (PNG)), a graphics library (e.g., an OpenGL framework for rendering in 2D and 3D in 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 1010 may also include various other libraries 1028 to provide many other APIs to the application 1006.

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

[0143] In an example, applications 1006 may include a home application 1036, a contacts application 1030, a browser application 1032, a book reader application 1034, a location application 1042, a media application 1044, a messaging application 1046, a game application 1048, and a variety of other applications such as external applications 1040. Applications 1006 are programs that execute functions defined in the program. Various programming languages ​​may be used to create one or more of the applications 1006 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 1040 (e.g., those created by an entity other than the vendor of a particular platform using ANDROID TM or IOS TM SDK developed applications) can be mobile operating systems such as IOS TM ANDROID TM , Phone, or another mobile operating system. In this example, external application 1040 can activate API calls 1050 provided by operating system 1012 to facilitate the functions described herein.

[0144] Glossary

[0145] "Carrier signal" refers to any intangible medium that can store, encode or carry instructions for execution by a machine and includes digital or analog communications signals or other intangible media that facilitates communication of such instructions. Instructions may be sent or received over a network using a transmission medium via a network interface device.

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

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

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

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

[0150] Hardware components can also be implemented mechanically, electronically or in any suitable combination thereof. For example, hardware components may include dedicated circuits or logic that are permanently configured to perform certain operations. Hardware components may be dedicated processors, such as field programmable gate arrays (FPGAs) or ASICs. Hardware components may also include programmable logic or circuits that are temporarily configured to perform certain operations by software. For example, hardware components may include software executed by general-purpose processors or other programmable processors. 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 general-purpose processors. It will be recognized that it can be decided whether to implement hardware components mechanically in a dedicated and permanently configured circuit or in a temporarily configured (e.g., configured by software) circuit for cost and time considerations. Therefore, the phrase "hardware components" (or "hardware-implemented components") should be understood to include tangible entities, i.e., entities that are physically constructed, permanently configured (e.g., hardwired) or temporarily configured (e.g., programmed) to operate in some way or perform certain operations described herein.

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

[0152] 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 (for example, by appropriate circuits and buses) between or among two or more hardware components in the hardware components. In the example where multiple hardware components are configured or instantiated at different times, the communication between such hardware components can be realized, for example, by storing information in a memory structure to which multiple hardware components have access rights and retrieving information in the memory structure. For example, a hardware component can perform an operation, and 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. The hardware component can also initiate communication with an input device or an output device, and can operate on a resource (for example, a collection of information).

[0153] The various operations of the example methods described herein may be performed at least in part by one or more processors that are temporarily configured (e.g., by software) or permanently configured to perform related operations. Whether temporarily configured or permanently configured, such a processor may constitute a processor-implemented component that operates to perform one or more operations or functions described herein. As used herein, "processor-implemented components" refer to hardware components implemented using one or more processors. Similarly, the method described herein may be implemented at least in part by a processor, wherein a specific one or more processors are examples of hardware. For example, at least some of the operations of the method may be performed by one or more processors 902 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 in the operation may be performed by a computer group (as an example of a machine including a processor), wherein these operations may be accessed via a network (e.g., the Internet) and via one or more appropriate interfaces (e.g., API). The execution of certain operations in the operation may be distributed among the processors, not just resident in a single machine, but deployed across multiple machines. In some examples, the processor or processor-implemented components may be located in a single geographic location (e.g., in a home environment, an office environment, or a server farm). In other examples, the processor or processor-implemented components may be distributed across multiple geographic locations.

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

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

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

[0157] “Non-transitory computer-readable storage medium” refers to a tangible medium capable of storing, encoding, or carrying instructions for execution by a machine.

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

[0159] 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 following claims.

Claims

1. A method comprising: capturing, by a camera of the client device, a first image including visible light representative of a real-world environment; receiving a strobe signal for capturing an infrared (IR) image by the camera; and In response to receiving the strobe signal: switching a filter associated with a lens of the camera device to allow IR light to pass to an image sensor of the camera device; capturing a second image including IR illumination of the real-world environment; as well as The filter is switched after capturing the second image to allow visible light to pass to the image sensor of the camera.

2. The method according to claim 1, wherein: The first image includes red, green, and blue pixels depicting the real-world environment.

3. The method according to claim 1, further comprising: An IR illumination device on the client device is activated in response to receiving the strobe signal, and wherein the second image is captured after activating the IR illumination device.

4. The method according to claim 1, wherein: The filter is placed in front of the lens of the camera device.

5. The method according to claim 1, wherein: The filter is placed between the lens of the camera device and the image sensor of the camera device.

6. The method according to claim 1, wherein: The filter comprises an IR filter.

7. The method according to claim 1, further comprising: processing the first image to determine one or more visible attributes of the real-world environment; as well as The second image is processed to perform tracking of one or more objects depicted in the first image of the real-world environment.

8. The method according to claim 7, wherein: The second image is processed by a trained neural network. 9 . The method of claim 7 , further comprising controlling one or more user interface elements based on the one or more objects tracked using the second image.

10. The method according to claim 7, wherein: The one or more objects include a human hand.

11. The method according to claim 1, further comprising: A first set of images representing visible light and a second set of images representing IR illumination are multiplexed, the first set of images and the second set of images being captured by an image sensor of the camera device.

12. The method according to claim 1, wherein: The client device includes an augmented reality (AR) wearable device.

13. The method according to claim 1, wherein: Switching the filter to allow IR light to pass includes: A physical filter is mechanically moved into position for receiving light passing toward the image sensor.

14. The method according to claim 1, wherein: Switching the filter to allow IR light to pass includes: The electronics activate the electronic filter to allow the IR light to pass through.

15. The method according to claim 14, wherein: The electronic filter comprises a micro-electromechanical system (MEMS) filter.

16. A system comprising: A processor configured to perform operations comprising: capturing, by a camera of the client device, a first image including visible light representative of a real-world environment; receiving a strobe signal for capturing an infrared (IR) image by the camera; and In response to receiving the strobe signal: switching a filter associated with a lens of the camera device to allow IR light to pass to an image sensor of the camera device; capturing a second image including IR illumination of the real world environment; and The filter is switched after capturing the second image to allow visible light to pass to the image sensor of the camera.

17. The system of claim 16, wherein: The first image includes red, green, and blue pixels depicting the real-world environment.

18. The system of claim 16, the operations further comprising: An IR illumination device on the client device is activated in response to receiving the strobe signal, and the second image is captured after activating the IR illumination device.

19. The system of claim 16, wherein: The filter is placed in front of the lens of the camera device.

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: capturing, by a camera of the client device, a first image including visible light representative of a real-world environment; receiving a strobe signal for capturing an infrared (IR) image by the camera; and In response to receiving the strobe signal: switching a filter associated with a lens of the camera device to allow IR light to pass to an image sensor of the camera device; capturing a second image including IR illumination of the real-world environment; as well as The filter is switched after capturing the second image to allow visible light to pass to the image sensor of the camera.